blob: f0cc6f57fabee8ea9d606c4e626d62a6eaec45c2 [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 testDir="MarshallPlan/ManagerTests/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_FocusManager_Nested_Main.mxml">
<!-- this set of lines form a template that must be in each unit test -->
<mx:Script>
<![CDATA[
public static function init(o:DisplayObject):void
{
}
]]>
</mx:Script>
<mx:Metadata>
<![CDATA[
[Mixin]
]]>
</mx:Metadata>
<!-- end of set of lines that must be in each unit test -->
<mx:Script>
<![CDATA[
]]>
</mx:Script>
<!-- There are 100 ms pauses because even after an updateComplete or a complete event, the source doesn't seem to be consis-
tently fully loaded -->
<testCases>
<TestCase testID="NestedSWF_FocusManager_Tab" description="Test tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="simpleForms.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<TestCase testID="NestedSWF_FocusManager_ShiftTab" description="Test shift+tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="simpleForms.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<!--commented out untile bug 15719 is fixed-->
<!--TestCase testID="NestedSWF_FocusManager_PopUps" description="Test focus after opening and closing popups"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="tabbs.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="topSWF.content.document.swf1.content.document.btn1" localX="8" localY="10"
waitTarget="topSWF.content.document.swf1.content.document.myTitleWindow" waitEvent="updateComplete" />
<Pause timeout="5000" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.swf1.content.document.myTitleWindow.inputUsername"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.swf1.content.document.myTitleWindow.inputPassword"
waitEvent="focusIn" />
<DispatchKeyEvent key="SPACE" waitTarget="topSWF.content.document.swf1.content.document.myTitleWindow" waitEvent="removed" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.swf1.content.document.myTitleWindow.buttonLogon"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.swf1.content.document.text3" waitEvent="focusIn" />
<AssertEvent target="topSWF.content.document.swf1.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase-->
<TestCase testID="NestedSWF_FocusManager_TabIndex" description="Test tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="simpleForms.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<SetProperty propertyName="tabIndex" target="control1" value="9"/>
<SetProperty propertyName="tabIndex" target="control2" value="6"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.control1" value="8"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.control2" value="7"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.swf1.content.document.subcontrol1" value="4"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.swf1.content.document.subcontrol2" value="1"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.swf1.content.document.subcontrol3" value="3"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.swf1.content.document.subcontrol4" value="2"/>
<SetProperty propertyName="tabIndex" target="topSWF.content.document.swf1.content.document.subcontrol5" value="5"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<TestCase testID="NestedSWF_FocusManager_Tab_fromLocalhost" description="Test tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="300" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleLoader.swf?194_8" timeout="6000"/>
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete" timeout="5000"/>
<DispatchMouseEvent target="topSWF" type="mouseMove" localX="10" localY="55"
waitTarget="topSWF.mx_internal:contentHolder.contentLoaderInfo.sharedEvents" waitEvent="mustellaStarted" timeout="5000" />
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?202_8" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete" timeout="6000"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<TestCase testID="NestedSWF_FocusManager_ShiftTab_fromLocalhost" description="Test shift+tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleLoader.swf?233_8" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete" timeout="6000" />
<DispatchMouseEvent target="topSWF" type="mouseMove" localX="10" localY="55" waitTarget="topSWF.mx_internal:contentHolder.contentLoaderInfo.sharedEvents" waitEvent="mustellaStarted" timeout="3000" />
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?241_8?241_8?241_8" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete" timeout="6000"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<!--TestCase testID="NestedSWF_FocusManager_PopUps_fromLocalhost" description="Test focus after opening and closing popups"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/NestedSWF/SWFs/assets/tabbs.swf?270_8" waitTarget="topSWF" waitEvent="updateComplete"/>
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete" timeout="6000"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="topSWF.content.document.btn1" localX="8" localY="10"
waitTarget="topSWF.content.document.myTitleWindow" waitEvent="updateComplete" />
<DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="topSWF.content.document.myTitleWindow.buttonLogon"
waitEvent="focusIn" />
<DispatchKeyEvent key="SPACE" waitTarget="topSWF.content.document.myTitleWindow" waitEvent="removed" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.text3" waitEvent="focusIn" />
<AssertEvent target="topSWF.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase-->
<TestCase testID="NestedSWF_FocusManager_Tab_compatibilityMode" description="Test tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="simpleForms.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<TestCase testID="NestedSWF_FocusManager_ShiftTab_compatibilityMode" description="Test shift+tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="simpleForms.swf" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<!--TestCase testID="NestedSWF_FocusManager_PopUps_compatibilityMode" description="Test focus after opening and closing popups"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/tabbs.swf" waitTarget="topSWF" waitEvent="updateComplete"/>
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="topSWF.content.document.btn1" localX="8" localY="10"
waitTarget="topSWF.content.document.myTitleWindow" waitEvent="updateComplete" />
<DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="topSWF.content.document.myTitleWindow.buttonLogon"
waitEvent="focusIn" />
<DispatchKeyEvent key="SPACE" waitTarget="topSWF.content.document.myTitleWindow" waitEvent="removed" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.text3" waitEvent="focusIn" />
<AssertEvent target="topSWF.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase-->
<TestCase testID="NestedSWF_FocusManager_ShiftTab_fromLocalhost_compatibilityMode" description="Test shift+tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleLoader.swf?437_8" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete" timeout="16000"/>
<DispatchMouseEvent target="topSWF" type="mouseMove" localX="10" localY="55" waitTarget="topSWF.mx_internal:contentHolder.contentLoaderInfo.sharedEvents" waitEvent="mustellaStarted" timeout="3000" />
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?445_8?445_8?445_8" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete" timeout="20000" />
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<!--TestCase testID="NestedSWF_FocusManager_PopUps_fromLocalhost_compatibilityMode" description="Test focus after opening and closing popups"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/NestedSWF/SWFs/assets/tabbs.swf?474_8" waitTarget="topSWF" waitEvent="updateComplete" timeout="6000"/>
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="topSWF.content.document.btn1" localX="8" localY="10"
waitTarget="topSWF.content.document.myTitleWindow" waitEvent="updateComplete" />
<DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="topSWF.content.document.myTitleWindow.buttonLogon"
waitEvent="focusIn" />
<DispatchKeyEvent key="SPACE" waitTarget="topSWF.content.document.myTitleWindow" waitEvent="removed" />
<DispatchKeyEvent key="TAB" waitTarget="topSWF.content.document.text3" waitEvent="focusIn" />
<AssertEvent target="topSWF.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase-->
<TestCase testID="NestedSWF_Tab_compatibilityMode_2ndLevelUntrusted" description="Test tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?507_8" />
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete" timeout="6000"/>
</setup>
<body>
<DispatchMouseEvent target="topSWF" type="mouseMove" localX="10" localY="55" waitTarget="topSWF.content.document.swf1.mx_internal:contentHolder.contentLoaderInfo.sharedEvents" waitEvent="mustellaStarted" timeout="3000" />
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
<TestCase testID="NestedSWF_ShiftTab_compatibilityMode_2ndLevelUntrusted" description="Test shift+tabbing through the main app and sub app"
keywords="[Marshall Plan, FocusManager, TAB]">
<setup>
<ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
<ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
<SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true" />
<SetProperty target="topSWF" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="topSWF" waitEvent="complete"/>
<Pause timeout="100" />
<SetProperty target="topSWF" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF" propertyName="source" value="assets/simpleLoader.swf" />
<SetProperty target="topSWF" propertyName="autoLoad" value="true"
waitTarget="topSWF" waitEvent="complete"/>
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content" waitEvent="applicationComplete"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="loadForCompatibility" value="false" />
<SetProperty target="topSWF.content.document.swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?546_8?546_8?546_8" waitEvent="updateComplete" timeout="4000"/>
<SetProperty target="topSWF.content.document.swf1" propertyName="autoLoad" value="true"
waitTarget="topSWF.content.document.swf1" waitEvent="complete"/>
</setup>
<body>
<DispatchMouseEvent target="topSWF" type="mouseMove" localX="10" localY="55" waitTarget="topSWF.content.document.swf1.mx_internal:contentHolder.contentLoaderInfo.sharedEvents" waitEvent="mustellaStarted" timeout="3000" />
<DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
waitTarget="topSWF.content.document.swf1.content" waitEvent="applicationComplete"/>
<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
waitEvent="focusIn" />
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol5" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol4" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol3" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.swf1.content.document.subcontrol1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="topSWF.content.document.control1" shiftKey="true"/>
<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
<AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
</body>
</TestCase>
</testCases>
</UnitTester>