| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <UnitTester xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns="*" |
| testDir="mobile/ViewAndViewNavigator/tests/" |
| testSWF="ViewAndViewNavigatorTabbedOverlay.mxml"> |
| |
| <fx:Script source="globalTabbed.as" /> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| import spark.layouts.HorizontalLayout; |
| import spark.layouts.VerticalLayout; |
| import spark.layouts.supportClasses.LayoutBase; |
| import mx.core.FlexGlobals; |
| import views.*; |
| import spark.components.ViewNavigator; |
| import spark.components.TabbedViewNavigator; |
| import spark.components.View; |
| |
| public static function init(o:DisplayObject):void { } |
| |
| public function resetProperties():void { |
| navigator().transitionsEnabled = true; |
| selectedNavigator().transitionsEnabled = true; |
| } |
| ]]> |
| </fx:Script> |
| |
| <fx:Metadata><![CDATA[ [Mixin] ]]></fx:Metadata> |
| |
| <testCases> |
| |
| <TestCase testID="overlayControlsTabBar" keywords="[SDK-29425, overlay, view, tabBar, show, hide]" description="Verify overlay controls are overlayed when and only when they are supposed to be"> |
| |
| <setup> |
| <RunCode code="FlexGlobals.topLevelApplication.resetApp()" waitTarget="tabbedNavigator" waitEvent="myEvent" /> |
| <RunCode code="resetProperties()" /> |
| <RunCode code="selectedNavigator().pushView(views.OverlayControls)" waitTarget="tabbedNavigator" waitEvent="viewChangeComplete" /> |
| </setup> |
| |
| <body> |
| <RunCode code="navigator().selectedIndex = 1" waitTarget="tabbedNavigator" waitEvent="change"/> |
| |
| <CompareBitmap url="../tests/baselines/" target="tabbedNavigator.tabBar"> |
| <ConditionalValue deviceDensity="160" os="win" /> |
| <ConditionalValue deviceDensity="240" os="android" /> |
| <ConditionalValue deviceDensity="320" os="win" /> |
| <ConditionalValue deviceDensity="320" os="iphone" /> |
| <ConditionalValue deviceDensity="160" os="qnx" /> |
| </CompareBitmap> |
| </body> |
| |
| </TestCase> |
| |
| <TestCase testID="overlayControlsActionBar" keywords="[SDK-29425, overlay, view, actionBar, show, hide]" description="Verify overlay controls are overlayed when and only when they are supposed to be"> |
| |
| <setup> |
| <RunCode code="FlexGlobals.topLevelApplication.resetApp()" waitTarget="tabbedNavigator" waitEvent="myEvent" /> |
| <RunCode code="resetProperties()" /> |
| <RunCode code="selectedNavigator().pushView(views.OverlayControls)" waitTarget="tabbedNavigator" waitEvent="viewChangeComplete" /> |
| </setup> |
| |
| <body> |
| <RunCode code="navigator().selectedIndex = 1" waitTarget="tabbedNavigator" waitEvent="change"/> |
| |
| <CompareBitmap url="../tests/baselines/" target="tabbedNavigator.selectedNavigator.actionBar"> |
| <ConditionalValue deviceDensity="160" os="win" /> |
| <ConditionalValue deviceDensity="240" os="android" /> |
| <ConditionalValue deviceDensity="320" os="win" /> |
| <ConditionalValue deviceDensity="320" os="iphone" /> |
| <ConditionalValue deviceDensity="160" os="qnx" /> |
| </CompareBitmap> |
| </body> |
| |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |
| |
| |
| |