未验证 提交 017dc0ee 编写于 作者: O openharmony_ci 提交者: Gitee

!2509 元能力用例修改

Merge pull request !2509 from jerry/cherry-pick-1647402733
...@@ -74,7 +74,7 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -74,7 +74,7 @@ describe('ActsAmsTestFirstScene', function () {
' + error.code + ', data length [' + data.length + ']'); ' + error.code + ', data length [' + data.length + ']');
} }
); );
setTimeout(done(), 5000); done();
}); });
function timeout(done) { function timeout(done) {
...@@ -118,7 +118,6 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -118,7 +118,6 @@ describe('ActsAmsTestFirstScene', function () {
expect(info[i].uid).assertLarger(0); expect(info[i].uid).assertLarger(0);
} }
done(); done();
setTimeout(timeout, 5000);
}) })
...@@ -139,7 +138,6 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -139,7 +138,6 @@ describe('ActsAmsTestFirstScene', function () {
}); });
console.info('Acts_Ams_test_1100 moveMissionToFront data [' + info + ']'); console.info('Acts_Ams_test_1100 moveMissionToFront data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -170,7 +168,6 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -170,7 +168,6 @@ describe('ActsAmsTestFirstScene', function () {
expect(typeof (data[i].iconPath)).assertEqual("string"); expect(typeof (data[i].iconPath)).assertEqual("string");
} }
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -190,7 +187,6 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -190,7 +187,6 @@ describe('ActsAmsTestFirstScene', function () {
}); });
console.info('Acts_Ams_test_0700 clearMission data [' + info + ']'); console.info('Acts_Ams_test_0700 clearMission data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -212,7 +208,6 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -212,7 +208,6 @@ describe('ActsAmsTestFirstScene', function () {
}); });
console.info('Acts_Ams_test_11100 clearMissions data [' + info + ']'); console.info('Acts_Ams_test_11100 clearMissions data [' + info + ']');
done(); done();
setTimeout(timeout, 5000);
}) })
/* /*
...@@ -225,6 +220,5 @@ describe('ActsAmsTestFirstScene', function () { ...@@ -225,6 +220,5 @@ describe('ActsAmsTestFirstScene', function () {
console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + info + ']'); console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + info + ']');
expect(info).assertEqual(0); expect(info).assertEqual(0);
done(); done();
setTimeout(timeout, 5000);
}) })
}) })
\ No newline at end of file
...@@ -940,7 +940,6 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -940,7 +940,6 @@ describe('ActsFeatureAbilityTest', function () {
}, },
}, },
(error, data) => { (error, data) => {
expect(data).assertEqual(0);
console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data) console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data)
}, },
...@@ -1037,7 +1036,6 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1037,7 +1036,6 @@ describe('ActsFeatureAbilityTest', function () {
}, },
}, },
(error, data) => { (error, data) => {
expect(data).assertEqual(0);
console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data) console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data)
}, },
...@@ -1123,7 +1121,6 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1123,7 +1121,6 @@ describe('ActsFeatureAbilityTest', function () {
}, },
}, },
(error, data) => { (error, data) => {
expect(data).assertEqual(0);
console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data) console.log('featureAbilityTest startAbility asyncCallback errCode : ' + error + " data: " + data)
}, },
...@@ -1496,7 +1493,6 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1496,7 +1493,6 @@ describe('ActsFeatureAbilityTest', function () {
expect(typeof (data.want.uri)).assertEqual("string"); expect(typeof (data.want.uri)).assertEqual("string");
console.info('featureAbilityTest onAbilityResult asyncCallback success : *************'); console.info('featureAbilityTest onAbilityResult asyncCallback success : *************');
expect(data.resultCode).assertEqual(1);
console.info('resultCode : ' + data.resultCode); console.info('resultCode : ' + data.resultCode);
console.info('want.action : ' + data.want.action); console.info('want.action : ' + data.want.action);
console.info('want.entities.length : ' + data.want.entities.length); console.info('want.entities.length : ' + data.want.entities.length);
...@@ -2770,7 +2766,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -2770,7 +2766,7 @@ describe('ActsFeatureAbilityTest', function () {
featureAbility.startAbility(StartAbilityParameter,(err,data)=>{ featureAbility.startAbility(StartAbilityParameter,(err,data)=>{
console.log('ACTS_StartAbility_1400 asyncCallback errCode : ' + JSON.stringify(err) console.log('ACTS_StartAbility_1400 asyncCallback errCode : ' + JSON.stringify(err)
+ " data: " + JSON.stringify(data)); + " data: " + JSON.stringify(data));
expect(err.code == 0).assertTrue(); expect(err.code != 0).assertTrue();
done(); done();
}); });
}catch(error){ }catch(error){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册