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

!4839 【包管理子系统】【3.1Release】修改配置orientation字段的ability类型为page

Merge pull request !4839 from ry/OpenHarmony-3.1-Release
...@@ -1145,14 +1145,14 @@ describe('ActsBundleManagerTest', function () { ...@@ -1145,14 +1145,14 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility"); expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility");
expect(datainfo.type).assertEqual(demo.AbilityType.DATA); expect(datainfo.type).assertEqual(demo.AbilityType.DATA);
expect(datainfo.bundleName).assertEqual(NAME4); expect(datainfo.bundleName).assertEqual(NAME4);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.FOLLOW_RECENT); expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.UNSPECIFIED);
queryResultCount++; queryResultCount++;
} }
if (datainfo.bundleName == NAME5) { if (datainfo.bundleName == NAME5) {
expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility"); expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility");
expect(datainfo.type).assertEqual(demo.AbilityType.PAGE); expect(datainfo.type).assertEqual(demo.AbilityType.PAGE);
expect(datainfo.bundleName).assertEqual(NAME5); expect(datainfo.bundleName).assertEqual(NAME5);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.UNSPECIFIED); expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.FOLLOW_RECENT);
queryResultCount++; queryResultCount++;
} }
} }
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
"isVisible": "true", "isVisible": "true",
"launchType": "standard", "launchType": "standard",
"language": "C++", "language": "C++",
"orientation": "followrecent",
"uri":"dataability://" "uri":"dataability://"
} }
], ],
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"type": "page", "type": "page",
"isVisible": "true", "isVisible": "true",
"launchType": "standard", "launchType": "standard",
"orientation": "followrecent",
"language": "C++" "language": "C++"
} }
], ],
......
...@@ -40,8 +40,7 @@ ...@@ -40,8 +40,7 @@
"type": "service", "type": "service",
"isVisible": "true", "isVisible": "true",
"launchType": "singleton", "launchType": "singleton",
"language": "C++", "language": "C++"
"orientation": "landscape"
} }
], ],
"deviceType": [ "deviceType": [
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:app_name", "label": "$string:app_name",
"type": "service", "type": "page",
"isVisible": "true", "isVisible": "true",
"launchType": "singleton", "launchType": "singleton",
"language": "C++", "language": "C++",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册