blob: 50d0fee0bbaa6d33d9a65eccfe62ec5b89cd2aa8 [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/SplitViewNavigator/integration/"
testSWF="BugRegress1.mxml" >
<fx:Script>
<![CDATA[
import mx.core.FlexGlobals;
import spark.components.ViewNavigator;
import flash.geom.Point;
import comps.*;
import spark.components.Callout;
import spark.layouts.*;
import views.*;
import skins.*;
import flash.ui.Keyboard;
import flash.events.MouseEvent;
public static function init(o:DisplayObject):void { };
]]>
</fx:Script>
<fx:Metadata><![CDATA[ [Mixin] ]]></fx:Metadata>
<testCases>
<TestCase testID="Callout_with_states" keywords="[SplitViewNavigator, callout, states]" description="Regression test for SDK-31575">
<bugs>
<Bug bugID="SDK-31575" />
</bugs>
<body>
<RunCode code="FlexGlobals.topLevelApplication.currentOS.indexOf('QNX')!=-1?trace('QNX'):FlexGlobals.topLevelApplication.btn.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, false));" />
<!-- There is no event fired for QNX case so can't wait an open event... -->
<Pause timeout="300" />
<AssertPropertyValue target="svn.viewNavigatorPopUp" propertyName="isOpen" value="true" >
<ConditionalValue deviceDensity="160" os="qnx" value="false"/>
</AssertPropertyValue>
<RunCode code="FlexGlobals.topLevelApplication.currentOS.indexOf('QNX')!=-1? trace('QNX'):FlexGlobals.topLevelApplication.stage.setOrientation(StageOrientation.ROTATED_LEFT);" />
<!-- No event for QNX case so have to pause a bit.-->
<Pause timeout="300" />
<AssertMethodValue method="value = FlexGlobals.topLevelApplication.svn.numViewNavigators" value="2" />
<AssertMethodValue method="value=FlexGlobals.topLevelApplication.svn.getViewNavigatorAt(0).visible" value="true" />
</body>
</TestCase>
</testCases>
</UnitTester>