未验证 提交 4d8e4363 编写于 作者: O openharmony_ci 提交者: Gitee

!5660 【包管理子系统 】【3.2-Beta3】适配ActsBmsAccessTokenTest用例

Merge pull request !5660 from ry/OpenHarmony-3.2-Beta3
......@@ -91,8 +91,8 @@ describe('ActsBmsAccessTokenTest', function () {
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.ALPHA");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.SYSTEM_FLOAT_WINDOW");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.VIBRATE");
expect(bundleInfo.reqPermissionStates.length).assertEqual(5);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
......@@ -120,8 +120,8 @@ describe('ActsBmsAccessTokenTest', function () {
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.BETA");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.SYSTEM_FLOAT_WINDOW");
expect(bundleInfo.reqPermissions[5]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissions[5]).assertEqual("ohos.permission.VIBRATE");
expect(bundleInfo.reqPermissionStates.length).assertEqual(6);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
......
......@@ -104,8 +104,8 @@
"reason": "use ohos.permission.USE_BLUETOOTH"
},
{
"name": "ohos.permission.SYSTEM_FLOAT_WINDOW",
"reason": "use ohos.permission.SYSTEM_FLOAT_WINDOW"
"name": "ohos.permission.VIBRATE",
"reason": "use ohos.permission.VIBRATE"
}
]
}
......
......@@ -104,8 +104,8 @@
"reason": "use ohos.permission.USE_BLUETOOTH"
},
{
"name": "ohos.permission.SYSTEM_FLOAT_WINDOW",
"reason": "use ohos.permission.SYSTEM_FLOAT_WINDOW"
"name": "ohos.permission.VIBRATE",
"reason": "use ohos.permission.VIBRATE"
}
]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册