| <?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="ViewAndViewNavigatorCustomSkinNoActionOrTabBar.mxml"> |
| |
| <fx:Script source="globalTabbed.as" /> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| import mx.core.FlexGlobals; |
| import views.*; |
| import spark.transitions.SlideViewTransition; |
| import spark.components.TabbedViewNavigator; |
| import spark.components.ViewNavigator; |
| import spark.components.View; |
| import spark.events.IndexChangeEvent; |
| import mx.events.FlexEvent; |
| import spark.components.ButtonBar; |
| |
| public var returnedData:Object; |
| |
| public static function init(o:DisplayObject):void { } |
| |
| ]]> |
| </fx:Script> |
| |
| <fx:Metadata><![CDATA[ [Mixin] ]]></fx:Metadata> |
| |
| <testCases> |
| |
| <TestCase testID="customSkinNoActionOrTabBar" keywords="[view, tabBar, actionBar, skins]" description="Verify a custom skin with no actionBar or tabBar behaves okay."> |
| |
| <setup> |
| </setup> |
| |
| <body> |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.selectedNavigator.actionBar == null" value="true" /> |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.tabBar == null" value="true" /> |
| |
| <!-- verify view is present --> |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.selectedNavigator.activeView is Sect1View1" value="true" /> |
| |
| <RunCode code="selectedNavigator().pushView(views.Sect1View2)" waitTarget="tabbedNavigator.selectedNavigator" waitEvent="viewChangeComplete" /> |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.selectedNavigator.activeView is Sect1View2" value="true" /> |
| |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.selectedNavigator.actionBar == null" value="true" /> |
| <AssertMethodValue method="value = FlexGlobals.topLevelApplication.tabbedNavigator.tabBar == null" value="true" /> |
| </body> |
| |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |