incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369970 [12/16] - in /incubator/flex/trunk/mustella/tests/Managers: ./ CursorManager/ CursorManager/Methods/ CursorManager/Props/ CursorManager/SWFs/ CursorManager/SWFs/Assets/ DragManager/ DragManager/Events/ DragManager/Halo/ DragManager...
Date Mon, 06 Aug 2012 20:17:23 GMT
Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,244 @@
+<?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="Managers/StyleManager/AdvancedCSS/pseudoSelectors/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="PseudoSelectors_halo_styleTag.mxml">
+       <mx:Script>
+		<![CDATA[
+
+		import comps.CustomPanel;
+
+		public static function init(o:DisplayObject):void
+		{
+        }
+
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+	    <TestCase testID="PseudoSelector_halo_basicHaloComponent_start" keywords="[CSS, pseudo Selector, Button]"
+	        description="Test that a basic pseudo selector works on an Button when no state has changed: Button:SubmitState.">
+	        <setup>
+	            <ResetComponent target="button1" className="comps.ButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertPropertyValue target="button1" propertyName="label" value="submit" />
+	            <AssertStyleValue target="button1" styleName="cornerRadius" value="2" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_basicHaloComponent_stateChanged" keywords="[CSS, pseudo Selector, Button]"
+	        description="Test that a basic pseudo selector works on an Button when a state has changed: Button:ClearState.">
+	        <setup>
+	            <ResetComponent target="button1" className="comps.ButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="button1" propertyName="currentState" value="ClearState" waitTarget="button1" waitEvent="updateComplete" />
+	            <AssertPropertyValue target="button1" propertyName="label" value="clear" />
+	            <AssertStyleValue target="button1" styleName="cornerRadius" value="2" />
+	  	    </body>
+	    </TestCase>
+
+	    <TestCase testID="PseudoSelector_mxButton_skinStates" keywords="[CSS, pseudo Selector, Button]"
+	        description="Test that a pseudo selector on Button's down state works">
+	        <setup>
+	            <ResetComponent target="button1" className="comps.ButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <DispatchMouseEvent target="button1" localX="10" localY="5" type="mouseOver" waitEvent="mouseOver" waitTarget="button1" />
+	            <DispatchMouseEvent target="button1" localX="10" localY="5" type="mouseDown" waitEvent="mouseDown" waitTarget="button1" />
+	            <CompareBitmap url="../pseudoSelectors/baselines/$testID.png" target="button1" timeout="2500" />
+	            <DispatchMouseEvent target="button1" localX="10" localY="5" type="mouseUp" waitEvent="mouseUp" waitTarget="button1" />
+	        </body>
+	    </TestCase>
+	    
+	    <TestCase testID="PseudoSelector_halo_basicHaloContainer_start" keywords="[CSS, pseudo Selector, Box]"
+	        description="Test that a basic pseudo selector works on an Box when no state has changed: Box:normal.">
+	        <setup>
+	            <ResetComponent target="box1" className="comps.TextBasic" waitTarget="box1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="box1.getChildAt(0)" styleName="fontSize" value="12" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_basicHaloContainer_stateChanged" keywords="[CSS, pseudo Selector, Box]"
+	        description="Test that a basic pseudo selector works on an Box when a state has changed: Box:normal.">
+	        <setup>
+	            <ResetComponent target="box1" className="comps.TextBasic" waitTarget="box1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="box1" propertyName="currentState" value="zoomed" waitTarget="box1" waitEvent="updateComplete" />
+	            <AssertStyleValue target="box1.getChildAt(0)" styleName="fontSize" value="20" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_basicHaloContainerSubclass_start" keywords="[CSS, pseudo Selector, Box]"
+	        description="Test that a basic pseudo selector works on an VBox when no state has changed: Box:normal.">
+	        <setup>
+	            <ResetComponent target="vbox1" className="comps.VBoxStatesComp" waitTarget="vbox1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="vbox1.getChildAt(0)" styleName="fontSize" value="12" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_basicHaloContainerSubclass_stateChanged" keywords="[CSS, pseudo Selector, Box]"
+	        description="Test that a basic pseudo selector works on an VBox when a state has changed: Box:normal.">
+	        <setup>
+	            <ResetComponent target="vbox1" className="comps.VBoxStatesComp" waitTarget="vbox1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="vbox1" propertyName="currentState" value="zoomed" waitTarget="vbox1" waitEvent="updateComplete" />
+	            <AssertStyleValue target="vbox1.getChildAt(0)" styleName="fontSize" value="20" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_nestedHaloComponent_start" keywords="[CSS, pseudo Selector, Button]"
+	        description="Test that a basic pseudo selector works on an Button in a container when no state has changed: Button:SubmitState.">
+	        <setup>
+	            <ResetComponent target="button2" className="comps.ButtonComp" waitTarget="button2" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertPropertyValue target="button2" propertyName="label" value="submit" />
+	            <AssertStyleValue target="button2" styleName="cornerRadius" value="15" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_nestedHaloComponent_stateChanged" keywords="[CSS, pseudo Selector, Button]"
+	        description="Test that a basic pseudo selector works on an Button in a container when a state has changed: Button:ClearState.">
+	        <setup>
+	            <ResetComponent target="button2" className="comps.ButtonComp" waitTarget="button2" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="button2" propertyName="currentState" value="ClearState" waitTarget="button2" waitEvent="updateComplete" />
+	            <AssertPropertyValue target="button2" propertyName="label" value="clear" />
+	            <AssertStyleValue target="button2" styleName="cornerRadius" value="0" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_descendantAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, descendant selector]"
+	        description="Test that a descendant and pseudo selector works on an DateChooser when no state has changed: Panel DateChooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitTarget="datechooser1" waitEvent="updateComplete" />
+	            <ResetComponent target="datechooser2" className="comps.DateChooserComp" waitTarget="datechooser2" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertPropertyValue target="datechooser1" propertyName="enabled" value="true" />
+	            <AssertStyleValue target="datechooser1" styleName="color" value="0xFF00FF" />
+	            <AssertStyleValue target="datechooser2" styleName="color" value="0x000000" />
+	  	    </body>
+	    </TestCase>
+
+	    <TestCase testID="PseudoSelector_halo_idAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, id selector]"
+	        description="Test that a id and pseudo selector works on an DateChooser when no state has changed: #chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="peepComboBox" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox" waitEvent="updateComplete" />
+	            <ResetComponent target="peepComboBox2" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox2" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="peepComboBox" styleName="rollOverColor" value="0xFF0033" />
+	            <AssertStyleValue target="peepComboBox2" styleName="rollOverColor" value="0xCEDBEF" />
+	            <DispatchMouseClickEvent target="peepComboBox" localX="110" localY="6" waitTarget="peepComboBox" waitEvent="open" />
+	            <WaitForEffectsToEnd />
+	            <DispatchMouseEvent target="peepComboBox.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox.dropdown" x="100" y="8" value="0xFF0033" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_idAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, DateChooser, id selector]"
+	        description="Test that a id and pseudo selector works on an DateChooser when a state has changed: #chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="peepComboBox" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox" waitEvent="updateComplete" />
+	            <ResetComponent target="peepComboBox2" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox2" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="peepComboBox" propertyName="currentState" value="errorState" waitTarget="peepComboBox" waitEvent="updateComplete" />
+	            <SetProperty target="peepComboBox2" propertyName="currentState" value="errorState"  />
+	            <AssertStyleValue target="peepComboBox" styleName="rollOverColor" value="0xCC3399" />
+	            <AssertStyleValue target="peepComboBox2" styleName="rollOverColor" value="0xCEDBEF" />
+	            <DispatchMouseClickEvent target="peepComboBox" localX="110" localY="6" waitTarget="peepComboBox" waitEvent="open" />
+	            <WaitForEffectsToEnd />
+	            <DispatchMouseEvent target="peepComboBox.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox.dropdown" x="100" y="8" value="0xCC3399" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_descendantIdAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, descendant selector, id selector]"
+	        description="Test that a id, descendant, and pseudo selector works on an DateChooser when no state has changed: HBox #chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="peepComboBox3" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+	            <ResetComponent target="peepComboBox4" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox4" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="peepComboBox3" styleName="rollOverColor" value="0xFF0033" />
+	            <AssertStyleValue target="peepComboBox4" styleName="rollOverColor" value="0xCEDBEF" />
+	            <DispatchMouseClickEvent target="peepComboBox3" localX="110" localY="6" waitTarget="peepComboBox3" waitEvent="open" />
+	            <Pause timeout="500" />
+	            <WaitForEffectsToEnd />
+	            <DispatchMouseEvent target="peepComboBox3.dropdown" type="mouseOver" localX="25" localY="8" />
+	            <Pause timeout="500" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox3.dropdown" x="100" y="8" value="0xFF0033" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_descendantIdAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, descendant selector, DateChooser, id selector]"
+	        description="Test that a descendant, id and pseudo selector works on an DateChooser when a state has changed: HBox #chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="peepComboBox3" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+	            <ResetComponent target="peepComboBox4" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox4" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="peepComboBox3" propertyName="currentState" value="errorState" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+	            <SetProperty target="peepComboBox4" propertyName="currentState" value="errorState"  />
+	            <AssertStyleValue target="peepComboBox3" styleName="rollOverColor" value="0xCC3399" />
+	            <AssertStyleValue target="peepComboBox4" styleName="rollOverColor" value="0xCEDBEF" />
+	            <DispatchMouseClickEvent target="peepComboBox3" localX="110" localY="6" waitTarget="peepComboBox3" waitEvent="open" />
+	            <WaitForEffectsToEnd />
+	            <DispatchMouseEvent target="peepComboBox3.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox3.dropdown" x="100" y="8" value="0xCC3399" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_styleAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, style selector]"
+	        description="Test that a style and pseudo selector works on an Canvas when no state has changed: .chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="canvas1" className="comps.CanvasStatesComp" waitTarget="canvas1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="canvas1" styleName="backgroundColor" value="0x990099" />
+	            <AssertStyleValue target="canvas1.getChildAt(0)" styleName="backgroundColor" value="0x000000" />
+	            <AssertStyleValue target="canvas1.getChildAt(1)" styleName="backgroundColor" value="0x990099" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_halo_styleAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, DateChooser, style selector]"
+	        description="Test that a style and pseudo selector works on an Canvas when a state has changed: .chooser:SubmitState.">
+	        <setup>
+	            <ResetComponent target="canvas1" className="comps.CanvasStatesComp" waitTarget="canvas1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="canvas1" propertyName="currentState" value="state2" waitTarget="canvas1" waitEvent="updateComplete" />
+	            <AssertStyleValue target="canvas1" styleName="backgroundColor" value="0x660066" />
+	            <AssertStyleValue target="canvas1.getChildAt(0)" styleName="backgroundColor" value="0x000000" />
+	            <AssertStyleValue target="canvas1.getChildAt(1)" styleName="backgroundColor" value="0x660066" />
+	  	    </body>
+	    </TestCase>
+
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors_RuntimeCSS.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors_RuntimeCSS.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors_RuntimeCSS.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Halo_PseudoSelectors_RuntimeCSS.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,230 @@
+<?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="Managers/StyleManager/AdvancedCSS/pseudoSelectors/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="PseudoSelectors_halo_RuntimeCSS.mxml">
+       <mx:Script>
+        <![CDATA[
+
+        import comps.CustomPanel;
+
+        public static function init(o:DisplayObject):void
+        {
+        }
+
+
+        ]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+    <testCases>
+         <!-- That Pause in this test seems to be needed for AIR -->
+        <TestCase testID="PseudoSelector_halo_basicHaloComponent_start" keywords="[CSS, pseudo Selector, Button]"
+            description="Test that a basic pseudo selector works on an Button when no state has changed: Button:SubmitState.">
+            <setup>
+                <Pause timeout="1200" />
+                <ResetComponent target="button1" className="comps.ButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="button1" propertyName="label" value="submit" />
+                <AssertStyleValue target="button1" styleName="cornerRadius" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_basicHaloComponent_stateChanged" keywords="[CSS, pseudo Selector, Button]"
+            description="Test that a basic pseudo selector works on an Button when a state has changed: Button:ClearState.">
+            <setup>
+                <ResetComponent target="button1" className="comps.ButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="button1" propertyName="currentState" value="ClearState" waitTarget="button1" waitEvent="updateComplete" />
+                <AssertPropertyValue target="button1" propertyName="label" value="clear" />
+                <AssertStyleValue target="button1" styleName="cornerRadius" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_basicHaloContainer_start" keywords="[CSS, pseudo Selector, Box]"
+            description="Test that a basic pseudo selector works on an Box when no state has changed: Box:normal.">
+            <setup>
+                <ResetComponent target="box1" className="comps.TextBasic" waitTarget="box1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertStyleValue target="box1.getChildAt(0)" styleName="fontSize" value="12" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_basicHaloContainer_stateChanged" keywords="[CSS, pseudo Selector, Box]"
+            description="Test that a basic pseudo selector works on an Box when a state has changed: Box:normal.">
+            <setup>
+                <ResetComponent target="box1" className="comps.TextBasic" waitTarget="box1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="box1" propertyName="currentState" value="zoomed" waitTarget="box1" waitEvent="updateComplete" />
+                <AssertStyleValue target="box1.getChildAt(0)" styleName="fontSize" value="20" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_basicHaloContainerSubclass_start" keywords="[CSS, pseudo Selector, Box]"
+            description="Test that a basic pseudo selector works on an VBox when no state has changed: Box:normal.">
+            <setup>
+                <ResetComponent target="vbox1" className="comps.VBoxStatesComp" waitTarget="vbox1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertStyleValue target="vbox1.getChildAt(0)" styleName="fontSize" value="12" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_basicHaloContainerSubclass_stateChanged" keywords="[CSS, pseudo Selector, Box]"
+            description="Test that a basic pseudo selector works on an VBox when a state has changed: Box:normal.">
+            <setup>
+                <ResetComponent target="vbox1" className="comps.VBoxStatesComp" waitTarget="vbox1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="vbox1" propertyName="currentState" value="zoomed" waitTarget="vbox1" waitEvent="updateComplete" />
+                <AssertStyleValue target="vbox1.getChildAt(0)" styleName="fontSize" value="20" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_nestedHaloComponent_start" keywords="[CSS, pseudo Selector, Button]"
+            description="Test that a basic pseudo selector works on an Button in a container when no state has changed: Button:SubmitState.">
+            <setup>
+                <ResetComponent target="button2" className="comps.ButtonComp" waitTarget="button2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="button2" propertyName="label" value="submit" />
+                <AssertStyleValue target="button2" styleName="cornerRadius" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_nestedHaloComponent_stateChanged" keywords="[CSS, pseudo Selector, Button]"
+            description="Test that a basic pseudo selector works on an Button in a container when a state has changed: Button:ClearState.">
+            <setup>
+                <ResetComponent target="button2" className="comps.ButtonComp" waitTarget="button2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="button2" propertyName="currentState" value="ClearState" waitTarget="button2" waitEvent="updateComplete" />
+                <AssertPropertyValue target="button2" propertyName="label" value="clear" />
+                <AssertStyleValue target="button2" styleName="cornerRadius" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_descendantAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, descendant selector]"
+            description="Test that a descendant and pseudo selector works on an DateChooser when no state has changed: Panel DateChooser:SubmitState.">
+            <setup>
+                <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitTarget="datechooser1" waitEvent="updateComplete" />
+                <ResetComponent target="datechooser2" className="comps.DateChooserComp" waitTarget="datechooser2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="datechooser1" propertyName="enabled" value="true" />
+                <AssertStyleValue target="datechooser1" styleName="color" value="0xFF00FF" />
+                <AssertStyleValue target="datechooser2" styleName="color" value="0x000000" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="PseudoSelector_halo_idAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, id selector]"
+            description="Test that a id and pseudo selector works on an DateChooser when no state has changed: #chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="peepComboBox" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox" waitEvent="updateComplete" />
+                <ResetComponent target="peepComboBox2" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertStyleValue target="peepComboBox" styleName="rollOverColor" value="0xFF0033" />
+                <AssertStyleValue target="peepComboBox2" styleName="rollOverColor" value="0xCEDBEF" />
+                <DispatchMouseClickEvent target="peepComboBox" localX="110" localY="6" waitTarget="peepComboBox" waitEvent="open" />
+                <WaitForEffectsToEnd />
+                <DispatchMouseEvent target="peepComboBox.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox.dropdown" x="100" y="8" value="0xFF0033" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_idAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, DateChooser, id selector]"
+            description="Test that a id and pseudo selector works on an DateChooser when a state has changed: #chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="peepComboBox" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox" waitEvent="updateComplete" />
+                <ResetComponent target="peepComboBox2" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="peepComboBox" propertyName="currentState" value="errorState" waitTarget="peepComboBox" waitEvent="updateComplete" />
+                <SetProperty target="peepComboBox2" propertyName="currentState" value="errorState"  />
+                <AssertStyleValue target="peepComboBox" styleName="rollOverColor" value="0xCC3399" />
+                <AssertStyleValue target="peepComboBox2" styleName="rollOverColor" value="0xCEDBEF" />
+                <DispatchMouseClickEvent target="peepComboBox" localX="110" localY="6" waitTarget="peepComboBox" waitEvent="open" />
+                <WaitForEffectsToEnd />
+                <DispatchMouseEvent target="peepComboBox.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <Pause timeout="500" />
+                <AssertPixelValue target="peepComboBox.dropdown" x="100" y="8" value="0xCC3399" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_descendantIdAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, descendant selector, id selector]"
+            description="Test that a id, descendant, and pseudo selector works on an DateChooser when no state has changed: HBox #chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="peepComboBox3" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+                <ResetComponent target="peepComboBox4" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox4" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertStyleValue target="peepComboBox3" styleName="rollOverColor" value="0xFF0033" />
+                <AssertStyleValue target="peepComboBox4" styleName="rollOverColor" value="0xCEDBEF" />
+                <DispatchMouseClickEvent target="peepComboBox3" localX="110" localY="6" waitTarget="peepComboBox3" waitEvent="open" />
+                <WaitForEffectsToEnd />
+                <DispatchMouseEvent target="peepComboBox3.dropdown" type="mouseOver" localX="25" localY="8" />
+                <AssertPixelValue target="peepComboBox3.dropdown" x="25" y="8" value="0xFF0033" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_descendantIdAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, descendant selector, DateChooser, id selector]"
+            description="Test that a descendant, id and pseudo selector works on an DateChooser when a state has changed: HBox #chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="peepComboBox3" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+                <ResetComponent target="peepComboBox4" className="comps.ComboBoxStatesComp" waitTarget="peepComboBox4" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="peepComboBox3" propertyName="currentState" value="errorState" waitTarget="peepComboBox3" waitEvent="updateComplete" />
+                <SetProperty target="peepComboBox4" propertyName="currentState" value="errorState"  />
+                <AssertStyleValue target="peepComboBox3" styleName="rollOverColor" value="0xCC3399" />
+                <AssertStyleValue target="peepComboBox4" styleName="rollOverColor" value="0xCEDBEF" />
+                <DispatchMouseClickEvent target="peepComboBox3" localX="110" localY="6" waitTarget="peepComboBox3" waitEvent="open" />
+                <WaitForEffectsToEnd />
+                <DispatchMouseEvent target="peepComboBox3.dropdown" type="mouseOver" localX="25" localY="8" />
+                <WaitForEffectsToEnd />
+                <AssertPixelValue target="peepComboBox3.dropdown" x="100" y="8" value="0xCC3399" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_styleAndPseudo_start" keywords="[CSS, pseudo Selector, DateChooser, style selector]"
+            description="Test that a style and pseudo selector works on an Canvas when no state has changed: .chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="canvas1" className="comps.CanvasStatesComp" waitTarget="canvas1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <AssertStyleValue target="canvas1" styleName="backgroundColor" value="0x990099" />
+                <AssertStyleValue target="canvas1.getChildAt(0)" styleName="backgroundColor" value="0x000000" />
+                <AssertStyleValue target="canvas1.getChildAt(1)" styleName="backgroundColor" value="0x990099" />
+            </body>
+        </TestCase>
+        <TestCase testID="PseudoSelector_halo_styleAndPseudo_stateChanged" keywords="[CSS, pseudo Selector, DateChooser, style selector]"
+            description="Test that a style and pseudo selector works on an Canvas when a state has changed: .chooser:SubmitState.">
+            <setup>
+                <ResetComponent target="canvas1" className="comps.CanvasStatesComp" waitTarget="canvas1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <SetProperty target="canvas1" propertyName="currentState" value="state2" waitTarget="canvas1" waitEvent="updateComplete" />
+                <AssertStyleValue target="canvas1" styleName="backgroundColor" value="0x660066" />
+                <AssertStyleValue target="canvas1.getChildAt(0)" styleName="backgroundColor" value="0x000000" />
+                <AssertStyleValue target="canvas1.getChildAt(1)" styleName="backgroundColor" value="0x660066" />
+            </body>
+        </TestCase>
+
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,347 @@
+<?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="Managers/StyleManager/AdvancedCSS/pseudoSelectors/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="PseudoSelectors_spark_styleTag.mxml">
+       <mx:Script>
+		<![CDATA[
+
+		import comps.CustomPanel;
+
+		public static function init(o:DisplayObject):void
+		{
+        }
+
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_start" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_start" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxButton selector when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_SkinStateHeirarchy_stateChanged" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxToggleButton selector when a state has changed: FxToggleButton:upSelected. It should no longer match a FxButton:up selector">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstToggle" propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <AssertPropertyValue target="firstToggle" propertyName="selected" value="true" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x660099" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_stateChanged" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton when a state has changed: FxButton:down.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="firstButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseEvent target="firstButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_stateChanged" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxButton selector when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="firstToggle" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <DispatchMouseEvent target="firstToggle" type="mouseDown" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_disabled" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton in the disabled state: FxButton:disabled.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <SetProperty target="firstButton" propertyName="label" value="FxButton" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="enabled" value="false" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_disabled" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a subclassed component (FxToggleButton) pseudo selector matches an FxButton selector in the disabled state: FxButton:disabled.">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstToggle" propertyName="enabled" value="false" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_withDescendantSelector_start" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a descendant selector and pseudo selector work when combined when no state has changed. FxPanel FxNumericStepper:normal.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstNS" styleName="symbolColor" value="0x000000" />
+	            <AssertStyleValue target="secondNS" styleName="symbolColor" value="0xFF0000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_withDescendantSelector_stateChanged" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a descendant selector and pseudo selector work when combined when a state has changed. FxPanel FxNumericStepper:disabled.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstNS" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="firstNS" />
+	            <SetProperty target="secondNS" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="secondNS" />
+	            <AssertStyleValue target="firstNS" styleName="symbolColor" value="0x000000" />
+	            <AssertStyleValue target="secondNS" styleName="symbolColor" value="0xFF2266" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonsOnNS_start" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a pseudo selector for FxButton affects the buttons of an FxNumericStepper.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstNS.incrementButton" styleName="chromeColor" value="0xB00000" />
+	            <AssertStyleValue target="secondNS.incrementButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonInGroup_start" keywords="[CSS, pseudoSelector, FxButton, Group]"
+	        description="Test that a basic pseudo selector works on an FxButton when it is in a Group and no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="secondButton" className="spark.components.Button" waitTarget="secondButton" waitEvent="updateComplete" />
+	            <SetProperty target="secondButton" propertyName="label" value="Group FxButton" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="secondButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonInGroup_stateChanged" keywords="[CSS, pseudoSelector, FxButton, Group]"
+	        description="Test that a basic pseudo selector works on an FxButton when it is in a Group and a state has changed: FxButton:down.">
+	        <setup>
+	            <ResetComponent target="secondButton" className="spark.components.Button" waitTarget="secondButton" waitEvent="updateComplete" />
+	            <SetProperty target="secondButton" propertyName="label" value="Group FxButton" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="secondButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	            <DispatchMouseEvent target="secondButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="secondButton" />
+	            <AssertStyleValue target="secondButton" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxTextInputAsItemRenderer_start" keywords="[CSS, pseudoSelector, FxTextInput, ItemRenderer, FxList]"
+	        description="Test that a basic pseudo selector works on an FxTextInput when it is an itemRenderer and no state has changed: FxTextInput:normal.">
+	        <setup>
+	            <ResetComponent target="firstList" className="comps.FxListComp" waitTarget="firstList" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertMethodValue method="value=application.firstList.dataGroup.getElementAt(0).nameLabel.getStyle('contentBackgroundColor')" value="0x99CCFF" />
+	        </body>
+	    </TestCase>
+
+	    <TestCase testID="PseudoSelector_spark_HaloCompInFxApplication_start" keywords="[CSS, pseudoSelector, Text, FxApplication]"
+	        description="Test that a basic pseudo selector works on a TextInput when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="text1" className="comps.TextBasic" waitTarget="text1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="text1.getChildAt(0)" value="12" styleName="fontSize" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_HaloCompInFxApplication_stateChanged" keywords="[CSS, pseudoSelector, Text, FxApplication]"
+	        description="Test that a basic pseudo selector works on a TextInput when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="text1" className="comps.TextBasic" waitTarget="text1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="text1" propertyName="currentState" value="zoomed" waitEvent="updateComplete" waitTarget="text1" />
+	            <AssertStyleValue target="text1.getChildAt(0)" value="20" styleName="fontSize" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_Group_start" keywords="[CSS, pseudoSelector, Group, FxApplication]"
+	        description="Test that a basic pseudo selector works on a Group when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="group1" className="comps.GroupBasic" waitTarget="group1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="group1.getElementAt(0)" value="0xFF0000" styleName="symbolColor" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_Group_stateChanged" keywords="[CSS, pseudoSelector, Group, FxApplication]"
+	        description="Test that a basic pseudo selector works on a Group when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="group1" className="comps.GroupBasic" waitTarget="group1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="group1" propertyName="currentState" value="zoomed" waitEvent="updateComplete" waitTarget="group1" />
+	            <AssertStyleValue target="group1.getElementAt(0)" value="0x2299FF" styleName="symbolColor" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_classAndPseudo_start" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: .blueStyle:up when a state hasn't changed.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="styleName" value="blueStyle" waitEvent="updateComplete" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x0066CC" />
+	            <AssertStyleValue target="firstButton" styleName="focusColor" value="0x660066" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_classAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: .blueStyle:up when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle"  propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle.skin" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="styleName" value="blueStyle" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseClickEvent target="firstButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseEvent target="firstButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x33CC99" />
+	            <AssertStyleValue target="firstButton" styleName="focusColor" value="0x993366" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x660099" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_tyepclassAndPseudo_start" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput.blueStyle:up when a state hasn't changed.">
+	        <setup>
+	            <ResetComponent target="firstTextInput" className="spark.components.TextInput" waitTarget="firstTextInput" waitEvent="updateComplete" />
+	            <ResetComponent target="firstTextArea" className="spark.components.TextArea" waitTarget="firstTextArea" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstTextInput" propertyName="styleName" value="redStyle" waitEvent="updateComplete" waitTarget="firstTextInput.skin" />
+	            <SetProperty target="firstTextArea" propertyName="styleName" value="redStyle"  />
+	            <AssertStyleValue target="firstTextInput" styleName="contentBackgroundColor" value="0xFF0000" />
+	            <AssertStyleValue target="firstTextArea" styleName="contentBackgroundColor" value="0xFFFFFF" />
+	            <AssertStyleValue target="secondTextInput" styleName="contentBackgroundColor" value="0x99CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_tyepclassAndPseudo_stateChange" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput.blueStyle:up when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstTextInput" className="spark.components.TextInput" waitTarget="firstTextInput" waitEvent="updateComplete" />
+	            <ResetComponent target="firstTextArea" className="spark.components.TextArea" waitTarget="firstTextArea" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstTextInput" propertyName="styleName" value="redStyle" waitEvent="updateComplete" waitTarget="firstTextInput.skin" />
+	            <SetProperty target="firstTextArea" propertyName="styleName" value="redStyle"  />
+	            <SetProperty target="firstTextInput" propertyName="enabled" value="false" waitTarget="firstTextInput" waitEvent="updateComplete"  />
+	            <AssertStyleValue target="firstTextInput" styleName="contentBackgroundColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_idAndPseudo_start" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: #blueStyle:up when a state hasn't changed.">
+	        <body>
+	            <AssertStyleValue target="firstBar" styleName="chromeColor" value="0x339933" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_idAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: #blueStyle:disabled when a state has changed.">
+	        <body>
+	            <SetProperty target="firstBar" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="firstBar.skin" />
+	            <AssertStyleValue target="firstBar" styleName="chromeColor" value="0x993333" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_typeidAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput#blueStyle:up when a state has changed.">
+	        <body>
+	            <AssertStyleValue target="secondBar" styleName="symbolColor" value="0x00FF00" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_global_start" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a global pseudo selector work: global:normal when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstList" className="comps.FxListComp" waitTarget="firstList" waitEvent="updateComplete" />
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstList" styleName="rollOverColor" value="0x00FF00" />
+	  	        <AssertStyleValue target="firstList" styleName="selectionColor" value="0x006699" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_global_stateChange" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput.blueStyle:up when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstList" className="comps.FxListComp" waitTarget="firstList" waitEvent="updateComplete" />
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstList" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="firstList.skin" />
+	            <SetProperty target="firstButton" propertyName="enabled" value="false"  />
+	            <AssertStyleValue target="firstList" styleName="rollOverColor" value="0x0000FF" />
+	  	        <AssertStyleValue target="firstList" styleName="selectionColor" value="0x660099" />
+	  	        <!--AssertStyleValue target="firstButton" styleName="focusColor" value="0xDD3366" /-->
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_sparkAppStates_basic_start" keywords="[CSS, pseudo Selector, FxButton]"
+	        description="Test that a basic pseudo selector works on an Button when no state has changed: Button:SubmitState.">
+	        <setup>
+	            <ResetComponent target="button1" className="comps.FxButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+	            <SetProperty target="button1" propertyName="label" value="submit"  />
+	       </setup>
+	        <body>
+	            <AssertStyleValue target="button1" styleName="fontSize" value="20" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_sparkAppStates_basic_stateChanged" keywords="[CSS, pseudo Selector, FxButton]"
+	        description="Test that a basic pseudo selector works on an Button when a state has changed: Button:ClearState.">
+	        <setup>
+	            <ResetComponent target="button1" className="comps.FxButtonComp" waitTarget="button1" waitEvent="updateComplete" />
+	            <SetProperty target="button1" propertyName="label" value="submit"  />
+	        </setup>
+	        <body>
+	            <SetProperty target="button1" propertyName="currentState" value="ClearState" waitTarget="button1" waitEvent="updateComplete" />
+	            <AssertStyleValue target="button1" styleName="fontSize" value="12" />
+	  	    </body>
+	    </TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors_RuntimeCSS.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors_RuntimeCSS.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors_RuntimeCSS.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/AdvancedCSS_Spark_PseudoSelectors_RuntimeCSS.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,301 @@
+<?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="Managers/StyleManager/AdvancedCSS/pseudoSelectors/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="PseudoSelectors_spark_runtimeCSS.mxml">
+       <mx:Script>
+		<![CDATA[
+
+		import comps.CustomPanel;
+
+		public static function init(o:DisplayObject):void
+		{
+        }
+
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_start" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_start" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxButton selector when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_SkinStateHeirarchy_stateChanged" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxToggleButton selector when a state has changed: FxToggleButton:upSelected. It should no longer match a FxButton:up selector">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstToggle" propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <AssertPropertyValue target="firstToggle" propertyName="selected" value="true" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x660099" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_stateChanged" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton when a state has changed: FxButton:down.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="firstButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseEvent target="firstButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_stateChanged" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a component (FxToggleButton) pseudo selector matches an FxButton selector when no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="firstToggle" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <DispatchMouseEvent target="firstToggle" type="mouseDown" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstToggle" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_basicSkinState_disabled" keywords="[CSS, pseudoSelector, FxButton]"
+	        description="Test that a basic pseudo selector works on an FxButton in the disabled state: FxButton:disabled.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <SetProperty target="firstButton" propertyName="label" value="FxButton" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="enabled" value="false" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_subclassedSkinState_disabled" keywords="[CSS, pseudoSelector, FxToggleButton]"
+	        description="Test that a subclassed component (FxToggleButton) pseudo selector matches an FxButton selector in the disabled state: FxButton:disabled.">
+	        <setup>
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle" propertyName="label" value="FxToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstToggle" propertyName="enabled" value="false" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_withDescendantSelector_start" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a descendant selector and pseudo selector work when combined when no state has changed. FxPanel FxNumericStepper:normal.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstNS" styleName="symbolColor" value="0x000000" />
+	            <AssertStyleValue target="secondNS" styleName="symbolColor" value="0xFF0000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_withDescendantSelector_stateChanged" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a descendant selector and pseudo selector work when combined when a state has changed. FxPanel FxNumericStepper:disabled.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstNS" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="firstNS" />
+	            <SetProperty target="secondNS" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="secondNS" />
+	            <AssertStyleValue target="firstNS" styleName="symbolColor" value="0x000000" />
+	            <AssertStyleValue target="secondNS" styleName="symbolColor" value="0xFF2266" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonsOnNS_start" keywords="[CSS, pseudoSelector, FxNumericStepper]"
+	        description="Test that a pseudo selector for FxButton affects the buttons of an FxNumericStepper.">
+	        <setup>
+	            <ResetComponent target="firstNS" className="spark.components.NumericStepper" waitTarget="firstNS" waitEvent="updateComplete" />
+	            <ResetComponent target="secondNS" className="spark.components.NumericStepper" waitTarget="secondNS" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="firstNS.incrementButton" styleName="chromeColor" value="0xB00000" />
+	            <AssertStyleValue target="secondNS.incrementButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonInGroup_start" keywords="[CSS, pseudoSelector, FxButton, Group]"
+	        description="Test that a basic pseudo selector works on an FxButton when it is in a Group and no state has changed: FxButton:up.">
+	        <setup>
+	            <ResetComponent target="secondButton" className="spark.components.Button" waitTarget="secondButton" waitEvent="updateComplete" />
+	            <SetProperty target="secondButton" propertyName="label" value="Group FxButton" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="secondButton" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxButtonInGroup_stateChanged" keywords="[CSS, pseudoSelector, FxButton, Group]"
+	        description="Test that a basic pseudo selector works on an FxButton when it is in a Group and a state has changed: FxButton:down.">
+	        <setup>
+	            <ResetComponent target="secondButton" className="spark.components.Button" waitTarget="secondButton" waitEvent="updateComplete" />
+	            <SetProperty target="secondButton" propertyName="label" value="Group FxButton" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	        </setup>
+	        <body>
+	            <DispatchMouseClickEvent target="secondButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="secondButton.skin" />
+	            <DispatchMouseEvent target="secondButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="secondButton" />
+	            <AssertStyleValue target="secondButton" styleName="chromeColor" value="0x66CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_FxTextInputAsItemRenderer_start" keywords="[CSS, pseudoSelector, FxTextInput, ItemRenderer, FxList]"
+	        description="Test that a basic pseudo selector works on an FxTextInput when it is an itemRenderer and no state has changed: FxTextInput:normal.">
+	        <setup>
+	            <ResetComponent target="firstList" className="comps.FxListComp" waitTarget="firstList" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertMethodValue method="value=application.firstList.dataGroup.getElementAt(0).nameLabel.getStyle('contentBackgroundColor')" value="0x99CCFF" />
+	        </body>
+	    </TestCase>
+
+	    <TestCase testID="PseudoSelector_spark_HaloCompInFxApplication_start" keywords="[CSS, pseudoSelector, Text, FxApplication]"
+	        description="Test that a basic pseudo selector works on a TextInput when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="text1" className="comps.TextBasic" waitTarget="text1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="text1.getChildAt(0)" value="12" styleName="fontSize" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_HaloCompInFxApplication_stateChanged" keywords="[CSS, pseudoSelector, Text, FxApplication]"
+	        description="Test that a basic pseudo selector works on a TextInput when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="text1" className="comps.TextBasic" waitTarget="text1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="text1" propertyName="currentState" value="zoomed" waitEvent="updateComplete" waitTarget="text1" />
+	            <AssertStyleValue target="text1.getChildAt(0)" value="20" styleName="fontSize" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_Group_start" keywords="[CSS, pseudoSelector, Group, FxApplication]"
+	        description="Test that a basic pseudo selector works on a Group when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="group1" className="comps.GroupBasic" waitTarget="group1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <AssertStyleValue target="group1.getElementAt(0)" value="0xFF0000" styleName="symbolColor" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_Group_stateChanged" keywords="[CSS, pseudoSelector, Group, FxApplication]"
+	        description="Test that a basic pseudo selector works on a Group when it is in a custom component in FxApplication.">
+	        <setup>
+	            <ResetComponent target="group1" className="comps.GroupBasic" waitTarget="group1" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="group1" propertyName="currentState" value="zoomed" waitEvent="updateComplete" waitTarget="group1" />
+	            <AssertStyleValue target="group1.getElementAt(0)" value="0x2299FF" styleName="symbolColor" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_classAndPseudo_start" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: .blueStyle:up when a state hasn't changed.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="styleName" value="blueStyle" waitEvent="updateComplete" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x0066CC" />
+	            <AssertStyleValue target="firstButton" styleName="focusColor" value="0x660066" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0xB00000" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_classAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: .blueStyle:up when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstButton" className="spark.components.Button" waitTarget="firstButton" waitEvent="updateComplete" />
+	            <ResetComponent target="firstToggle" className="spark.components.ToggleButton" waitTarget="firstToggle" waitEvent="updateComplete" />
+	            <SetProperty target="firstToggle"  propertyName="selected" value="true" waitEvent="updateComplete" waitTarget="firstToggle.skin" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstButton" propertyName="styleName" value="blueStyle" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseClickEvent target="firstButton" localX="10" localY="8" waitEvent="updateComplete" waitTarget="firstButton.skin" />
+	            <DispatchMouseEvent target="firstButton" type="mouseDown" localX="15" localY="8" waitEvent="mouseDown" waitTarget="firstButton" />
+	            <AssertStyleValue target="firstButton" styleName="chromeColor" value="0x33CC99" />
+	            <AssertStyleValue target="firstButton" styleName="focusColor" value="0x70B2EE" />
+	            <AssertStyleValue target="firstToggle" styleName="chromeColor" value="0x660099" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_tyepclassAndPseudo_start" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput.blueStyle:up when a state hasn't changed.">
+	        <setup>
+	            <ResetComponent target="firstTextInput" className="spark.components.TextInput" waitTarget="firstTextInput" waitEvent="updateComplete" />
+	            <ResetComponent target="firstTextArea" className="spark.components.TextArea" waitTarget="firstTextArea" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstTextInput" propertyName="styleName" value="redStyle" waitEvent="updateComplete" waitTarget="firstTextInput.skin" />
+	            <SetProperty target="firstTextArea" propertyName="styleName" value="redStyle"  />
+	            <AssertStyleValue target="firstTextInput" styleName="contentBackgroundColor" value="0xFF0000" />
+	            <AssertStyleValue target="firstTextArea" styleName="contentBackgroundColor" value="0xFFFFFF" />
+	            <AssertStyleValue target="secondTextInput" styleName="contentBackgroundColor" value="0x99CCFF" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_tyepclassAndPseudo_stateChange" keywords="[CSS, pseudoSelector, type selector,  class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput.blueStyle:up when a state has changed.">
+	        <setup>
+	            <ResetComponent target="firstTextInput" className="spark.components.TextInput" waitTarget="firstTextInput" waitEvent="updateComplete" />
+	            <ResetComponent target="firstTextArea" className="spark.components.TextArea" waitTarget="firstTextArea" waitEvent="updateComplete" />
+	        </setup>
+	        <body>
+	            <SetProperty target="firstTextInput" propertyName="styleName" value="redStyle" waitEvent="updateComplete" waitTarget="firstTextInput.skin" />
+	            <SetProperty target="firstTextArea" propertyName="styleName" value="redStyle"  />
+	            <SetProperty target="firstTextInput" propertyName="enabled" value="false" waitTarget="firstTextInput" waitEvent="updateComplete"  />
+	            <AssertStyleValue target="firstTextInput" styleName="contentBackgroundColor" value="0xFFCC66" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_idAndPseudo_start" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: #blueStyle:up when a state hasn't changed.">
+	        <body>
+	            <AssertStyleValue target="firstBar" styleName="chromeColor" value="0x339933" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_idAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class and pseudo selector work: #blueStyle:disabled when a state has changed.">
+	        <body>
+	            <SetProperty target="firstBar" propertyName="enabled" value="false" waitEvent="updateComplete" waitTarget="firstBar.skin" />
+	            <AssertStyleValue target="firstBar" styleName="chromeColor" value="0x993333" />
+	  	    </body>
+	    </TestCase>
+	    <TestCase testID="PseudoSelector_spark_typeidAndPseudo_stateChanged" keywords="[CSS, pseudoSelector, class selector, FxButton]"
+	        description="Test that a class, type and pseudo selector work: FxTextInput#blueStyle:up when a state has changed.">
+	        <body>
+	            <AssertStyleValue target="secondBar" styleName="symbolColor" value="0x00FF00" />
+	  	    </body>
+	    </TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/baselines/PseudoSelector_mxButton_skinStates.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/baselines/PseudoSelector_mxButton_skinStates.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/pseudoSelectors/baselines/PseudoSelector_mxButton_skinStates.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,60 @@
+<?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="Managers/StyleManager/Bugs/"  xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:mx="http://ns.adobe.com/mxml/2009" xmlns:m="http://ns.adobe.com/mxml/2009"
+    xmlns="*" testSWF="StyleManager_Bugs_Main.mxml">
+    <!-- this set of lines form a template that must be in each unit test -->
+    <m:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void
+        {
+        }
+        ]]>
+    </m:Script>
+
+    <m:Metadata>
+        <![CDATA[
+            [Mixin]
+        ]]>
+    </m:Metadata>
+
+    <!-- end of set of lines that must be in each unit test -->
+
+    <m:Script>
+        <![CDATA[
+
+        ]]>
+    </m:Script>
+
+    <testCases>
+        <TestCase testID="SparkSkinClass_inherited_inModule" keywords="[Module, StyleManager, DataGrid]" description="Ensure that skinClass is inherited by a module from
+           its parent application.">
+           <setup>
+               <SetProperty target="moduleLoader1" propertyName="url" value="assets/MyModule.swf" waitEvent="ready" waitTarget="moduleLoader1" />
+           </setup>
+            <body>
+                <Pause timeout="800" />
+                <CompareBitmap url="../Bugs/baselines/$testID.png" target="moduleLoader1.getChildAt(0)"/>
+            </body>
+        </TestCase>
+  
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.sh?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.sh (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.sh Mon Aug  6 20:17:09 2012
@@ -0,0 +1,20 @@
+#!/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.
+##
+################################################################################
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/assets/MyModule.mxml

Propchange: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/StyleManager_Bugs.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/baselines/SparkSkinClass_inherited_inModule.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/baselines/SparkSkinClass_inherited_inModule.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Bugs/baselines/SparkSkinClass_inherited_inModule.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/SWFs/MP_SimpleLoader.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/SWFs/MP_SimpleLoader.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/SWFs/MP_SimpleLoader.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/SWFs/MP_SimpleLoader.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1,2 @@
+ -theme=${flexlib}/themes/Halo/halo.swc
+-includes=mx.managers.systemClasses.MarshallingSupport
\ No newline at end of file



Mime
View raw message