提交 b6ee0af4 编写于 作者: I inter515

page类型ability中不能配置orientation

Signed-off-by: Ninter515 <ry.renyi@huawei.com>
上级 5f6c2360
...@@ -1141,14 +1141,13 @@ describe('ActsBundleManagerTest', function () { ...@@ -1141,14 +1141,13 @@ 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);
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.
先完成此消息的编辑!
想要评论请 注册