flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369998 [3/9] - in /incubator/flex/trunk/mustella/tests/States: ./ CurrentSyntax/ CurrentSyntax/Clear/ CurrentSyntax/Dot/ CurrentSyntax/Events/ CurrentSyntax/ExcludeFrom/ CurrentSyntax/IncludeIn/ CurrentSyntax/IncludeIn/baselines/ CurrentS...
Date Mon, 06 Aug 2012 20:42:49 GMT
Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Events/states_events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Events/states_events.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Events/states_events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Events/states_events.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,89 @@
+<?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="States/CurrentSyntax/Events/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="statesApp_multiEvent.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+        import mx.core.Application;
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+        <TestCase testID="States_MultiEventBinding_Spark" keywords="[States,SetProperty]" description="Test two events bound to the same state">
+            <setup>                
+                <AssertPropertyValue target="{Application.application}" propertyName="currentState" value="One"/>
+            </setup>
+            <body>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="ns"/>				
+				<DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchMouseClickEvent target="btn" localX="5" localY="5" waitEvent="click"/>
+                <AssertPropertyValue target="ns1count" propertyName="text" value="2"/>
+                <AssertPropertyValue target="ns2count" propertyName="text" value="0"/>
+				<AssertPropertyValue target="btn1count" propertyName="text" value="1"/>
+                <AssertPropertyValue target="btn2count" propertyName="text" value="0"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="ns"/>				
+				<DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchMouseClickEvent target="btn" localX="5" localY="5" waitEvent="click"/>
+                <AssertPropertyValue target="ns1count" propertyName="text" value="4"/>
+                <AssertPropertyValue target="ns2count" propertyName="text" value="0"/>
+				<AssertPropertyValue target="btn1count" propertyName="text" value="2"/>
+                <AssertPropertyValue target="btn2count" propertyName="text" value="0"/>                
+                <SetProperty target="{Application.application}" propertyName="currentState" value="Two" waitEvent="currentStateChange"/>
+                <AssertPropertyValue target="{Application.application}" propertyName="currentState" value="Two"/>
+				<DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="ns"/>				
+				<DispatchKeyEvent keys="[UP, UP, UP]" />
+                <DispatchMouseClickEvent target="btn" localX="5" localY="5" waitEvent="click"/>
+                <AssertPropertyValue target="ns1count" propertyName="text" value="4"/>
+                <AssertPropertyValue target="ns2count" propertyName="text" value="3"/>
+				<AssertPropertyValue target="btn1count" propertyName="text" value="2"/>
+                <AssertPropertyValue target="btn2count" propertyName="text" value="1"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="ns"/>				
+				<DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchMouseClickEvent target="btn" localX="5" localY="5" waitEvent="click"/>
+                <AssertPropertyValue target="ns1count" propertyName="text" value="4"/>
+                <AssertPropertyValue target="ns2count" propertyName="text" value="5"/>
+				<AssertPropertyValue target="btn1count" propertyName="text" value="2"/>
+                <AssertPropertyValue target="btn2count" propertyName="text" value="2"/>                                                 
+            </body>
+        </TestCase>
+
+
+
+	</testCases>                	     
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/ExcludeFrom/states_excludeStates.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/ExcludeFrom/states_excludeStates.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/ExcludeFrom/states_excludeStates.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/ExcludeFrom/states_excludeStates.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,366 @@
+<?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="States/CurrentSyntax/ExcludeFrom/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="statesApp_excludeStates.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+        import mx.core.Application;
+	]]>
+	</mx:Script>
+
+<testCases>
+
+<!--
+================================================================================
+Basic tests with a basic control (Button)
+================================================================================
+-->
+<TestCase testID="default_1" keywords="[States,excludeFrom]" description="excludeFrom includes the default state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <AssertMethodValue method="value=application.childPresent(application, 'btn044', true)" value="false" />
+    </body>
+</TestCase>
+
+<TestCase testID="default_2" keywords="[States,excludeFrom]" description="excludeFrom includes the default state, change to state not in excludeFrom.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state143" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn045')" value="true" />
+    </body>
+</TestCase>
+
+<TestCase testID="default_3" keywords="[States,excludeFrom]" description="excludeFrom includes the default state, change to state not in excludeFrom, change back to default state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state144" waitEvent="currentStateChange" />
+        <SetProperty propertyName="currentState" value="defaultState" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn046')" value="false" />
+    </body>
+</TestCase>
+
+<TestCase testID="all" keywords="[States,excludeFrom]" description="excludeFrom includes many states.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state145" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn047')" value="true" />
+        <SetProperty propertyName="currentState" value="defaultState" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn047', true)" value="false" />
+        <SetProperty propertyName="currentState" value="state146" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn047', true)" value="false" />
+        <SetProperty propertyName="currentState" value="state147" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn047', true)" value="false" />
+        <SetProperty propertyName="currentState" value="state148" waitEvent="currentStateChange" />
+        <AssertMethodValue method="value=application.childPresent(application, 'btn047', true)" value="false" />
+    </body>
+</TestCase>
+
+<!--
+================================================================================
+Array
+================================================================================
+-->
+<TestCase testID="props_array_child_1" keywords="[States,excludeFrom]" description="Array property, child node syntax, the first element in the array has one excludeFrom state.  Go to a different state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state150" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="g" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_2" keywords="[States,excludeFrom]" description="Array property, child node syntax, the first element in the array has one excludeFrom state.  Go to the excludeFrom state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state151" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="g" />
+        <AssertPropertyValue target="dc24.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_3" keywords="[States,excludeFrom]" description="Array property, child node syntax, the last element in the array has two excludeFrom states.  Go to a different state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state152" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="g" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_4" keywords="[States,excludeFrom]" description="Array property, child node syntax, the last element in the array has two excludeFrom states.  Go to the first excludeFrom state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state153" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_5" keywords="[States,excludeFrom]" description="Array property, child node syntax, the last element in the array has two excludeFrom states.  Go to the second excludeFrom state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state154" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc25.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_6" keywords="[States,excludeFrom]" description="Array property, child node syntax, the first two elements in the array each have an excludeFrom state.  Go to a different state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state155" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="g" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_7" keywords="[States,excludeFrom]" description="Array property, child node syntax, the first two elements in the array each have an excludeFrom state.  Go to the first excludeFrom state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state156" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="b" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="g" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_8" keywords="[States,excludeFrom]" description="Array property, child node syntax, the first two elements in the array each have an excludeFrom state.  Go to the seconde excludeFrom state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state157" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="c" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="d" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="e" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="f" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="g" />
+        <AssertPropertyValue target="dc26.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_9" keywords="[States,excludeFrom]" description="Array property, child node syntax, only one node, it has an excludeState.  Go to another state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state158" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="a" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<TestCase testID="props_array_child_10" keywords="[States,excludeFrom]" description="Array property, child node syntax, only one node, it has an excludeState.  Go to that excludeState.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state159" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.1.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.2.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.3.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.4.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.5.0" propertyName="text" value="" />
+        <AssertPropertyValue target="dc27.mx_internal:dateGrid.mx_internal:dayBlocksArray.6.0" propertyName="text" value="" />
+    </body>
+</TestCase>
+
+<!--
+================================================================================
+White Space
+================================================================================
+-->
+<TestCase testID="excludeFrom_whitespace_combinations_1" keywords="[States,excludeFrom]" description="Test commas, no white space, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state132" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state131" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_2" keywords="[States,excludeFrom]" description="Test commas, no white space, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state133" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state131" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_3" keywords="[States,excludeFrom]" description="Test commas and space, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state135" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state134" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_4" keywords="[States,excludeFrom]" description="Test commas and space, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state136" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state134" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_5" keywords="[States,excludeFrom]" description="Test commas and tab, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state138" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state137" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_6" keywords="[States,excludeFrom]" description="Test commas and tab, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state139" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state137" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_7" keywords="[States,excludeFrom]" description="Test array brackets, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state141" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state140" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="excludeFrom_whitespace_combinations_8" keywords="[States,excludeFrom]" description="Test array brackets, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state142" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="statesApp_excludeStates0" />
+        <SetProperty propertyName="currentState" value="state140" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+
+</testCases> 
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/baselines/statesApp_pngCalibration.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/baselines/statesApp_pngCalibration.png?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/baselines/statesApp_pngCalibration.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ArrayIncludeIn.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ArrayIncludeIn.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ArrayIncludeIn.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ArrayIncludeIn.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,54 @@
+<?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="States/CurrentSyntax/IncludeIn/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="statesApp_array.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+
+		<TestCase testID="statesApp_array" keywords="[States]" description="Verify that Arrays work in states" >
+			<setup>
+				<ResetComponent target="customGrp" className="CustomAsGroup" waitEvent="updateComplete"/>
+			</setup>
+			<body>
+				<SetProperty propertyName="currentState" value="stateB" waitEvent="currentStateChange" />				
+				<AssertPropertyValue target="" propertyName="currentState" value="stateB" />
+				<AssertPropertyValue target="lbl" propertyName="text" value="stateB" />						
+			</body>
+		</TestCase>
+
+	</testCases>                	     
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ObjIncludeIn.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ObjIncludeIn.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ObjIncludeIn.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_ObjIncludeIn.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,71 @@
+<?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="States/CurrentSyntax/IncludeIn/"  
+	xmlns:fx="http://ns.adobe.com/mxml/2009" 
+    xmlns:mx="library://ns.adobe.com/flex/mx" 
+    xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns="*" 
+	testSWF="statesApp_statefulObj.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</fx:Script>
+	<fx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+	
+    <fx:Script>
+        <![CDATA[
+            {
+                import mx.core.FlexGlobals;
+            }
+        ]]>
+    </fx:Script> 	
+
+	
+	<testCases>
+  
+		<TestCase testID="States_Properties_statefulObject" keywords="[States]" description="Ensure that using a stateful object in a Spark Application works as expected" >
+			<setup>
+				<ResetComponent target="myLst" className="spark.components.List" waitEvent="updateComplete"/>
+				<AssertMethodValue method="value=FlexGlobals.topLevelApplication.setDP()" value="true"/>
+				<AssertMethodValue method="value=FlexGlobals.topLevelApplication.setLabelField()" value="true"/>
+				<SetProperty target="myLst" propertyName="selectedIndex" value="0" waitEvent="updateComplete"/>
+			</setup>
+			<body>				
+				<AssertPropertyValue target="myLst" propertyName="selectedIndex" value="0"/>
+				<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myLst.selectedItem.name" value="Object from State 1"/>
+				<SetProperty target="" propertyName="currentState" value="state2" waitEvent="currentStateChange"/>
+				<SetProperty target="myLst" propertyName="selectedIndex" value="0" waitEvent="updateComplete"/>
+				<AssertPropertyValue target="myLst" propertyName="selectedIndex" value="0"/>
+				<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myLst.selectedItem.name" value="Object in State 2"/>				
+			</body>
+		</TestCase>
+
+	</testCases>                	     
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_includeIn.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_includeIn.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_includeIn.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/IncludeIn/states_includeIn.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,236 @@
+<?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="States/CurrentSyntax/IncludeIn/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="statesApp_includeIn.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+        import mx.core.Application;
+       	import mx.controls.sliderClasses.SliderThumb;
+
+        use namespace mx_internal;
+        
+        public var theThumb:SliderThumb;
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+    <!-- 
+        See comments in statesApp.mxml regarding the reason for doManualReset(). 
+
+        To get to the values in a DateChooser:
+            <AssertPropertyValue target="dc01.mx_internal:dateGrid.mx_internal:dayBlocksArray.0.0" propertyName="text" value="S" />
+            0.0 = Sunday
+            1.0 = Monday
+            2.0 = Tuesday
+            etc...
+    -->
+
+<!--
+================================================================================
+Calibration...make sure that something with a parent really is there, and
+something wihout a parent really isn't there.  Then we can use the presence/
+absence of a parent for the asserts.
+================================================================================
+-->
+<TestCase testID="statesApp_pngCalibration" keywords="[States]" description="Ensure that if a control has a parent, you can see it.  If it doesn't, you can't." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state001" waitEvent="currentStateChange" />
+        <SetProperty propertyName="currentState" value="defaultState" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btnCalibrate1" propertyName="parent" value="statesApp_includeIn0.bxCalibrate" />
+        <AssertPropertyValue target="btnCalibrate2" propertyName="parent" value="null" />
+        <AssertPropertyValue target="bxCalibrate" propertyName="parent" value="statesApp_includeIn0" />
+        <CompareBitmap target="bxCalibrate" url="../includeIn/baselines/statesApp_pngCalibration.png" />
+    </body>
+</TestCase>
+
+
+<!--
+================================================================================
+Basic tests with a basic control (Button)
+================================================================================
+-->
+
+<TestCase testID="default_1" keywords="[States,includeIn]" description="includeStates includes the default state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue target="btn003" propertyName="parent" value="statesApp_includeIn0" />
+    </body>
+</TestCase>
+
+<TestCase testID="default_2" keywords="[States,includeIn]" description="includeStates includes the default state, change to state not in includeStates.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state004" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn004" propertyName="parent" valueExpression="value=null" />
+    </body>
+</TestCase>
+
+<TestCase testID="default_3" keywords="[States,includeIn]" description="includeStates includes the default state, change to state not in includeStates, change back to default state.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state005" waitEvent="currentStateChange" />
+        <SetProperty propertyName="currentState" value="" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn005" propertyName="parent" value="statesApp_includeIn0" />
+    </body>
+</TestCase>
+
+<TestCase testID="many" keywords="[States,includeIn]" description="includeStates includes many states.">
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue target="btn006" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state006" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn006" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state007" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn006" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state008" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn006" propertyName="parent" value="statesApp_includeIn0" />
+    </body>
+</TestCase>
+
+<!--
+================================================================================
+White Space
+================================================================================
+-->
+<TestCase testID="includeIn_whitespace_combinations_1" keywords="[States,includeIn]" description="Test commas, no white space, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state132" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state131" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_2" keywords="[States,includeIn]" description="Test commas, no white space, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state133" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state131" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn040" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_3" keywords="[States,includeIn]" description="Test commas and space, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state135" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state134" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_4" keywords="[States,includeIn]" description="Test commas and space, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state136" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state134" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn041" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_5" keywords="[States,includeIn]" description="Test commas and tab, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state138" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state137" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_6" keywords="[States,includeIn]" description="Test commas and tab, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state139" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state137" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn042" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_7" keywords="[States,includeIn]" description="Test array brackets, first state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state141" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state140" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="includeIn_whitespace_combinations_8" keywords="[States,includeIn]" description="Test array brackets, second state." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+    </setup>
+    <body>
+        <SetProperty propertyName="currentState" value="state142" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="statesApp_includeIn0" />
+        <SetProperty propertyName="currentState" value="state140" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="btn043" propertyName="parent" value="null" />
+    </body>
+</TestCase>
+
+	</testCases>                	     
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_1.png?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_2.png?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_3.png?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_4.png?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/Baselines/graphics_4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/StatesCrossVersionParentApp1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/StatesCrossVersionParentApp1.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/StatesCrossVersionParentApp1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/StatesCrossVersionParentApp1.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,51 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"    >
+<fx:Script>
+<![CDATA[
+    import mx.events.StateChangeEvent;
+
+    public function doManualReset():void{
+        if(currentState == "defaultState"){
+            dispatchEvent(new Event("manualResetComplete"));
+        }else{
+            addEventListener("currentStateChange", handleCurrentStateChange);
+            currentState = "defaultState";   
+        }
+    }
+
+    private function handleCurrentStateChange(e:StateChangeEvent):void{
+        dispatchEvent(new Event("manualResetComplete"));
+    }
+
+]]>
+</fx:Script>
+
+<s:states>
+    <mx:State name="defaultState" />
+    <mx:State name="state1" />
+    <mx:State name="state2" />
+    <mx:State name="state3" />
+    <mx:State name="state4" />
+</s:states>
+
+<mx:SWFLoader id="sl1" />
+
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,54 @@
+<?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.
+
+-->
+
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
+
+
+<fx:Script>
+<![CDATA[
+    public function changeParentState(newState:String):void{
+        // This has got to be the wrong way to do this, but it works.
+        Object(application.parent.parent.parent.parent.parent.parent).currentState = newState;
+    }
+    
+    public function changeState(newState:String):void{
+        currentState = newState;
+    }
+]]>
+</fx:Script>
+
+<mx:states>
+    <mx:State name="state1" >
+        <mx:SetProperty target="{ti1}" name="text" value="state1" />
+    </mx:State>
+    <mx:State name="state2" >
+        <mx:SetProperty target="{ti1}" name="text" value="state2" />
+    </mx:State>
+    <mx:State name="state3" >
+        <mx:SetProperty target="{ti1}" name="text" value="state3" />
+    </mx:State>
+    <mx:State name="state4" >
+        <mx:SetProperty target="{ti1}" name="text" value="state4" />
+    </mx:State>
+</mx:states>
+
+<mx:TextInput id="ti1" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.swf
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.swf?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex320App1.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,53 @@
+<?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.
+
+-->
+
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
+
+<mx:Script>
+<![CDATA[
+    public function changeParentState(newState:String):void{
+        // This has got to be the wrong way to do this, but it works.
+        Object(application.parent.parent.parent.parent.parent.parent.parent).currentState = newState;
+    }
+    
+    public function changeState(newState:String):void{
+        currentState = newState;
+    }
+]]>
+</mx:Script>
+
+<mx:states>
+    <mx:State name="state1" >
+        <mx:SetProperty target="{ti1}" name="text" value="state1" />
+    </mx:State>
+    <mx:State name="state2" >
+        <mx:SetProperty target="{ti1}" name="text" value="state2" />
+    </mx:State>
+    <mx:State name="state3" >
+        <mx:SetProperty target="{ti1}" name="text" value="state3" />
+    </mx:State>
+    <mx:State name="state4" >
+        <mx:SetProperty target="{ti1}" name="text" value="state4" />
+    </mx:State>
+</mx:states>
+
+<mx:TextInput id="ti1" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.swf
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.swf?rev=1369998&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/SWFs/assets/Flex330App1.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/tests/StatesCrossVersion.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/tests/StatesCrossVersion.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/tests/StatesCrossVersion.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/CrossVersion/tests/StatesCrossVersion.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,122 @@
+<?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="States/CurrentSyntax/Integration/CrossVersion/tests/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="StatesCrossVersionParentApp1.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+================================================================================
+YES, we do need the pauses.
+================================================================================
+-->
+
+<TestCase testID="test1" keywords="[States,Integration,Marshall]" description="Parent changes child's state, loadForCompatibility=true." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+        <ResetComponent target="sl1" className="mx.controls::SWFLoader" waitEvent="updateComplete" />
+        <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+        <SetProperty target="sl1" propertyName="loadForCompatibility" value="true" />
+        <SetProperty target="sl1" propertyName="source" value="assets/Flex330App1.swf" />
+        <RunCode code="application.sl1.load()" waitEvent="complete" waitTarget="sl1" />
+        <Pause timeout="200" />
+    </setup>
+    <body>
+        <RunCode code="Object(application.sl1.content).document.currentState = 'state2'" />
+        <Pause timeout="1" />
+        <AssertPropertyValue target="{application}" propertyName="currentState" value="defaultState" />
+        <AssertMethodValue method="value=Object(application.sl1.content).document.currentState" value="state2" />
+    </body>
+</TestCase>
+
+<TestCase testID="test2" keywords="[States,Integration,Marshall]" description="Child changes parent's state, loadForCompatibility=true." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+        <ResetComponent target="sl1" className="mx.controls::SWFLoader" waitEvent="updateComplete" />
+        <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+        <SetProperty target="sl1" propertyName="loadForCompatibility" value="true" />
+        <SetProperty target="sl1" propertyName="source" value="assets/Flex330App1.swf" />
+        <RunCode code="application.sl1.load()" waitEvent="complete" waitTarget="sl1" />
+        <Pause timeout="200" />
+    </setup>
+    <body>
+        <RunCode code="Object(application.sl1.content).document.changeParentState('state1')" waitTarget="{application}" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="{application}" propertyName="currentState" value="state1" />
+        <AssertMethodValue method="value=Object(application.sl1.content).document.currentState" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="test3" keywords="[States,Integration,Marshall]" description="Parent changes own state, loadForCompatibility=true." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+        <ResetComponent target="sl1" className="mx.controls::SWFLoader" waitEvent="updateComplete" />
+        <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+        <SetProperty target="sl1" propertyName="loadForCompatibility" value="true" />
+        <SetProperty target="sl1" propertyName="source" value="assets/Flex330App1.swf" />
+        <RunCode code="application.sl1.load()" waitEvent="complete" waitTarget="sl1" />
+        <Pause timeout="200" />
+    </setup>
+    <body>
+        <SetProperty target="{application}" propertyName="currentState" value="state1" waitTarget="{application}" waitEvent="currentStateChange" />
+        <AssertPropertyValue target="{application}" propertyName="currentState" value="state1" />
+        <AssertMethodValue method="value=Object(application.sl1.content).document.currentState" value="null" />
+    </body>
+</TestCase>
+
+<TestCase testID="test4" keywords="[States,Integration,Marshall]" description="Child changes own state, loadForCompatibility=true." >
+    <setup>
+        <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+        <ResetComponent target="sl1" className="mx.controls::SWFLoader" waitEvent="updateComplete" />
+        <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+        <SetProperty target="sl1" propertyName="loadForCompatibility" value="true" />
+        <SetProperty target="sl1" propertyName="source" value="assets/Flex330App1.swf" />
+        <RunCode code="application.sl1.load()" waitEvent="complete" waitTarget="sl1" />
+        <Pause timeout="200" />
+    </setup>
+    <body>
+        <RunCode code="Object(application.sl1.content).document.changeState('state2')" />
+        <Pause timeout="1" />        
+        <AssertPropertyValue target="{application}" propertyName="currentState" value="defaultState" />
+        <AssertMethodValue method="value=Object(application.sl1.content).document.currentState" value="state2" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CalfCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CalfCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CalfCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CalfCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Calf Care" width="100%" height="100%">
+
+<mx:Text text="Calf Care" />
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatBreedBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatBreedBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatBreedBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatBreedBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,63 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Cat Breeds" width="100%" height="100%">
+
+<fx:Script>
+<![CDATA[
+        import mx.events.ItemClickEvent;
+
+        private function changeState(event:ItemClickEvent):void{
+            currentState = event.currentTarget.selectedValue;
+        }
+]]>
+</fx:Script>
+
+<mx:states>
+    <mx:State name="All" />
+    <mx:State name="ShortHair" />
+    <mx:State name="LongHair" />
+</mx:states>
+
+<fx:Declarations>
+    <mx:RadioButtonGroup id="rbgHairLengths" itemClick="changeState(event)" />
+</fx:Declarations>    
+
+<mx:Text text="Select a hair length:" />
+
+<mx:RadioButton groupName="rbgHairLengths" label="All" value="All" selected="true" />
+<mx:RadioButton groupName="rbgHairLengths" label="Short" value="ShortHair" />
+<mx:RadioButton groupName="rbgHairLengths" label="Long" value="LongHair" />
+
+<mx:List labelField="breed">
+    <mx:dataProvider>
+        <fx:Object includeIn="All,ShortHair" breed="Abyssinian" />
+        <fx:Object includeIn="All,ShortHair" breed="Bombay" />
+        <fx:Object includeIn="All,ShortHair" breed="Japanese Bobtail" />
+        
+        <fx:Object includeIn="All,LongHair" breed="Balinese" />
+        <fx:Object includeIn="All,LongHair" breed="Maine Coon" />
+        <fx:Object includeIn="All,LongHair" breed="Persian" />
+        <fx:Object includeIn="All,LongHair" breed="Turkish Angora" />
+    </mx:dataProvider>
+</mx:List>
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CatCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Cat Care" width="100%" height="100%">
+
+<mx:Text text="Cat Care: Feed and water them daily.  Don't forget to clean out the litter box!" />
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleBreedBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleBreedBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleBreedBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleBreedBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,62 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Cattle Breeds" width="100%" height="100%">
+
+<fx:Script>
+<![CDATA[
+        import mx.events.ItemClickEvent;
+
+        private function changeState(event:ItemClickEvent):void{
+            currentState = event.currentTarget.selectedValue;
+        }
+]]>
+</fx:Script>
+
+<mx:states>
+    <mx:State name="All" />
+    <mx:State name="Beef" />
+    <mx:State name="Milk" />
+</mx:states>
+
+<fx:Declarations>
+    <mx:RadioButtonGroup id="rbgProduct" itemClick="changeState(event)" />
+</fx:Declarations>    
+
+<mx:Text text="Select a product:" />
+
+<mx:RadioButton groupName="rbgProduct" label="All" value="All" selected="true" />
+<mx:RadioButton groupName="rbgProduct" label="Beef" value="Beef" />
+<mx:RadioButton groupName="rbgProduct" label="Milk" value="Milk" />
+
+<mx:List labelField="breed">
+    <mx:dataProvider>
+        <fx:Object includeIn="All,Beef" breed="Angus" />
+        <fx:Object includeIn="All,Beef" breed="Limousin" />
+        <fx:Object includeIn="All,Beef" breed="Shorthorn" />
+        
+        <fx:Object includeIn="All,Milk" breed="Brown Swiss" />
+        <fx:Object includeIn="All,Milk" breed="Dutch Belted" />
+        <fx:Object includeIn="All,Milk" breed="Holstein" />
+    </mx:dataProvider>
+</mx:List>
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/CattleCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Cattle Care" width="100%" height="100%">
+
+<mx:Text text="Cattle Care" />
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogBreedBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogBreedBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogBreedBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogBreedBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,63 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Dog Breeds" width="100%" height="100%">
+
+<fx:Script>
+<![CDATA[
+        import mx.events.ItemClickEvent;
+
+        private function changeState(event:ItemClickEvent):void{
+            currentState = event.currentTarget.selectedValue;
+        }
+]]>
+</fx:Script>
+
+<mx:states>
+    <mx:State name="All" />
+    <mx:State name="Small" />
+    <mx:State name="Large" />
+</mx:states>
+
+<fx:Declarations>
+    <mx:RadioButtonGroup id="rbgSizes" itemClick="changeState(event)" />
+</fx:Declarations>    
+
+<mx:Text text="Select a size:" />
+
+<mx:RadioButton groupName="rbgSizes" label="All" value="All" selected="true" />
+<mx:RadioButton groupName="rbgSizes" label="Small" value="Small" />
+<mx:RadioButton groupName="rbgSizes" label="Large" value="Large" />
+
+<mx:List labelField="breed">
+    <mx:dataProvider>
+        <fx:Object includeIn="All,Small" breed="Chihuahua" />
+        <fx:Object includeIn="All,Small" breed="Pug" />
+        <fx:Object includeIn="All,Small" breed="Yorkshire Terrier" />
+        
+        <fx:Object includeIn="All,Large" breed="Afghan" />
+        <fx:Object includeIn="All,Large" breed="Bernese Mountain Dog" />
+        <fx:Object includeIn="All,Large" breed="Saint Bernard" />
+        <fx:Object includeIn="All,Large" breed="Scottish Deerhound" />
+    </mx:dataProvider>
+</mx:List>
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/DogCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Dog Care" width="100%" height="100%">
+
+<mx:Text text="Dog Care" />
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/KittenCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/KittenCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/KittenCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/KittenCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box 
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Kitten Care" width="100%" height="100%">
+
+<mx:Text text="Kitten Care" />
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigBreedBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigBreedBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigBreedBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigBreedBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,61 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Pig Breeds" width="100%" height="100%">
+
+<fx:Script>
+<![CDATA[
+        import mx.events.ItemClickEvent;
+
+        private function changeState(event:ItemClickEvent):void{
+            currentState = event.currentTarget.selectedValue;
+        }
+]]>
+</fx:Script>
+
+<mx:states>
+    <mx:State name="All" />
+    <mx:State name="American" />
+    <mx:State name="German" />
+</mx:states>
+
+<fx:Declarations>
+    <mx:RadioButtonGroup id="rbgCountries" itemClick="changeState(event)" />
+</fx:Declarations>    
+
+<mx:Text text="Select a country of origin:" />
+
+<mx:RadioButton id="rbAllPigs" groupName="rbgCountries" label="All" value="All" selected="true" />
+<mx:RadioButton id="rbAmericanPigs" groupName="rbgCountries" label="American" value="American" />
+<mx:RadioButton id="rbGermanPigs" groupName="rbgCountries" label="German" value="German" />
+
+<mx:List id="listPigs" labelField="breed">
+    <mx:dataProvider>
+        <fx:Object includeIn="All,American" breed="American Landrace" />
+        <fx:Object includeIn="All,American" breed="American Yorkshire" />
+        <fx:Object includeIn="All,American" breed="Duroc" />
+        
+        <fx:Object includeIn="All,German" breed="Angeln Saddleback" />
+        <fx:Object includeIn="All,German" breed="Bentheim Black Pied" />
+    </mx:dataProvider>
+</mx:List>
+
+</mx:Box>

Added: incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigCareBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigCareBox.mxml?rev=1369998&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigCareBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/States/CurrentSyntax/Integration/TabNavApp/SWFs/AnimalBoxes/PigCareBox.mxml Mon Aug  6 20:42:44 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<mx:Box
+    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    label="Pig Care" width="100%" height="100%">
+
+<mx:Text text="Pig Care" />
+
+</mx:Box>



Mime
View raw message