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 [13/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/Spark/MP_FCK_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_FCK_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_FCK_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_FCK_Tests.sh Mon Aug 6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/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.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -library-path+=assets/ MP_FCK_childApp.mxml
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_FCK_Tests.sh
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.mxml Mon Aug 6 20:20:08 2012
@@ -0,0 +1,223 @@
+<?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/Spark/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_SparkControls_Main.mxml">
+
+ <mx:Script>
+ <![CDATA[
+
+ import mx.core.IFlexDisplayObject;
+ import mx.events.FlexEvent;
+ import flash.utils.*;
+ import mx.core.FlexSprite;
+
+ public static function init(o:DisplayObject):void
+ {
+
+ }
+
+
+
+ ]]>
+ </mx:Script>
+
+ <mx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </mx:Metadata>
+
+ <testCases>
+ <TestCase testID="MP_Spark_Component_toolTip_trusted" description="Test that you can see a tooltip for a Spark component." keywords="[TextInput, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8"
+ waitEvent="toolTipShown" waitTarget="swf1.content.document.textinput1" />
+ <WaitForEffectsToEnd />
+ <Pause timeout="200" />
+ <CompareBitmap numColorVariances="4" maxColorVariance="10" url="../Spark/baselines/$testID_2.png" target="swf1.content.document.group1" timeout="2000" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_toolTip_compatibility" description="Test that you can see a tooltip for a Spark component in compatibility mode." keywords="[TextInput, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8"/>
+ <AssertEvent eventName="toolTipShown" eventClass="mx.events::ToolTipEvent" target="swf1.content.document.textinput1" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_toolTip_untrusted" description="Test that you can see a tooltip for a Spark component in untrusted mode." keywords="[TextInput, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_SparkControls_Child.swf?77_40?77_40?77_40" 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"/>
+ <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8"
+ waitEvent="toolTipShown" waitTarget="swf1.content.document.textinput1" />
+ <AssertEvent eventName="toolTipShown" eventClass="mx.events::ToolTipEvent" target="swf1.content.document.textinput1" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_TextAreaScrolling_compatible" description="Test that you can use a ScrollBar on a spark TextArea." keywords="[TextArea, ScrollBar, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.textarea1" localX="5" localY="30" />
+ <AssertEvent target="swf1.content.document.textarea1.scroller.verticalScrollBar" eventName="change" eventClass="flash.events::Event" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_TextAreaScrolling_compatible_Mac" description="Test that you can use a ScrollBar on a spark TextArea." keywords="[TextArea, ScrollBar, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.textarea1" localX="5" localY="30" waitEvent="change"
+ waitTarget="swf1.content.document.textarea1.scroller.verticalScrollBar" />
+ <WaitForEffectsToEnd />
+ <Pause timeout="200" />
+ <CompareBitmap url="../Spark/baselines/$testID.png" target="swf1.content.document.textarea1" timeout="2000" numColorVariances="8" ignoreMaxColorVariance="true" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_TextAreaScrolling_untrusted" description="Test that you can use a ScrollBar on a spark TextArea." keywords="[TextArea, ScrollBar, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_SparkControls_Child.swf?160_40?160_40?160_40" />
+ <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"/>
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.textarea1.scroller.verticalScrollBar.track" localX="5" localY="30" />
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.textarea1" localX="5" localY="30" />
+ <AssertEvent eventName="change" eventClass="flash.events::Event" target="swf1.content.document.textarea1.scroller.verticalScrollBar" />
+ </body>
+ </TestCase>
+ <!-- Note, we are taking a bitmap of the whole stage because we need to get a picture of the DropDownList plus the dropdown. The dropdown
+ should be beyond the swf borders and into its parent. This also covers bug SDK-29635
+ -->
+ <TestCase testID="MP_Spark_Component_DropDownList_compatible" description="Test that you can use a DropDownList in a trusted child." keywords="[DropDownList, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="rollOver"
+ waitTarget="swf1.content.document.comboBox1"/>
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" />
+ <WaitForEffectsToEnd />
+ <CompareBitmap url="../Spark/baselines/$testID.png" target="" timeout="2000" numColorVariances="8" ignoreMaxColorVariance="true" />
+ <DispatchMouseClickEvent target="swf1.content.document.comboBox1.skin.popUp" localX="18" localY="38" />
+ </body>
+ </TestCase>
+ <!--TestCase testID="MP_Spark_Component_DropDownList_untrusted" description="Test that you can use a DropDownList in a untrusted child." keywords="[DropDownList, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_SparkControls_Child.swf?227_40?227_40?227_40" />
+ <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"/>
+ <Pause timeout="1000" />
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="rollOver"
+ waitTarget="swf1.content.document.comboBox1"/>
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" />
+ <WaitForEffectsToEnd />
+ <DispatchKeyEvent keys="[DOWN, DOWN, ENTER]" />
+ <AssertEvent eventName="change" eventClass="spark.events::IndexChangeEvent" target="swf1.content.document.comboBox1" />
+ </body>
+ </TestCase-->
+
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.sh Mon Aug 6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/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.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc MP_SparkControls_Child.mxml
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests.sh
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.mxml Mon Aug 6 20:20:08 2012
@@ -0,0 +1,152 @@
+<?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/Spark/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_SparkControls_Main_2.mxml">
+
+ <mx:Script>
+ <![CDATA[
+
+ import mx.core.IFlexDisplayObject;
+ import mx.events.FlexEvent;
+ import flash.utils.*;
+ import mx.core.FlexSprite;
+
+ public static function init(o:DisplayObject):void
+ {
+
+ }
+
+
+
+ ]]>
+ </mx:Script>
+
+ <mx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </mx:Metadata>
+
+ <testCases>
+ <TestCase testID="MP_Spark_Component_DropDownList_untrusted" description="Test that you can use a DropDownList in a untrusted child." keywords="[DropDownList, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_SparkControls_Child.swf?227_40?227_40?227_40" />
+ <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"/>
+ <Pause timeout="1000" />
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="rollOver"
+ waitTarget="swf1.content.document.comboBox1"/>
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" />
+ <WaitForEffectsToEnd />
+ <DispatchKeyEvent keys="[DOWN, DOWN, ENTER]" />
+ <AssertEvent eventName="change" eventClass="spark.events::IndexChangeEvent" target="swf1.content.document.comboBox1" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_Effects_trusted" description="Test that you can use an Effect in a trusted child." keywords="[Effect, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf2" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf2" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf2" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf2" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="true" waitTarget="swf2" waitEvent="complete"/>
+ </setup>
+ <body>
+ <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf2.content" waitEvent="applicationComplete"/>
+ <DispatchMouseClickEvent target="swf2.content.document.button1" localX="8" localY="8"/>
+ <AssertEvent eventName="effectEnd" eventClass="mx.events::EffectEvent" target="swf2.content.document.button1" />
+ </body>
+ </TestCase>
+ <TestCase testID="MP_Spark_Component_Effects_untrusted" description="Test that you can use an Effect in a untrusted child." keywords="[Effect, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf2" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf2" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf2" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_SparkControls_Child.swf?286_40?286_40?286_40" />
+ <SetProperty target="swf2" propertyName="autoLoad" value="true" waitTarget="swf2" waitEvent="complete"/>
+ </setup>
+ <body>
+ <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf2.content" waitEvent="applicationComplete"/>
+ <DispatchMouseClickEvent target="swf2.content.document.button1" localX="8" localY="8"/>
+ <AssertEvent eventName="effectEnd" eventClass="mx.events::EffectEvent" target="swf2.content.document.button1" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="MP_Spark_Component_DropDownList_trusted" description="Test that you can use a DropDownList in a trusted child." keywords="[DropDownList, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseEvent type="rollOver" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="rollOver"
+ waitTarget="swf1.content.document.comboBox1"/>
+ <DispatchMouseEvent type="mouseDown" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+ <WaitForEffectsToEnd />
+ <DispatchMouseEvent type="mouseUp" target="swf1.content.document.comboBox1.skin" localX="5" localY="10" />
+ <DispatchMouseClickEvent target="swf1.content.document.comboBox1.skin.popUp" localX="18" localY="38"
+ waitEvent="change" waitTarget="swf1.content.document.comboBox1" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="MP_Spark_Component_Effects_compatible" description="Test that you can use an Effect in a trusted child." keywords="[Effect, Spark, Marshall Plan, ToolTip]">
+ <setup>
+ <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1"
+ waitEvent="updateComplete" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+ <SetProperty target="swf1" propertyName="source" value="../../../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+ <Pause timeout="100" />
+ <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+ <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+ <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" />
+ <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"/>
+ <DispatchMouseClickEvent target="swf1.content.document.button1" localX="8" localY="8"/>
+ <AssertEvent eventName="effectEnd" eventClass="mx.events::EffectEvent" target="swf1.content.document.button1" />
+ </body>
+ </TestCase>
+
+
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.sh Mon Aug 6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/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.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc MP_SparkControls_Child.mxml
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/MP_Spark_Controls_Tests2.sh
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_compatible.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_compatible.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_compatible.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_trusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_trusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_trusted.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_untrusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_untrusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_FCK_Component_toolTip_untrusted.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_compatible.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_compatible.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_compatible.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_trusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_trusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_DropDownList_trusted.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible_Mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible_Mac.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_TextAreaScrolling_compatible_Mac.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted_2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted_2.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/Spark/baselines/MP_Spark_Component_toolTip_trusted_2.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream