未验证 提交 99dd7ae8 编写于 作者: O openharmony_ci 提交者: Gitee

!3000 XTS用例适配错误码

Merge pull request !3000 from chengxingzhen/master
...@@ -267,7 +267,7 @@ describe('ActsAmsCallBackFourthScene', function () { ...@@ -267,7 +267,7 @@ describe('ActsAmsCallBackFourthScene', function () {
appManager.killProcessesByBundleName('xxxxxxxxx', appManager.killProcessesByBundleName('xxxxxxxxx',
(error) => { (error) => {
console.info('Acts_Ams_test_6400 killProcessesByBundleName error.code ' + error.code); console.info('Acts_Ams_test_6400 killProcessesByBundleName error.code ' + error.code);
expect(error.code).assertEqual(2097215); expect(error.code).assertEqual(2097183);
done(); done();
}); });
}) })
......
...@@ -223,7 +223,7 @@ describe('ActsAmsCallBackSecondScene', function () { ...@@ -223,7 +223,7 @@ describe('ActsAmsCallBackSecondScene', function () {
(error, info) => { (error, info) => {
console.info('Acts_Ams_test_3200 killProcessesByBundleName error.code: \ console.info('Acts_Ams_test_3200 killProcessesByBundleName error.code: \
' + error.code + ',data [' + info + ']'); ' + error.code + ',data [' + info + ']');
expect(error.code).assertEqual(2097215); expect(error.code).assertEqual(2097183);
done(); done();
}); });
}) })
......
...@@ -205,7 +205,7 @@ describe('ActsAmsTestSecondScene', function () { ...@@ -205,7 +205,7 @@ describe('ActsAmsTestSecondScene', function () {
console.log('Acts_test_3100 success: ' + data); console.log('Acts_test_3100 success: ' + data);
}).catch(err => { }).catch(err => {
console.log('Acts_test_3100 failed: ' + err.code); console.log('Acts_test_3100 failed: ' + err.code);
expect(err.code).assertEqual(2097215); expect(err.code).assertEqual(2097183);
done(); done();
}); });
}) })
......
...@@ -207,7 +207,7 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -207,7 +207,7 @@ describe('ActsAmsTestThirdScene', function () {
console.log('Acts_test_4700 success: ' + data); console.log('Acts_test_4700 success: ' + data);
}).catch(err => { }).catch(err => {
console.log('Acts_test_4700 failed: ' + err.code); console.log('Acts_test_4700 failed: ' + err.code);
expect(err.code).assertEqual(2097215); expect(err.code).assertEqual(2097183);
done(); done();
}); });
}) })
......
...@@ -268,7 +268,7 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -268,7 +268,7 @@ describe('ActsStServiceAbilityTest', function () {
done(); done();
} }
var context = featureAbility.getContext() var context = featureAbility.getContext()
var result = context.getDisplayOrientation().then((data) => { var result = await context.getDisplayOrientation().then((data) => {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.debug("ACTS_AGetDisplayOrientation_0200====DisplayOrientation>" console.debug("ACTS_AGetDisplayOrientation_0200====DisplayOrientation>"
+ JSON.stringify(DisplayOrientation) + " , err= " + err); + JSON.stringify(DisplayOrientation) + " , err= " + err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册