You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/08/06 22:20:14 UTC
svn commit: r1369972 [7/13] - in
/incubator/flex/trunk/mustella/tests/MarshallPlan: ./ Bugs/ Controls/
Controls/baselines/ Events/ ManagerTests/ ManagerTests/baselines/ RPC/
RSLs/ SWFs/ SWFs/assets/ SWFs/assets/assets/ SWFs/assets/bundles/
SWFs/assets/...
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.mxml Mon Aug 6 20:20:08 2012
@@ -0,0 +1,587 @@
+<?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="assets/Bootstrap_FocusManager_Nested_Child.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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <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?194_14?194_14?194_14" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="true"
+ waitTarget="topSWF" waitEvent="complete"/>
+ <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?202_14?202_14?202_14" />
+ <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_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="updateComplete"/>
+ <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_14?233_14?233_14" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="true"
+ waitTarget="topSWF" waitEvent="complete"/>
+ <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_14?241_14?241_14" />
+ <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_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="updateComplete"/>
+ <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/tabbs.swf?270_14?270_14?270_14" 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_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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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_Tab_fromLocalhost_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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleLoader.swf?398_14?398_14?398_14" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="true"
+ waitTarget="topSWF" waitEvent="complete"/>
+ <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?406_14?406_14?406_14" />
+ <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_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="updateComplete"/>
+ <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_14?437_14?437_14" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="true"
+ waitTarget="topSWF" waitEvent="complete"/>
+ <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_14?445_14?445_14" />
+ <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_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="updateComplete"/>
+ <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/tabbs.swf?474_14?474_14?474_14" 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_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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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_14?507_14?507_14" />
+ <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 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="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="topSWF" propertyName="autoLoad" value="false" />
+ <SetProperty target="topSWF" propertyName="source" value="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_14?546_14?546_14" />
+ <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>
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.sh Mon Aug 6 20:20:08 2012
@@ -0,0 +1,26 @@
+#!/bin/sh
+################################################################################
+##
+## 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.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+if [ "$APOLLO_TRANSFORM" = "true" ]
+ then
+ $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/air_Bootstrap_FocusManager_Nested.as
+else
+ $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/Bootstrap_FocusManager_Nested.as
+fi
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_NestedSWF_FocusManager_Tests.sh
------------------------------------------------------------------------------
svn:executable = *