提交 8a47195a 编写于 作者: Q qigongming

release分支xts用例修改

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: Ica464021505bf337ec9a1637968b1f7e9cbb179b
上级 bd9b930a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册