提交 9e7fc6fb 编写于 作者: J jiangwensai

fix xts

Signed-off-by: Njiangwensai <jiangwensai@huawei.com>

Change-Id: I19f7bc585eebc91b068dbb58ae200044c2e1c6b0
上级 def59960
...@@ -21,6 +21,8 @@ var abilityNameList = [ ...@@ -21,6 +21,8 @@ var abilityNameList = [
"com.ohos.launcher.MainAbility", "com.ohos.launcher.MainAbility",
"com.ohos.callui.ServiceAbility", "com.ohos.callui.ServiceAbility",
"com.example.SimulateFeatureAbilityFir", "com.example.SimulateFeatureAbilityFir",
"com.example.SimulateFeatureAbilitySed",
"com.example.VerifyIoThirdAbility",
"com.example.actsamstestfifthscene.MainAbility" "com.example.actsamstestfifthscene.MainAbility"
] ]
...@@ -33,6 +35,7 @@ var bundleNameList = [ ...@@ -33,6 +35,7 @@ var bundleNameList = [
"com.ohos.telephonydataability", "com.ohos.telephonydataability",
"com.ohos.contactsdataability", "com.ohos.contactsdataability",
"com.ix.simulate.feature", "com.ix.simulate.feature",
"com.ix.verify.io",
"com.example.actsamstestfifthscene" "com.example.actsamstestfifthscene"
] ]
...@@ -119,7 +122,7 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -119,7 +122,7 @@ describe('ActsAmsTestFifthScene', function () {
' + error.code + ', data length [' + data.length + ']'); ' + error.code + ', data length [' + data.length + ']');
} }
); );
setTimeout(done(), 5000); done();
}); });
function timeout(done) { function timeout(done) {
...@@ -163,7 +166,6 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -163,7 +166,6 @@ describe('ActsAmsTestFifthScene', function () {
expect(info[i].uid).assertLarger(0); expect(info[i].uid).assertLarger(0);
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -186,7 +188,6 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -186,7 +188,6 @@ describe('ActsAmsTestFifthScene', function () {
}); });
console.info('Acts_Ams_test_1100 moveMissionToFront data [' + info + ']'); console.info('Acts_Ams_test_1100 moveMissionToFront data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -196,9 +197,7 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -196,9 +197,7 @@ describe('ActsAmsTestFifthScene', function () {
*/ */
it('Acts_Ams_test_0300', 0, async function (done) { it('Acts_Ams_test_0300', 0, async function (done) {
var maxnum = 10; var maxnum = 10;
var data = await missionManager.getMissionInfos("", maxnum).catch(err => { await missionManager.getMissionInfos("", maxnum).then(data => {
console.log('Acts_Ams_test_0300 getMissionInfos failed: ' + err);
});
console.info('Acts_Ams_test_0300 getMissionInfos data ' + JSON.stringify(data)); console.info('Acts_Ams_test_0300 getMissionInfos data ' + JSON.stringify(data));
expect(Array.isArray(data)).assertEqual(true); expect(Array.isArray(data)).assertEqual(true);
expect(data.length).assertEqual(4); expect(data.length).assertEqual(4);
...@@ -218,9 +217,12 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -218,9 +217,12 @@ describe('ActsAmsTestFifthScene', function () {
expect(typeof (data[i].label)).assertEqual("string"); expect(typeof (data[i].label)).assertEqual("string");
expect(typeof (data[i].iconPath)).assertEqual("string"); expect(typeof (data[i].iconPath)).assertEqual("string");
console.info('Acts_Ams_test_0300 getMissionInfos data[' + i + "], end..");
} }
done(); done();
setTimeout(timeout, 5000); }).catch(err => {
console.log('Acts_Ams_test_0300 getMissionInfos failed: ' + err);
});
}) })
/* /*
...@@ -242,7 +244,6 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -242,7 +244,6 @@ describe('ActsAmsTestFifthScene', function () {
}); });
console.info('Acts_Ams_test_0700 clearMission data [' + info + ']'); console.info('Acts_Ams_test_0700 clearMission data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -251,10 +252,12 @@ describe('ActsAmsTestFifthScene', function () { ...@@ -251,10 +252,12 @@ describe('ActsAmsTestFifthScene', function () {
* @tc.desc : Kill Processes By BundleName(by Promise) * @tc.desc : Kill Processes By BundleName(by Promise)
*/ */
it('Acts_Ams_test_1500', 0, async function (done) { it('Acts_Ams_test_1500', 0, async function (done) {
var info = await appManager.killProcessesByBundleName('com.ix.simulate.feature'); await appManager.killProcessesByBundleName('com.ix.simulate.feature').then(data => {
console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + info + ']'); console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + data + ']');
expect(info).assertEqual(0); expect(data).assertEqual(0);
done(); done();
setTimeout(timeout, 5000); }).catch(err => {
console.log('Acts_Ams_test_0700 getMissionInfos failed: ' + err);
});
}) })
}) })
\ No newline at end of file
...@@ -99,7 +99,7 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -99,7 +99,7 @@ describe('ActsAmsTestSecondScene', function () {
' + error.code + ', data length [' + data.length + ']'); ' + error.code + ', data length [' + data.length + ']');
} }
); );
setTimeout(done(), 5000); done();
}); });
function timeout(done) { function timeout(done) {
...@@ -143,7 +143,6 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -143,7 +143,6 @@ describe('ActsAmsTestSecondScene', function () {
expect(info[i].uid).assertLarger(0); expect(info[i].uid).assertLarger(0);
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -163,7 +162,6 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -163,7 +162,6 @@ describe('ActsAmsTestSecondScene', function () {
}); });
console.info('Acts_Ams_test_2700 moveMissionToFront data [' + info + ']'); console.info('Acts_Ams_test_2700 moveMissionToFront data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -194,7 +192,6 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -194,7 +192,6 @@ describe('ActsAmsTestSecondScene', function () {
expect(typeof (data[i].iconPath)).assertEqual("string"); expect(typeof (data[i].iconPath)).assertEqual("string");
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -214,7 +211,6 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -214,7 +211,6 @@ describe('ActsAmsTestSecondScene', function () {
}); });
console.info('Acts_Ams_test_2300 clearMission data [' + info + ']'); console.info('Acts_Ams_test_2300 clearMission data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -227,6 +223,5 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -227,6 +223,5 @@ describe('ActsAmsTestSecondScene', function () {
console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']'); console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']');
expect(info).assertEqual(2097215); expect(info).assertEqual(2097215);
done(); done();
setTimeout(timeout, 5000);
}) })
}) })
\ No newline at end of file
...@@ -99,7 +99,7 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -99,7 +99,7 @@ describe('ActsAmsTestThirdScene', function () {
' + error.code + ', data length [' + data.length + ']'); ' + error.code + ', data length [' + data.length + ']');
} }
); );
setTimeout(done(), 5000); done();
}); });
function timeout(done) { function timeout(done) {
...@@ -144,7 +144,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -144,7 +144,6 @@ describe('ActsAmsTestThirdScene', function () {
expect(info[i].uid).assertLarger(0); expect(info[i].uid).assertLarger(0);
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -176,7 +175,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -176,7 +175,6 @@ describe('ActsAmsTestThirdScene', function () {
expect(typeof (data[i].iconPath)).assertEqual("string"); expect(typeof (data[i].iconPath)).assertEqual("string");
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -196,7 +194,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -196,7 +194,6 @@ describe('ActsAmsTestThirdScene', function () {
}); });
console.info('Acts_Ams_test_3900 clearMission data [' + info + ']'); console.info('Acts_Ams_test_3900 clearMission data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -216,7 +213,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -216,7 +213,6 @@ describe('ActsAmsTestThirdScene', function () {
}); });
console.info('Acts_Ams_test_4300 moveMissionToFront data [' + info + ']'); console.info('Acts_Ams_test_4300 moveMissionToFront data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -236,7 +232,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -236,7 +232,6 @@ describe('ActsAmsTestThirdScene', function () {
}); });
console.info('Acts_Ams_test_4500 clearMission data [' + info + ']'); console.info('Acts_Ams_test_4500 clearMission data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -249,6 +244,5 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -249,6 +244,5 @@ describe('ActsAmsTestThirdScene', function () {
console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']'); console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']');
expect(info.code).assertEqual(2097215); expect(info.code).assertEqual(2097215);
done(); done();
setTimeout(timeout, 5000);
}) })
}) })
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册