提交 5a8ccaec 编写于 作者: H Handsome_Afraican_Man

IssueNo:#I7EUTZ

    Description:switch hvigor
    Sig:bundleManager
    Feature or Bugfix:Feature
    Binary Source:No
Signed-off-by: Nzhouwenzhi <zhouwenzhi@huawei.com>
上级 2a67cde5
......@@ -742,6 +742,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -749,6 +750,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......@@ -778,6 +780,7 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -785,6 +788,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......
......@@ -742,6 +742,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -749,6 +750,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......@@ -778,6 +780,7 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -785,6 +788,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......
......@@ -756,6 +756,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -763,6 +764,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......@@ -792,6 +794,7 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null);
expect(data.reqPermissionDetails.length).assertEqual(2);
expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[0].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1);
......@@ -799,6 +802,7 @@ export default function getBundleInfoForSelf() {
expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED);
expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR");
expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule");
expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason");
expect(data.reqPermissionDetails[1].reasonId).assertLarger(0);
expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册