| <UnitTester testDir="MarshallPlan/ManagerTests/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_CursorManager_Main.mxml"> |
| <!--Default Script--> |
| <mx:Script> |
| <![CDATA[ |
| import mx.managers.CursorManagerPriority; |
| |
| public static function init(o:DisplayObject):void{} |
| ]]> |
| </mx:Script> |
| <!--Default Metadata--> |
| <mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata> |
| <!--Test Cases--> |
| <mx:Script> |
| <![CDATA[ |
| import mx.managers.CursorManager; |
| import mx.managers.CursorManagerPriority; |
| |
| public function ResetCursorManager():void |
| { |
| application.cursorManager.removeAllCursors(); |
| application.cursorManager.showCursor(); |
| } |
| ]]> |
| </mx:Script> |
| <testCases> |
| |
| <!-- SetCursor --> |
| <TestCase testID="MP_CursorManager_SetCursor_EmbeddedImage" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" /> |
| <Pause timeout="100" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="13" y="40" value="0xFFFFFF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_SetCursor_XOffset" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image with an xOffset."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 30, 0);" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="44" y="38" value="0xFFFFFF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_SetCursor_YOffset" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image with an yOffset."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 30);" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="15" y="55" value="0xFFFFFF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_HideCursor" keywords="[MarshallPlan, Managers, CursorManager, HideCursor]" description="Hide a custom cursor."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFFFFFF" /> |
| <RunCode code="application.cursorManager.hideCursor();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFF00FF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_ShowCursor" keywords="[MarshallPlan, Managers, CursorManager, ShowCursor]" description="Show a custom cursor."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.hideCursor();" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFF00FF" /> |
| <RunCode code="application.cursorManager.showCursor();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFFFFFF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_RemoveAllCursors" keywords="[MarshallPlan, Managers, CursorManager, RemoveAllCursors]" description="Remove all custom cursors."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFFFFFF" /> |
| <RunCode code="application.cursorManager.removeAllCursors();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFF00FF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_RemoveCursor" keywords="[MarshallPlan, Managers, CursorManager, RemoveCursor]" description="Remove a custom cursor."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFFFFFF" /> |
| <RunCode code="application.cursorManager.removeCursor(application.cursorManager.currentCursorID);" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="0xFF00FF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_SetBusyCursor" keywords="[MarshallPlan, Managers, CursorManager, SetBusyCursor]" description="Activate the busy cursor."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="50" localY="50" /> |
| <RunCode code="application.cursorManager.setBusyCursor();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="55" y="50" value="0xFFFFFF" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_RemoveBusyCursor" keywords="[MarshallPlan, Managers, CursorManager, RemoveBusyCursor]" description="Remove the busy cursor."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="50" localY="50" /> |
| <RunCode code="application.cursorManager.setBusyCursor();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="55" y="50" value="0xFFFFFF" /> |
| <RunCode code="application.cursorManager.removeBusyCursor();" /> |
| <WaitForEvent eventName="enterFrame" numExpectedEvents="2" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="55" y="50" value="0xFF00FF" /> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="MP_CursorManager_SetCursor_InSubApp" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.swf1.content.document.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="13" y="40" value="0xFFFFFF" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="" waitTarget="" waitEvent="mouseMove" /> |
| <AssertPixelValue target="" x="10" y="43" value="0" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_SetCursor_InCompatibilitySubApp" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" /> |
| <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" /> |
| <AssertPixelValue target="swf1.content.document.testPanel" x="13" y="40" value="0xFFFFFF" /> |
| <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="" waitTarget="" waitEvent="mouseMove" /> |
| <AssertPixelValue target="" x="10" y="43" value="0" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_DividedBox_local" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child_WithControls.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox" |
| localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerPress"/> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="150" localY="28" buttonDown="true"/> |
| <DispatchMouseEvent type="mouseMove" buttonDown="true" target="swf1.content.document.container_dividedbox" localX="150" localY="30" /> |
| <Pause timeout="150" /> |
| <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_local.png" target="swf1.content.document.container_dividedbox" timeout="2500" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_DividedBox_remote" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.swf?300_4?300_4?300_4" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <WaitForSandboxApp target="swf1" /> |
| <DispatchMouseClickEvent target="swf1.content.document.btn2" localX="2" localY="5" /> |
| <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox" |
| localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerPress"/> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="150" localY="37" buttonDown="true" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerDrag"/> |
| <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_remote.png" target="swf1.content.document.container_dividedbox" timeout="2500" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_CursorManager_DividedBox_compatibility" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image."> |
| <setup> |
| <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/> |
| <Pause timeout="100" /> |
| <RunCode code="ResetCursorManager();" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child_WithControls.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <RunCode code="application.swf1.content.document.ResetCursorManager();" /> |
| <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox" |
| localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="mouseDown"/> |
| <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="152" localY="35" buttonDown="true" |
| waitEvent="mouseMove" waitTarget="swf1.content.document.container_dividedbox" /> |
| <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_compatibility.png" target="swf1.content.document.container_dividedbox" timeout="2500" /> |
| </body> |
| </TestCase> |
| </testCases> |
| </UnitTester> |