未验证 提交 4cd466f3 编写于 作者: O openharmony_ci 提交者: Gitee

!3811 【resourceschedule_standard】【release分支】xts用例修改

Merge pull request !3811 from qigongming/release_0627
......@@ -83,11 +83,11 @@ describe("DeviceUsageStatisticsJsTest", function () {
let bundleName = 'com.explace.deviceUsageStatistics';
bundleState.isIdleState(bundleName, (err, res) => {
if(err) {
console.info('BUNDLE_ACTIVE isIdleState callback success.');
expect(true).assertEqual(true);
} else {
expect(false).assertEqual(true);
console.info('BUNDLE_ACTIVE isIdleState callback failure.');
} else {
console.info('BUNDLE_ACTIVE isIdleState callback success.');
expect(true).assertEqual(true);
}
});
......@@ -127,11 +127,11 @@ describe("DeviceUsageStatisticsJsTest", function () {
console.info('----------------------DeviceUsageStatisticsJsTest004---------------------------');
bundleState.queryAppUsagePriorityGroup((err, res) => {
if(err) {
console.info('BUNDLE_ACTIVE queryAppUsagePriorityGroup callback success.');
expect(true).assertEqual(true)
} else {
expect(false).assertEqual(true)
console.info('BUNDLE_ACTIVE queryAppUsagePriorityGroup callback failure.');
} else {
console.info('BUNDLE_ACTIVE queryAppUsagePriorityGroup callback success.');
expect(true).assertEqual(true);
}
});
......@@ -175,11 +175,11 @@ describe("DeviceUsageStatisticsJsTest", function () {
let endTime = 20000000000000;
bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => {
if(err) {
console.info('BUNDLE_ACTIVE queryCurrentBundleActiveStates callback success.');
expect(true).assertEqual(true);
} else {
expect(false).assertEqual(true);
console.info('BUNDLE_ACTIVE queryCurrentBundleActiveStates callback failure.');
} else {
console.info('BUNDLE_ACTIVE queryCurrentBundleActiveStates callback success.');
expect(true).assertEqual(true);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册