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 [41/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_styleManager_createGlobalStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createGlobalStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createGlobalStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createGlobalStyle_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,658 @@
+<?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/mx" xmlns="*" 
+			testSWF="ADV_styleManager_createGlobalStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+		import mx.events.FlexEvent;		
+		import assets.styleTest.ADVStyleTestConstants;
+		import assets.styleTest.ADVStyleTestEvent;
+		
+		public static function init(o:DisplayObject):void
+		{
+		
+		}
+		
+		
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>		
+		<!--testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector-->
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_test1" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[AdvancedStyleClient, StyleManager, create CSS declaration, application selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="createGlobalStyleTest"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="createGlobalStyleTest"
+								  value="2000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="createGlobalStyleTest"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="createGlobalStyleTest"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="createGlobalStyleTest"
+								  value="0x112233"/>
+				
+				<AssertPropertyValue target="styleLabel" propertyName="text" 
+									 value="testString:undefined:8888" />
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_BorderContainer_test1" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, BorderContainer]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexBorderContainerComponent" className="assets.comp.FlexBorderContainerComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexBorderContainerComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexBorderContainerComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexBorderContainerComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexBorderContainerComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexBorderContainerComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_DataGroup_test2" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, DataGroup]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexDataGroupComponent" className="assets.comp.FlexDataGroupComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexDataGroupComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexDataGroupComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexDataGroupComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexDataGroupComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexDataGroupComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_Group_test3" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, Group]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexGroupComponent" className="assets.comp.FlexGroupComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexGroupComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexGroupComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexGroupComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexGroupComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexGroupComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Accordion_test4" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Accordion]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxAccordionComponent" className="assets.comp.FlexMxAccordionComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxAccordionComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxAccordionComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxAccordionComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxAccordionComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxAccordionComponent.styleLabel" propertyName="label" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_ApplicationControlBar_test5" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx ApplicationControlBar]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxApplicationControlBarComponent" className="assets.comp.FlexMxApplicationControlBarComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxApplicationControlBarComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxApplicationControlBarComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxApplicationControlBarComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxApplicationControlBarComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Box_test6" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Box]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxBoxComponent" className="assets.comp.FlexMxBoxComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxBoxComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxBoxComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxBoxComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxBoxComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxBoxComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Canvas_test7" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Canvas]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxCanvasComponent" className="assets.comp.FlexMxCanvasComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxCanvasComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxCanvasComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxCanvasComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxCanvasComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxCanvasComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_ControlBar_test8" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx ControlBar]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxControlBarComponent" className="assets.comp.FlexMxControlBarComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxControlBarComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxControlBarComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxControlBarComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxControlBarComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxControlBarComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_DividedBox_test9" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx DividedBox]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxDividedBoxComponent" className="assets.comp.FlexMxDividedBoxComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxDividedBoxComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxDividedBoxComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxDividedBoxComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxDividedBoxComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxDividedBoxComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Form_test10" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Form]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxFormComponent" className="assets.comp.FlexMxFormComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxFormComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxFormComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxFormComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxFormComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxFormComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Grid_test11" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Grid]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxGridComponent" className="assets.comp.FlexMxGridComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxGridComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxGridComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxGridComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxGridComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxGridComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_Panel_test12" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Panel]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxPanelComponent" className="assets.comp.FlexMxPanelComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxPanelComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxPanelComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxPanelComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxPanelComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxPanelComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_TabNavigator_test13" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx TabNavigator]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxTabNavigatorComponent" className="assets.comp.FlexMxTabNavigatorComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxTabNavigatorComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxTabNavigatorComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxTabNavigatorComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxTabNavigatorComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxTabNavigatorComponent.styleLabel" propertyName="label" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_Tile_test14" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx Tile]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexMxTileComponent" className="assets.comp.FlexMxTileComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexMxTileComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexMxTileComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexMxTileComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexMxTileComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexMxTileComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_mx_ViewStack_NavigatorContent_test15" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, mx ViewStack, NavigatorContent]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexNavigatorContentMxVSComponent" className="assets.comp.FlexNavigatorContentMxVSComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexNavigatorContentMxVSComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexNavigatorContentMxVSComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexNavigatorContentMxVSComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexNavigatorContentMxVSComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_Panel_test16" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, spark Panel]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexPanelComponent" className="assets.comp.FlexPanelComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexPanelComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexPanelComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexPanelComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexPanelComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexPanelComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_styleManager_creatStyle_application_selector_SkinnableDataContainer_test17" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Application selector" 
+				  keywords="[ADVStyleTestClass, FlexComponent, create CSS declaration, application selector, spark SkinnableDataContainer]">
+			<setup>
+				<ResetComponent target="advStyleTest_FlexSkinnableDataContainerComponent" className="assets.comp.FlexSkinnableDataContainerComponent" waitEvent="updateComplete" />
+				<RunCode code="application.testCreateStyle()" waitTarget="" waitEvent="myMainAppStyleChanged"/>
+			</setup>
+			<body>
+				<!--Verify those inline style using inline value. -->
+				<AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent"
+								  value="testString"/>
+				
+				<!--Verify those styles compound with inline style and created Application Selector style using inline css value. -->
+				<AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  value="5000"/>
+				
+				<!--Verify style defaulted not null and only created by styleManager API using default value.-->
+				<AssertStyleValue styleName="teststyle_4_date_inh" target="advStyleTest_FlexSkinnableDataContainerComponent.componentADV"
+								  valueExpression="value=ADVStyleTestConstants.defaultDate"/>
+				
+				<!--Verify style defaulted null and set by local Application style using this value.-->
+				<AssertStyleValue styleName="teststyle_3_uint_inh" target="advStyleTest_FlexSkinnableDataContainerComponent"
+								  value="8888"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertStyleValue styleName="teststyle_7_format_color_noinh" target="advStyleTest_FlexSkinnableDataContainerComponent"
+								  value="null"/>
+				
+				<AssertPropertyValue target="advStyleTest_FlexSkinnableDataContainerComponent.styleLabel" propertyName="text" 
+									 value="defaultString:undefined:8888" />
+				
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createTypeStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createTypeStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createTypeStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_createTypeStyle_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,81 @@
+<?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/mx" xmlns="*" 
+			testSWF="ADV_styleManager_createTypeStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;		
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>		
+		<!--testcases for testing create style CSS declaration using styleManager API, and apply it to Type selector-->
+		<TestCase testID="ADV_styleManager_creatStyle_type_selector_test1" 
+				  description="testcases for testing create style CSS declaration using styleManager API, and apply it to Type selector" 
+				  keywords="[AdvancedStyleClient, StyleManager, create CSS declaration, type selector]">
+			<setup>
+				<RunCode code="application.testTypeStyle()" />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify style compound with inline style and created Type Selector style using inline css value. -->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_1_string_noinh')" value="testString" />
+				
+				<!--Verify inline style using inline value.-->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_7_format_color_noinh')" 
+								   valueExpression="value=0x334455" />
+				
+				<!--Verify style compound with local Type style and created Type Selector style using new set css value. -->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=2014"/>
+				
+				<!--Verify style only created by styleManager API using this value.-->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=222.333"/>
+				
+				<!--Verify those local Type Selector style is undefine now-->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_3_uint_inh')" 
+								   valueExpression="value=undefined" />
+				
+				<!--Verify those un-setting styles is undefined.-->
+				<AssertMethodValue method="value=application.createTypeStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=undefined" />
+				
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_globalStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_globalStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_globalStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_globalStyle_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/mx" xmlns="*" 
+			testSWF="ADV_styleManager_globalStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;		
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--testcases style for initial value-->
+		<TestCase testID="ADV_styleManager_globalStyle_test1" 
+				  description="testcases style for initial value" 
+				  keywords="[AdvancedStyleClient, StyleManager, global selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--Verify style compound with default Type style and loaded at runtime global Selector style using Type value. -->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_1_string_noinh')" value="defaultString" />
+				
+				<!--Verify style default is undefined and set by using local global Selector using global value. -->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=123456"/>
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertMethodValue method="value=application.globalStyleTest.getStyle('teststyle_3_uint_inh')" 
+								   valueExpression="undefined"/>	
+				<AssertMethodValue method="value=application.globalStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=30"/>	
+				
+			</body>
+		</TestCase>
+		
+		<!--testcases for setting global style using style manager-->
+		<TestCase testID="ADV_styleManager_globalStyle_test2" 
+				  description="testcases for setting global style using style manager" 
+				  keywords="[AdvancedStyleClient, StyleManager, global selector, set style]">
+			<setup>
+				<RunCode code="application.testADVStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify style compound with inline style and loaded at runtime global Selector style using inline css value. -->
+				<AssertMethodValue method="value=application.globalStyleTest.getStyle('teststyle_1_string_noinh')" value="testString" />
+				
+				<!--Verify style default is undefined and set by using local global Selector using global value. -->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=123456"/>			
+				
+				<!--Verify style compound with set by using local global Selector and set by styleManager API using new set value.-->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=333" />
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertMethodValue method="value=application.globalStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=30"/>	
+				
+			</body>
+		</TestCase>
+		
+		<!--testcases for clearing global style using style manager-->
+		<TestCase testID="ADV_styleManager_globalStyle_test3" 
+				  description="testcases for clearing global style using style manager" 
+				  keywords="[AdvancedStyleClient, StyleManager, global selector, clear style]">
+			<setup>
+				<RunCode code="application.testADVStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+				<RunCode code="application.ClearStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify inline style using inline value after clearing. -->
+				<AssertMethodValue method="value=application.clearStyleTest.getStyle('teststyle_1_string_noinh')" value="testString" />
+				
+				<!--Verify un-inline style using default value after clearing. -->
+				<AssertMethodValue method="value=application.clearStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=undefined" />
+				<AssertMethodValue method="value=application.clearStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=30" />
+			</body>
+		</TestCase>			
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadClassStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadClassStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadClassStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadClassStyle_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,154 @@
+<?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/mx" xmlns="*" 
+			testSWF="ADV_styleManager_loadClassStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;		
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--testcases style for initial value-->
+		<TestCase testID="ADV_styleManager_loadClassStyle_test1" 
+				  description="testcases style for initial value" 
+				  keywords="[AdvancedStyleClient, StyleManager]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--Verify style set by using local Class Selector using class value. -->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_1_string_noinh')" value="cssString" />
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=34" />
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=50" />
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=undefined"/>
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value= 5000" />
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_15_state_string_noinh')" 
+								   value="defaultStateString"/>
+			</body>
+		</TestCase>
+		
+		<!--testcases for unloading Class Selector style CSS declaration using styleManager  API-->
+		<TestCase testID="ADV_styleManager_loadClassStyle_test2" 
+				  description="testcases for unloading Class Selector style CSS declaration using styleManager  API" 
+				  keywords="[AdvancedStyleClient, StyleManager, unload style CSS declaration, class selector]">
+			<setup>
+				<RunCode code="application.loadStyle()" waitEvent="testStylesLoadComplete" />
+				<RunCode code="application.unloadStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify those styles compound with local style and loaded at runtime style using local css value after unloading. -->
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_1_string_noinh')" value="cssString" />
+				
+				<!--Verify style set by using local Class Selector using class value after unloading. -->
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=34" />
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=50" />
+				
+				<!--Verify style not set by using local Class Selector using default value after unloading. -->
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=undefined"/>
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=5000"/>
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_15_state_string_noinh')"
+								   value="defaultStateString"/>
+			</body>
+		</TestCase>
+		
+		<!--testcases for loading Class Selector style CSS declaration using styleManager  API-->		
+		<TestCase testID="ADV_styleManager_loadClassStyle_test3" 
+				  description="testcases for loading Class Selector style CSS declaration using styleManager  API" 
+				  keywords="[AdvancedStyleClient, StyleManager, load style CSS declaration, class selector]">
+			<setup>
+				<RunCode code="application.loadStyle()" waitEvent="testStylesLoadComplete" />
+			</setup>
+			<body>
+				<!--the next 6 Assert test loading a same name Class Selector style CSS declaration using styleManager  API-->
+				
+				<!--Verify those styles compound with local style and loaded at runtime style using loaded css value. -->
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_1_string_noinh')" value="extString" />
+				
+				<!--Verify those styles loaded at runtime using loaded css value. -->
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=777777"/>
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=2012"/>
+				
+				<!--Verify those local Class Selector style using local value. -->
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_3_uint_inh')" 
+								   valueExpression="value=34" />
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=50" />
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertMethodValue method="value=application.loadSameClassStyleTest.getStyle('teststyle_15_state_string_noinh')" 
+								   value="defaultStateString"/>
+				
+				
+				<!--the next 6 Assert test loading a different name Class Selector style CSS declaration using styleManager  API-->
+				
+				<!--Verify those styles compound with local style and loaded at runtime style using loaded css value. -->
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_1_string_noinh')" value="cjString" />
+				
+				<!--Verify those styles loaded at runtime using loaded css value. -->
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=55555"/>
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=2013"/>
+				
+				<!--Verify those un-setting by loaded css styles using default value.-->
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_3_uint_inh')" 
+								   valueExpression="value=undefined" />
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_5_format_length_noinh')" 
+								   valueExpression="value=30" />
+				<AssertMethodValue method="value=application.loadDiferClassStyleTest.getStyle('teststyle_15_state_string_noinh')" 
+								   value="defaultStateString"/>
+			</body>
+			<cleanup>
+				<RunCode code="application.unloadStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadTypeStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadTypeStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadTypeStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_styleManager_loadTypeStyle_main_tester.mxml Tue Aug  7 17:13:06 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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/mx" xmlns="*" 
+			testSWF="ADV_styleManager_loadTypeStyle_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;		
+			import assets.styleTest.ADVStyleTestConstants;
+			import assets.styleTest.ADVStyleTestEvent;
+			
+			public static function init(o:DisplayObject):void
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>
+		<!--testcases style for initial value-->
+		<TestCase testID="ADV_styleManager_loadTypeStyle_test1" 
+				  description="testcases style for initial value" 
+				  keywords="[AdvancedStyleClient, StyleManager]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--Verify style set by using local Type Selector using Type value. -->
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_1_string_noinh')" value="cjString" />
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=111111"/>
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=34" />
+				
+				<!--Verify those un-setting styles using default value.-->
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_5_format_length_noinh')" valueExpression="value=30" />
+				<AssertMethodValue method="value=application.currentStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value= 5000" />
+			</body>
+		</TestCase>
+		
+		<!--testcases for unloading Type Selector style CSS declaration using styleManager  API-->
+		<TestCase testID="ADV_styleManager_loadTypeStyle_test2" 
+				  description="testcases for unloading Type Selector style CSS declaration using styleManager  API" 
+				  keywords="[AdvancedStyleClient, StyleManager, unload style CSS declaration, type selector]">
+			<setup>
+				<RunCode code="application.loadStyle()" waitEvent="testStylesLoadComplete" />
+				<RunCode code="application.unloadStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify those styles compound with local style and loaded at runtime style using local css value after unloading. -->
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_1_string_noinh')" value="cjString" />
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=111111"/>
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=34" />
+				
+				<!--Verify style not set by using local Type Selector using default value after unloading. -->
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_5_format_length_noinh')" valueExpression="value=30" />
+				<AssertMethodValue method="value=application.unloadStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=5000"/>
+			</body>
+		</TestCase>
+		
+		<!--testcases for loading Type Selector style CSS declaration using styleManager  API-->
+		<TestCase testID="ADV_styleManager_loadTypeStyle_test3" 
+				  description="testcases for loading Type Selector style CSS declaration using styleManager  API" 
+				  keywords="[AdvancedStyleClient, StyleManager, load style CSS declaration, type selector]">
+			<setup>
+				<RunCode code="application.loadStyle()" waitEvent="testStylesLoadComplete" />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</setup>
+			<body>
+				<!--Verify those styles compound with local style and loaded at runtime style using loaded css value. -->
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_2_number_noinh')" 
+								   valueExpression="value=8888888"/>
+				
+				<!--Verify those local Type Selector style using local Type value -->
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_1_string_noinh')" value="cjString" />
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_3_uint_inh')" valueExpression="value=34" />
+				
+				<!--Verify those styles loaded at runtime using loaded css value. -->
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_6_format_time_noinh')" 
+								   valueExpression="value=2010"/>
+				
+				<!--Verify those un-setting styles using default value.--> 
+				<AssertMethodValue method="value=application.loadTypeStyleTest.getStyle('teststyle_5_format_length_noinh')" valueExpression="value=30" />
+				
+			</body>
+			<cleanup>
+				<RunCode code="application.unloadStyle()"  />
+				<Pause timeout="{ADVStyleTestConstants.pauseTime}" />
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file



Mime
View raw message