incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370370 [39/43] - in /incubator/flex/trunk/mustella/tests/mx: ./ binding/ binding/utils/ binding/utils/BindingUtils/ binding/utils/BindingUtils/SWFs/ binding/utils/BindingUtils/SWFs/assets/ binding/utils/BindingUtils/method/ binding/utils/...
Date Tue, 07 Aug 2012 17:13:35 GMT
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_global_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_global_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_global_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_global_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,393 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_component_global_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			
+			import assets.styleTest.ADVStyleTestClass;
+			import assets.styleTest.ADVStyleTestVo;
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			import assets.styleTest.ADVStyleTestClassUIComp;
+			import mx.core.FlexGlobals;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test the descendant Selector in component-->
+		<TestCase testID="ADV_component_global_selector_BorderContainer_test1" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, BorderContainer]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexBorderContainerComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_DataGroup_test2" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, DataGroup]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexDataGroupComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_Group_test3" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, Group]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<!--AssertPropertyValue target="advStyleTest_FlexGroupComponent.styleLabel" propertyName="text" value="defaultString:21:345" /-->
+				<AssertMethodValue method="value=FlexGlobals.topLevelApplication.advStyleTest_FlexGroupComponent.componentADV.getMyStyleLabel()" value="defaultString:21:345"/>								 
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Accordion_test4" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Accordion]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxAccordionComponent.styleLabel" propertyName="label" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_ApplicationControlBar_test5" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx ApplicationControlBar]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxApplicationControlBarComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Box_test6" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Box]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxBoxComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Canvas_test7" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Canvas]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxCanvasComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_ControlBar_test8" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx ControlBar]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxControlBarComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_DividedBox_test9" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx DividedBox]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxDividedBoxComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Form_test10" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Form]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxFormComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Grid_test11" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Grid]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxGridComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_Panel_test12" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Panel]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxPanelComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_TabNavigator_test13" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx TabNavigator]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxTabNavigatorComponent.styleLabel" propertyName="label" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_Tile_test14" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx Tile]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexMxTileComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_mx_ViewStack_NavigatorContent_test15" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, mx ViewStack, NavigatorContent]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexNavigatorContentMxVSComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_Panel_test16" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, spark Panel]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexPanelComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_component_global_selector_SkinnableDataContainer_test17" 
+				  description="This test case is to test the global Selector in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, global Selector, spark SkinnableDataContainer]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  valueExpression="value=21"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  valueExpression="value=345"/>
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  valueExpression="value=5000"/>
+				<AssertPropertyValue target="advStyleTest_FlexSkinnableDataContainerComponent.styleLabel" propertyName="text" value="defaultString:21:345" />
+				
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,193 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_component_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			
+			import assets.styleTest.ADVStyleTestClass;
+			import assets.styleTest.ADVStyleTestVo;
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			import assets.styleTest.ADVStyleTestClassUIComp;
+			
+			import mx.collections.ArrayCollection;
+			import mx.collections.IList;
+			import mx.collections.XMLListCollection;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test the un-setting styles-->
+		<TestCase testID="ADV_component_unsetting_test1" 
+				  description="This test case is to test the un-setting styles" 
+				  keywords="[ADVStyleTestClass, FlexComponent, un-setting style]">
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+			</setup>
+			<body>
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_6_format_time_noinh')" valueExpression="value=5000"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the style only defined in application-->
+		<TestCase testID="ADV_component_mainOnly_test2" 
+				  description="This test case is to test the style only defined in application" 
+				  keywords="[ADVStyleTestClass, FlexComponent, main application style]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+			</setup>
+			<body>
+				<!--ID Selector-->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_4_date_inh')" valueExpression="value=application.appDate"/>
+				
+				<!--Class Selector-->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvCompStyle('teststyle_2_number_noinh')" valueExpression="value=12345"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the style only defined in component-->
+		<TestCase testID="ADV_component_componentOnly_test3" 
+				  description="This test case is to test the style only defined in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, component style]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+			</setup>
+			<body>
+				<!--the first case is test ID Selector with the same name of main application, the second case is test different name-->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_2_number_noinh')" valueExpression="value=54321"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_flexComponent.componentADVDiff" valueExpression="value=12"/>
+				
+				<!--the first case is test Class Selector with the same name of main application, the second case is test different name -->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvCompStyle('teststyle_1_string_noinh')" value="defaultString"/>
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_flexComponent.componentADVStyleDiff" value="componentString"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the styles defined both in main application and component using same names with Class and ID Selector-->
+		<TestCase testID="ADV_component_compound_main_component_sameName_test4" 
+				  description="This test case is to test the styles defined both in main application and component using same names with Class and ID Selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, compound, same names of Class Selector and ID Selector]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+			</setup>
+			<body>
+				<!--ID Selector-->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_1_string_noinh')" value="idAppStr"/>
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_3_uint_inh')" valueExpression="value=345"/>
+				
+				<!--Class Selector-->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvCompStyle('teststyle_3_uint_inh')" valueExpression="value=67"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the styles defined both in main application and component using different names with Class and ID Selector-->
+		<TestCase testID="ADV_component_compound_main_component_diffName_test5" 
+				  description="This test case is to test the styles defined both in main application and component using different names with Class and ID Selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, different names of Class Selector and ID Selector]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+			</setup>
+			<body>
+				<!--ID Selector-->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_flexComponent.componentADVDiff" value="idCompString"/>
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_flexComponent.componentADVDiff" valueExpression="value=56"/>
+				
+				<!--Class Selector-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_flexComponent.componentADVStyleDiff" valueExpression="value=34"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the custom method defined in component-->
+		<TestCase testID="ADV_component_custom_method_test6" 
+				  description="This test case is to test the custom method defined in component" 
+				  keywords="[ADVStyleTestClass, FlexComponent, custom method]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+				<RunCode code="application.advStyleTest_flexComponent.setCompStyle()"/>
+				<Pause timeout="100"/>
+			</setup>
+			<body>
+				<!--test setted styles using method -->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_1_string_noinh')" value="testsetStr"/>
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_3_uint_inh')" valueExpression="value=56"/>
+				
+				<!--test unsetted styles using method -->
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvStyle('teststyle_2_number_noinh')" valueExpression="value=54321"/>
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test the styles using addElement() API-->
+		<TestCase testID="ADV_component_addElement_method_test7" 
+				  description="This test case is to test the styles using addElement() API" 
+				  keywords="[ADVStyleTestClass, FlexComponent, addElement]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/>
+				<RunCode code="application.addFlexComponent()"/>
+				<Pause timeout="100"/>
+			</setup>
+			<body>
+				<!--test style not defined in component but in dynamic created component-->
+				<AssertMethodValue method="value=application.myComp.getAdvCompStyle('teststyle_4_date_inh')" valueExpression="value=application.compDate1"/>
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="myComp.componentADVStyle" valueExpression="value=application.compDate1"/>
+				<AssertStyleValue styleName="teststyle_2_number_noinh" target="myComp.componentADVStyle" valueExpression="value=12345"/>
+				
+				<!--test inheritable style-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="myComp.componentADVStyle" valueExpression="value=67"/>
+				
+				<!--test style only defined in component-->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="myComp.componentADVStyle" value="defaultString"/>
+				
+				<!--test un-setting style-->
+				<AssertMethodValue method="value=application.myComp.getAdvCompStyle('teststyle_6_format_time_noinh')" valueExpression="value=5000" />
+			</body>
+		</TestCase>
+		
+		<!--This test case is to test styleManager API to change styles-->
+		<TestCase testID="ADV_component_styleManager_method_test8" 
+				  description="This test case is to test styleManager API to change styles" 
+				  keywords="[ADVStyleTestClass, FlexComponent, styleManager]" >
+			<setup>
+				<ResetComponent target="advStyleTest_flexComponent" className="assets.FlexComponent" waitEvent="updateComplete"/> 
+				<RunCode code="application.testAdvStyleInSM()"/>
+				<Pause timeout="100"/>
+			</setup>
+			<body>			
+				<AssertMethodValue method="value=application.advStyleTest_flexComponent.getAdvCompStyle('teststyle_4_date_inh')" valueExpression="value=application.appDate1"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_application_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_application_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_application_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_application_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,113 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_application_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<TestCase testID="ADV_module_custom_method_test1" 
+				  description="This test case is to test the style inheritance of module" 
+				  keywords="[ADVStyleTestClass, Flex Module, custom method]">
+			<setup>
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advModuleDomain"
+								  value="defaultString"/>
+				
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advModuleDomain"
+								  value="5000"/>
+				
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advModuleDomain"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advModuleDomain"
+								  value="8888"/>
+				
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advModuleDomain"
+								  value="0x112233"/>
+				
+				<AssertPropertyValue target="styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+			</body>
+			<cleanup>
+			</cleanup>
+		</TestCase>
+		
+		<TestCase testID="ADV_module_custom_method_test2" 
+				  description="This test case is to test the style inheritance of module" 
+				  keywords="[ADVStyleTestClass, Flex Module, custom method]">
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+				<Pause timeout="200"/>
+			</setup>
+			<body>
+				
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="moduleLoad.child.moduleADV"
+								  value="defaultString"/>
+				
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="moduleLoad.child.moduleADV"
+								  value="5000"/>
+				
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="moduleLoad.child.moduleADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="moduleLoad.child.moduleADV"
+								  value="8888"/>
+				
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="moduleLoad.child.moduleADV"
+								  value="0x112233"/>
+				
+				<AssertPropertyValue target="moduleLoad.child.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+		
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_curdomain_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_curdomain_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_curdomain_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_curdomain_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,78 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_curdomain_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test styles using ApplicationDomain class with application's domain-->
+		<TestCase testID="ADV_module_application_domain_test1" 
+				  description="This test case is to test styles using ApplicationDomain class with application's domain" 
+				  keywords="[ADVStyleTestClass, Flex Module, Application Domain]" >
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.loadAppCurDomain()" waitEvent="testStylesLoadComplete" />
+			</setup>
+			<body>	
+				<!--test style only defined in module but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_3_uint_inh')" valueExpression="value=34"/>
+				
+				<!--test style only defined in application but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_6_format_time_noinh')" valueExpression="value=12000"/>
+				
+				<!--test the compound styles defined between application and module and compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_1_string_noinh')" value="moduleString"/>
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_5_format_length_noinh')" valueExpression="value=100"/>
+				
+				<!--test style only defined in loaded CSS -->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_2_number_noinh')" valueExpression="value=111"/>
+				
+				<!--test un-setting style using default value-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_11_boolean_noinh')" valueExpression="value=false"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_global_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_global_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_global_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_global_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,113 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_global_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<TestCase testID="ADV_module_custom_method_test1" 
+				  description="This test case is to test the style inheritance of module" 
+				  keywords="[ADVStyleTestClass, Flex Module, custom method]">
+			<setup>
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advModuleDomain"
+								  value="defaultString"/>
+				
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advModuleDomain"
+								  value="5000"/>
+				
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advModuleDomain"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advModuleDomain"
+								  value="8888"/>
+				
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advModuleDomain"
+								  value="0x112233"/>
+				
+				<AssertPropertyValue target="styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+			</body>
+			<cleanup>
+			</cleanup>
+		</TestCase>
+		
+		<TestCase testID="ADV_module_custom_method_test2" 
+				  description="This test case is to test the style inheritance of module" 
+				  keywords="[ADVStyleTestClass, Flex Module, custom method]">
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+				<Pause timeout="200"/>
+			</setup>
+			<body>
+				
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="moduleLoad.child.moduleADV"
+								  value="defaultString"/>
+				
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="moduleLoad.child.moduleADV"
+								  value="5000"/>
+				
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="moduleLoad.child.moduleADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="moduleLoad.child.moduleADV"
+								  value="8888"/>
+				
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="moduleLoad.child.moduleADV"
+								  value="0x112233"/>
+				
+				<AssertPropertyValue target="moduleLoad.child.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+		
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,118 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test the API defined in module-->
+		<TestCase testID="ADV_module_custom_method_test1" 
+				  description="This test case is to test the API defined in module" 
+				  keywords="[ADVStyleTestClass, Flex Module, custom method]">
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.ichild.setADVStyle()"/>
+				<Pause timeout="200"/>
+			</setup>
+			<body>
+				<!--test the style defined in ActionScript code-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_2_number_noinh')" valueExpression="value=12345"/>
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_3_uint_inh')" valueExpression="value=12"/>
+				
+				<!--test the un-setting style with default value-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_7_format_color_noinh')" valueExpression="value=0x112233"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+		
+		<!--This test case is to test styles defined in Type Selector both in application and module-->
+		<TestCase testID="ADV_module_compound_type_selector_test2" 
+				  description="This test case is to test styles defined in Type Selector both in application and module" 
+				  keywords="[ADVStyleTestClass, Flex Module, compound, type selector]">
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+			</setup>
+			<body>
+				<!--test the style only defined in module-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_3_uint_inh')" valueExpression="value=34"/>
+				
+				<!--test the style only defined in application-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_6_format_time_noinh')" valueExpression="value=10000"/>
+				
+				<!--test the compound style defined between main application and module-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_1_string_noinh')" value="moduleString"/>
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_5_format_length_noinh')" valueExpression="value=100"/>
+				
+				<!--test unsetting style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_11_boolean_noinh')" valueExpression="value=false"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+		
+		<!--This test case is to test using styleManager API to change styles-->
+		<TestCase testID="ADV_module_styeManager_method_test3" 
+				  description="This test case is to test using styleManager API to change styles" 
+				  keywords="[ADVStyleTestClass, Flex Module, styleManager]" >
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.testAdvStyleInSM()"/>
+				<Pause timeout="100"/>
+			</setup>
+			<body>			
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_6_format_time_noinh')" valueExpression="value=20000"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_moduledomain_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_moduledomain_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_moduledomain_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_moduledomain_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,78 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_moduledomain_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test styles using ApplicationDomain class with module's domain-->
+		<TestCase testID="ADV_module_module_domain_test1" 
+				  description="This test case is to test styles using ApplicationDomain class with module's domain" 
+				  keywords="[ADVStyleTestClass, Flex Module, Module's Domain]" >
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.ichild.loadModuleStyle()" waitEvent="testStylesLoadComplete" waitTarget="ichild"/>
+			</setup>
+			<body>			
+				<!--test style only defined in module but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_3_uint_inh')" valueExpression="value=222"/>
+				
+				<!--test style only defined in application but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_6_format_time_noinh')" valueExpression="value=12000"/>
+				
+				<!--test the compound styles defined between application and module and compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_1_string_noinh')" value="typeString"/>
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_5_format_length_noinh')" valueExpression="value=50"/>
+				
+				<!--test style only defined in loaded CSS-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_2_number_noinh')" valueExpression="value=111"/>
+				
+				<!--test un-setting style using default value-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_11_boolean_noinh')" valueExpression="value=false"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_subdomain_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_subdomain_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_subdomain_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_module_subdomain_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,75 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_flex_module_subdomain_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--This test case is to test styles using ApplicationDomain class with module's domain-->
+		<TestCase testID="ADV_module_subapplication_domain_test1" 
+				  description="This test case is to test styles using ApplicationDomain class with module's domain" 
+				  keywords="[ADVStyleTestClass, Flex Module, Sub-Application Domain]" >
+			<setup>
+				<ResetComponent target="moduleLoad" className="mx.modules.ModuleLoader" waitEvent="updateComplete"/>
+				<RunCode code="application.setListeners()" waitEvent="setModuleListenersDone" />
+				
+				<DispatchMouseClickEvent target="loadModuleBT" waitTarget="moduleLoad" waitEvent="ready"/>
+				<RunCode code="application.loadAppSubDomain()" waitEvent="testStylesLoadComplete"/>
+			</setup>
+			<body>			
+				<!--test style only defined in module but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_3_uint_inh')" valueExpression="value=34"/>
+				
+				<!--test style only defined in application but compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_6_format_time_noinh')" valueExpression="value=12000"/>
+				
+				<!--test the compound styles defined between application and module and compound with loaded CSS style-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_1_string_noinh')" value="moduleString"/>
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_5_format_length_noinh')" valueExpression="value=100"/>
+				
+				<!--test un-setting style using default value-->
+				<AssertMethodValue method="value=application.ichild.getADVStyle('teststyle_11_boolean_noinh')" valueExpression="value=false"/>
+			</body>
+			<cleanup>
+				<DispatchMouseClickEvent target="unloadBT" waitTarget="moduleLoad" waitEvent="unload"/>
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_inlineStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_inlineStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_inlineStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_inlineStyle_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,300 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_inlineStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.*;
+			
+			public static function init(o:DisplayObject):void 
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!-- test with default style setting-->
+		<TestCase testID="ADV_inline_default_test1" 
+				  description="test with default style setting" 
+				  keywords="ADVStyleTestClass, inline, default">
+			<setup>
+				<ChangeState toState="heavy" waitEvent="changeEventDone"/>
+			</setup>
+			<body>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_1_string_noinh" value="defaultString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_4_date_inh" valueExpression="value=application.defaultDate"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_5_format_length_noinh" valueExpression="value=30"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_6_format_time_noinh" valueExpression="value=5000"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_8_format_arrayType_noinh" valueExpression="value=application.defaultColorArray"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_9_date_arrayCol_inh" valueExpression="value=application.defaultDateList"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_10_xml_arrayCol_noinh" valueExpression="value=application.defaultXmlList"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_12_enum_string_inh" value="defaultType"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_14_object_noinh" valueExpression="value=ADVStyleTestConstants.defaultAdvVo"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>			
+			</body>
+		</TestCase>
+		
+		<!--test state style with default style setting-->
+		<TestCase testID="ADV_inline_default_state_test2" 
+				  description="test state style with default style setting" 
+				  keywords="ADVStyleTestClass, inline, default, state">
+			<setup>
+				<ChangeState toState="medium" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<!--styles which have state property-->
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>
+				
+				<!--styles which don't have state property-->
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_1_string_noinh" value="defaultString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+			</body>
+		</TestCase>
+		
+		<!--test with inline style setting-->
+		<TestCase testID="ADV_inline_value_test3" 
+				  description="test with inline style setting" 
+				  keywords="ADVStyleTestClass, inline">
+			<setup>
+				<ChangeState toState="heavy" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_1_string_noinh" value="testString"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=12345.678"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_3_uint_inh" valueExpression="value=675"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_4_date_inh" valueExpression="value=application.date_heavy"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_5_format_length_noinh" valueExpression="value=20"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_6_format_time_noinh" valueExpression="value=2000"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_7_format_color_noinh" valueExpression="value=0xFF99FF"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_8_format_arrayType_noinh" valueExpression="value=application.colorArray"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_9_date_arrayCol_inh" valueExpression="value=application.dateList"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_10_xml_arrayCol_noinh" valueExpression="value=application.xmlList"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_13_enum_int_noinh" valueExpression="value=66"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_14_object_noinh" valueExpression="value=application.myVo_heavy"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>			
+			</body>
+		</TestCase>
+		
+		<!--test state style with inline style setting-->
+		<TestCase testID="ADV_inline_state_value_test4" 
+				  description="test state style with inline style setting" 
+				  keywords="ADVStyleTestClass, inline, state">
+			<setup>
+				<ChangeState toState="light" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<!--styles which have state property-->
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_15_state_string_noinh" value="inlineStringLight"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.img3Cls"/>			
+				
+				<!--styles which don't have state property-->
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_3_uint_inh" valueExpression="value=675"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_4_date_inh" valueExpression="value=application.date_light"/>
+			</body>
+		</TestCase>
+		
+		<!--test by using setStyle() method-->
+		<TestCase testID="ADV_inline_setStyle_method_test5" 
+				  description="test by using setStyle() method" 
+				  keywords="ADVStyleTestClass, inline, setStyle method">
+			<setup>
+				<ChangeState toState="heavy" waitEvent="changeEventDone" />
+				<RunCode code="application.setAdvStyleAll()"/>
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_1_string_noinh" value="setString"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=12345"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_3_uint_inh" valueExpression="value=675"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_4_date_inh" valueExpression="value=application.localDate"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_7_format_color_noinh" valueExpression="value=0xFF99FF"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_8_format_arrayType_noinh" valueExpression="value=application.colorArray"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_9_date_arrayCol_inh" valueExpression="value=application.dateList"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_10_xml_arrayCol_noinh" valueExpression="value=application.localXmlList"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_13_enum_int_noinh" valueExpression="value=66"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_14_object_noinh" valueExpression="value=application.myVo_heavy"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_15_state_string_noinh" value="testStringHeavy"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>
+				<AssertStyleValue target="setStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>			
+			</body>
+		</TestCase>
+		
+		<!-- test style compound/overwrite between default and inline styles-->
+		<TestCase testID="ADV_inline_compound_default_inline_test6" 
+				  description="test style compound/overwrite between default and inline styles" 
+				  keywords="ADVStyleTestClass, inline, compound, default">
+			<setup>
+				<ChangeState toState="heavy" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<!--verify those inline styles using inline value-->
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_5_format_length_noinh" valueExpression="value=20"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_6_format_time_noinh" valueExpression="value=2000"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_7_format_color_noinh" valueExpression="value=0xFF99FF"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_8_format_arrayType_noinh" valueExpression="value=application.colorArray"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_9_date_arrayCol_inh" valueExpression="value=application.dateList"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_10_xml_arrayCol_noinh" valueExpression="value=application.xmlList"/>
+				
+				<!--verify those un-setting styles using default value-->
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_1_string_noinh" value="defaultString"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_4_date_inh" valueExpression="value=application.defaultDate"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_12_enum_string_inh" value="defaultType"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_14_object_noinh" valueExpression="value=ADVStyleTestConstants.defaultAdvVo"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+				<AssertStyleValue target="compoundStyleTest1" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>			
+			</body>
+		</TestCase>
+		
+		<!--test style compound/overwrite between inline styles and setStyle() method-->
+		<TestCase testID="ADV_inline_compound_inline_setStyle_method_test7" 
+				  description="test style compound/overwrite between inline styles and setStyle() method" 
+				  keywords="ADVStyleTestClass, inline, compound, setStyle method">
+			<setup>
+				<ChangeState toState="heavy" waitEvent="changeEventDone" />
+				<RunCode code="application.setAdvStyle(application.compoundStyleTest2)"/>
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--SetStyle method-->
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_1_string_noinh" value="setString"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_4_date_inh" valueExpression="value=application.localDate"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>		
+				
+				<!--inline setting-->
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_14_object_noinh" valueExpression="value=application.myVo_heavy"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>		
+				
+				<!--compound style between inline and setStyle() method using method value-->
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_10_xml_arrayCol_noinh" valueExpression="value=application.localXmlList"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_12_enum_string_inh" value="secondType"/>			
+				
+				<!--default setting-->
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_8_format_arrayType_noinh" valueExpression="value=application.defaultColorArray"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_9_date_arrayCol_inh" valueExpression="value=application.defaultDateList"/>	
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+				<AssertStyleValue target="compoundStyleTest2" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+			</body>
+		</TestCase>	
+		
+		<!--test state style compound/overwrite between inline styles and setStyle() method-->
+		<TestCase testID="ADV_inline_compound_inline_setStyle_method_state_test8" 
+				  description="test state style compound/overwrite between inline styles and setStyle() method" 
+				  keywords="ADVStyleTestClass, inline, compound, setStyle method, state">
+			<setup>
+				<ChangeState toState="light" waitEvent="changeEventDone" />
+				<RunCode code="application.setAdvStyle(application.compoundStyleTest3)"/>
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--SetStyle method-->
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_1_string_noinh" value="setString"/>
+				
+				<!--inline setting-->
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_14_object_noinh" valueExpression="value=application.myVo_heavy"/>
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_15_state_string_noinh" value="inlineStringLight"/>
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.img3Cls"/>		
+				
+				<!--compound style between inline and setStyle() method using method value-->
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_12_enum_string_inh" value="secondType"/>		
+				
+				<!--default setting-->
+				<AssertStyleValue target="compoundStyleTest3" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+			</body>
+		</TestCase>
+		
+		<!--Negative testing: change currentState to a nonsupported state, test default style--> 
+		<TestCase testID="ADV_inline_default_unsupported_state_test9" 
+				  description="Negative testing: change currentState to a nonsupported state, test default style" 
+				  keywords="ADVStyleTestClass, default, unsupported state">
+			<setup>
+				<ChangeState toState="notAstate" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<!--styles which have state property-->
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>
+				
+				<!--styles which don't have state property-->
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_1_string_noinh" value="defaultString"/>
+				<AssertStyleValue target="defaultStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+			</body>
+		</TestCase>
+		
+		<!--Negative testing: change currentState to a nonsupported state, test inline style--> 
+		<TestCase testID="ADV_inline_inline_unsupported_state_test9" 
+				  description="Negative testing: change currentState to a nonsupported state, test inline style" 
+				  keywords="ADVStyleTestClass, inline, unsupported state">
+			<setup>
+				<ChangeState toState="notAstate" waitEvent="changeEventDone" />
+			</setup>
+			<body>
+				<!--styles which have state property-->
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>			
+				
+				<!--styles which don't have state property-->
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_1_string_noinh" value="notastate"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_2_number_noinh" valueExpression="value=444.7777"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_5_format_length_noinh" valueExpression="value=20"/>
+				<AssertStyleValue target="inlineStyleTest" styleName="teststyle_6_format_time_noinh" valueExpression="value=2000"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_localStyle_ApplicationSelector_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_localStyle_ApplicationSelector_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_localStyle_ApplicationSelector_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_localStyle_ApplicationSelector_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,88 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_localStyle_ApplicationSelector_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.*;
+			
+			public static function init(o:DisplayObject):void 
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<!--test with local style setting: Application Selector-->
+	<testCases>			
+		<TestCase testID="ADV_localStyle_application_selector_test1" 
+				  description="test with local style setting: Application Selector" 
+				  keywords="[ADVStyleTestClass, local, Application Selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="advStyleTest_Local_Application" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="advStyleTest_Local_Application" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		<TestCase testID="ADV_localStyle_application_selector_component_test2" 
+				  description="test with local style setting: Application Selector in component" 
+				  keywords="[ADVStyleTestClass, local, Application Selector, component]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_localStyle_application_selector_module_loader_test4" 
+				  description="test with local style setting: Application Selector in module with directly used" 
+				  keywords="[ADVStyleTestClass, local, Application Selector, module, moduleLoader]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file



Mime
View raw message