blob: 1c91bc0832a40c42b4b942d80517a20452a32de4 [file] [log] [blame]
<?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="ViewAndViewNavigatorTabbedViewNavigator.mxml">
<fx:Script>
<![CDATA[
import mx.core.FlexGlobals;
import views.*;
public static function init(o:DisplayObject):void { }
]]>
</fx:Script>
<fx:Metadata><![CDATA[ [Mixin] ]]></fx:Metadata>
<testCases>
<TestCase testID="selectedIndex set in MXML" keywords="[TabbedViewNavigator, selectedIndex]" description="Verify setting selectedIndex in MXML works. See SDK-31986">
<body>
<AssertPropertyValue target="tvn.selectedNavigator" propertyName="id" value="vn2" />
</body>
</TestCase>
<TestCase testID="selectedIndex change at runtime" keywords="[TabbedViewNavigator, selectedIndex]" description="Verify changing selectedIndex at runtime works.">
<body>
<RunCode code="FlexGlobals.topLevelApplication.tvn.selectedIndex=0" waitTarget="tvn" waitEvent="change" />
<AssertPropertyValue target="tvn.selectedNavigator" propertyName="id" value="vn0" />
</body>
</TestCase>
</testCases>
</UnitTester>