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

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

Merge pull request !4836 from ry/master
...@@ -1619,15 +1619,15 @@ describe('ActsBundleManagerTest', function () { ...@@ -1619,15 +1619,15 @@ describe('ActsBundleManagerTest', function () {
if (datainfo.bundleName == NAME4) { if (datainfo.bundleName == NAME4) {
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.orientation).assertEqual(demo.DisplayOrientation.UNSPECIFIED);
expect(datainfo.bundleName).assertEqual(NAME4); expect(datainfo.bundleName).assertEqual(NAME4);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.FOLLOW_RECENT);
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++;
} }
} }
...@@ -1686,13 +1686,13 @@ describe('ActsBundleManagerTest', function () { ...@@ -1686,13 +1686,13 @@ describe('ActsBundleManagerTest', function () {
if (datainfo.bundleName == NAME4) { if (datainfo.bundleName == NAME4) {
expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility"); expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility");
expect(datainfo.bundleName).assertEqual(NAME4); expect(datainfo.bundleName).assertEqual(NAME4);
expect(datainfo.orientation).assertEqual(3); 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.bundleName).assertEqual(NAME5); expect(datainfo.bundleName).assertEqual(NAME5);
expect(datainfo.orientation).assertEqual(0); 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.
先完成此消息的编辑!
想要评论请 注册