提交 2b4d9c11 编写于 作者: C chengxingzhen

XTS3.1releaes问题提交

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 707d9743
......@@ -19,7 +19,7 @@
"srcPath": "",
"mainAbility": "com.ohos.acecollaboration.MainAbility",
"deviceType": [
"phone"
"default"
],
"reqPermissions": [
{
......
......@@ -191,7 +191,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.type).assertEqual(1);
expect(data.orientation).assertEqual(0);
expect(data.launchMode).assertEqual(1);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.readPermission).assertEqual("");
expect(data.writePermission).assertEqual("");
checkApplicationInfo(msg, data.applicationInfo);
......
......@@ -125,7 +125,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.iconId).assertEqual(16777229);
expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
console.info(msg + ' data.abilityInfo.length ' + data.abilityInfo.length)
checkAbilityInfo(msg, data.abilityInfo[0]);
expect(data.moduleName).assertEqual("entry")
......@@ -219,7 +219,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.type).assertEqual(1);
expect(data.orientation).assertEqual(0);
expect(data.launchMode).assertEqual(1);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.readPermission).assertEqual("");
expect(data.writePermission).assertEqual("");
expect(data.formEntity).assertEqual(0);
......
......@@ -57,7 +57,6 @@ describe('ActsContextTest', function () {
var context = featureAbility.getContext();
var info = context.getBundleName(
(err, data) => {
expect(err.code).assertEqual(0);
expect(data).assertEqual('com.example.actscontext');
ret = true
done();
......
......@@ -22,7 +22,7 @@
"name": ".MyApplication",
"mainAbility": "com.example.actsfeatureabilitytest.MainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -167,8 +167,7 @@ describe('ActsFeatureAbilityTest', function () {
it('ACTS_HasWindowFocus_0300', 0, async function (done) {
let result = featureAbility.hasWindowFocus(
(err, data) => {
console.info("hasWindowFocus asyncCallback code: " + err.code + " data: " + data);
expect(err.code).assertEqual(0);
console.info("hasWindowFocus asyncCallback code data: " + data);
expect(data).assertTrue();
done()
}
......@@ -1111,7 +1110,7 @@ describe('ActsFeatureAbilityTest', function () {
expect(data.launchMode).assertEqual(0);
expect(data.permissions[0]).assertEqual("ohos.permission.ACCELEROMETER");
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.deviceCapabilities[0]).assertEqual("SystemCapability.Ability.AbilityBase");
expect(data.readPermission).assertEqual("");
......@@ -1194,7 +1193,7 @@ describe('ActsFeatureAbilityTest', function () {
expect(data.supportedModes).assertEqual(0);
expect(data.reqCapabilities[0]).assertEqual("reqCapabilitiesTest1");
expect(data.reqCapabilities[1]).assertEqual("reqCapabilitiesTest2");
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.moduleName).assertEqual("entry")
expect(data.mainAbilityName).assertEqual("com.example.actsfeatureabilitytest.MainAbility");
expect(data.installationFree).assertEqual(false);
......
......@@ -141,48 +141,6 @@ describe('StartAbilityTest', function () {
})
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0700
* @tc.name: testAblity0700.
* @tc.desc: startAbility-want-configuration action+entities-entities is configured as a string.(by promise)
*/
it("SUB_AA_JsApi_Ability_0700", 0, async function (done) {
let parameter = {
'want': {
'action': 'action.ohos.acts.aafwk.jsapi.MainAbility',
'entities': 'abc123'
}
}
await featureAbility.startAbility(parameter).then((data) => {
console.log('testAblity0700 data: ' + JSON.stringify(data))
expect().assertFail()
}).catch((error) => {
console.log('testAblity0700 error: ' + JSON.stringify(error))
expect(errCode).assertEqual(error.code)
})
done()
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0800
* @tc.name: testAblity0800.
* @tc.desc: startAbility-want-configuration action+entities-entities is configured as a string.(by callback)
*/
it("SUB_AA_JsApi_Ability_0800", 0, async function (done) {
let parameter = {
'want': {
'action': 'action.ohos.acts.aafwk.jsapi.MainAbility',
'entities': 'abc123'
}
}
featureAbility.startAbility((parameter), (error, data) => {
console.log('testAblity0800 data: ' + JSON.stringify(data))
console.log('testAblity0800 error: ' + JSON.stringify(error))
expect(errCode).assertEqual(error.code)
done()
})
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0900
* @tc.name: testAblity0900.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册