You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/08/07 19:13:35 UTC
svn commit: r1370370 [38/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/...
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_classTypeCompound_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_classTypeCompound_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_classTypeCompound_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_classTypeCompound_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,136 @@
+<?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_externalStyle_classTypeCompound_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 external style compound/overwrite between class selector and type selector-->
+ <TestCase testID="ADV_extStyle_compound_class_type_test1"
+ description="test external style compound/overwrite between class selector and type selector"
+ keywords="[ADVStyleTestClass, external, compound, class selector, type selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--class selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--type selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between class selector and type selector using class style value-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ </body>
+ </TestCase>
+
+ <!--test external style compound/overwrite between class selector and type selector-->
+ <TestCase testID="ADV_extStyle_compound_class_type_component_test2"
+ description="test external style compound/overwrite between class selector and type selector"
+ keywords="[ADVStyleTestClass, external, compound, class selector, type selector, component]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--class selector setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--type selector setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between class selector and type selector using class style value-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ </body>
+ </TestCase>
+
+ <!--test external style compound/overwrite between class selector and type selector-->
+ <TestCase testID="ADV_extStyle_compound_class_type_module_loader_test3"
+ description="test external style compound/overwrite between class selector and type selector"
+ keywords="[ADVStyleTestClass, external, compound, class selector, type selector, module, moduleLoader]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--class selector setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--type selector setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between class selector and type selector using class style value-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,212 @@
+<?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_externalStyle_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 external style setting: Class Selector-->
+ <TestCase testID="ADV_extStyle_class_selector_test1"
+ description="test with external style setting: Class Selector"
+ keywords="[ADVStyleTestClass, external, Class Selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_1_string_noinh" value="ExternalString"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_2_number_noinh" valueExpression="value=6666789"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_3_uint_inh" valueExpression="value=34"/>
+
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x776655"/>
+
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_15_state_string_noinh" value="ExternalStateString"/>
+
+ <AssertStyleValue target="advStyleTest_External_Class" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+ </body>
+ </TestCase>
+
+ <!--test with external style setting: ID Selector-->
+ <TestCase testID="ADV_extStyle_id_selector_test2"
+ description="test with external style setting: ID Selector"
+ keywords="[ADVStyleTestClass, external, ID Selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_1_string_noinh" value="idString"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_2_number_noinh" valueExpression="value=6666666"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_3_uint_inh" valueExpression="value=43"/>
+
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x556677"/>
+
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+
+ <AssertStyleValue target="advStyleTest_External_ID" styleName="teststyle_15_state_string_noinh" value="idStateString"/>
+ </body>
+ </TestCase>
+
+ <!--test style compound/overwrite between inline and external class selector styles-->
+ <TestCase testID="ADV_extStyle_compound_inline_class_test3"
+ description="test style compound/overwrite between inline and external class selector styles"
+ keywords="[ADVStyleTestClass, external, compound, inline, class selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--class selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--inline setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.imgCls"/>
+
+ <!--compound style between inline and external class selector using inline style value-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ </body>
+ </TestCase>
+
+ <!--test style compound/overwrite of class selector between local and external styles-->
+ <TestCase testID="ADV_extStyle_compound_local_external_test4"
+ description="test style compound/overwrite of class selector between local and external styles"
+ keywords="[ADVStyleTestClass, external, compound, local, class selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--local class setting-->
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_15_state_string_noinh" value="localStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--external class setting-->
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--compound style between local and external using local style value-->
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External2" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ </body>
+ </TestCase>
+
+ <!--test external varied measure setting for style5 and style7-->
+ <TestCase testID="ADV_extStyle_style_format_test5"
+ description="test external varied measure setting for style5 and style7"
+ keywords="[ADVStyleTestClass, external, style definition, format property]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <AssertStyleValue target="advStyleTest_External_Measure1" styleName="teststyle_5_format_length_noinh" valueExpression="value=72"/>
+ <AssertStyleValue target="advStyleTest_External_Measure1" styleName="teststyle_7_format_color_noinh" valueExpression="value=16711680"/>
+
+ <AssertStyleValue target="advStyleTest_External_Measure2" styleName="teststyle_5_format_length_noinh" valueExpression="value=28"/>
+ <AssertStyleValue target="advStyleTest_External_Measure2" styleName="teststyle_7_format_color_noinh" valueExpression="value=16711680"/>
+
+ <AssertStyleValue target="advStyleTest_External_Measure3" styleName="teststyle_5_format_length_noinh" valueExpression="value=1"/>
+ <AssertStyleValue target="advStyleTest_External_Measure3" styleName="teststyle_7_format_color_noinh" valueExpression="value='255,0,0'"/>
+
+ <AssertStyleValue target="advStyleTest_External_Measure4" styleName="teststyle_5_format_length_noinh" valueExpression="value=12"/>
+ <AssertStyleValue target="advStyleTest_External_Measure4" styleName="teststyle_7_format_color_noinh" valueExpression="value=16711680"/>
+
+ <AssertStyleValue target="advStyleTest_External_Measure5" styleName="teststyle_5_format_length_noinh" valueExpression="value=2"/>
+
+ <AssertStyleValue target="advStyleTest_External_Measure6" styleName="teststyle_5_format_length_noinh" valueExpression="value=1"/>
+ </body>
+ </TestCase>
+
+ <!--test style compound/overwrite between id selector and class selector-->
+ <TestCase testID="ADV_extStyle_compound_id_class_test6"
+ description="test style compound/overwrite between id selector and class selector"
+ keywords="[ADVStyleTestClass, external, compound, id selector, class selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--class selector setting-->
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+
+ <!--id selector setting-->
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_2_number_noinh" valueExpression="value=1111"/>
+
+ <!--compound style between id selector and class selector using id selector value-->
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_15_state_string_noinh" value="defaultStateString"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ <AssertStyleValue target="advStyleTest_External3" styleName="teststyle_17_skin_state_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls_heavy"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeApplicationCompound_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeApplicationCompound_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeApplicationCompound_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeApplicationCompound_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,131 @@
+<?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_externalStyle_typeApplicationCompound_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 external style compound/overwrite between type selector and application selector-->
+ <TestCase testID="ADV_extStyle_compound_type_application_test1"
+ description="test external style compound/overwrite between type selector and application selector"
+ keywords="[ADVStyleTestClass, external, compound, type selector, application selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and application selector using type style value-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--application selector setting for inherited style-->
+
+ <!--application selector setting for herited style-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_extStyle_compound_type_application_component_test2"
+ description="test external style compound/overwrite between type selector and application selector in component"
+ keywords="[ADVStyleTestClass, external, compound, type selector, application selector, component]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and application selector using type style value-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--application selector setting for inherited style-->
+
+ <!--application selector setting for herited style-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_extStyle_compound_type_application_module_loader_test3"
+ description="test external style compound/overwrite between type selector and application selector in module with moduleLoader"
+ keywords="[ADVStyleTestClass, external, compound, type selector, application selector, module, moduleLoader]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and application selector using type style value-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--application selector setting for inherited style-->
+
+ <!--application selector setting for herited style-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeGlobalCompound_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeGlobalCompound_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeGlobalCompound_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeGlobalCompound_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,125 @@
+<?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_externalStyle_typeGlobalCompound_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 external style compound/overwrite between type selector and global selector-->
+ <TestCase testID="ADV_extStyle_compound_type_global_test1"
+ description="test external style compound/overwrite between type selector and global selector"
+ keywords="[ADVStyleTestClass, external, compound, type selector, global selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and global selector using type style value-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--global selector setting-->
+ <AssertStyleValue target="advStyleTest_External1" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_extStyle_compound_type_global_component_test2"
+ description="test external style compound/overwrite between type selector and global selector in component"
+ keywords="[ADVStyleTestClass, external, compound, type selector, global selector, component]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and global selector using type style value-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--global selector setting-->
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_extStyle_compound_type_global_module_loader_test3"
+ description="test external style compound/overwrite between type selector and global selector in module with moduleLoader"
+ keywords="[ADVStyleTestClass, external, compound, type selector, global selector, module, moduleLoader]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <!--type selector setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="inlineStringHeavy"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+
+ <!--compound style between type and global selector using type style value-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=11"/>
+
+ <!--default setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+
+ <!--global selector setting-->
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeSuperCompound_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeSuperCompound_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeSuperCompound_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_typeSuperCompound_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,87 @@
+<UnitTester testDir="mx/styles/AdvancedStyleClient/Styles/" testSWF="ADV_externalStyle_typeSuperCompound_main.mxml" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark" xmlns="*">
+ <mx:Script><![CDATA[
+ import assets.styleTest.*;
+
+ public static function init(o:DisplayObject):void
+ {
+
+ }
+
+
+ ]]></mx:Script>
+ <mx:Metadata><![CDATA[
+ [Mixin]
+ ]]></mx:Metadata>
+ <testCases>
+ <TestCase testID="ADV_extStyle_compound_type_super_test_1" description="test style compound/overwrite between type selector and super type selector" keywords="[ADVStyleTestClass, external, compound, super class, type selector]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_15_state_string_noinh" value="localStringHeavy"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="testextstyle_1_string_noinh" valueExpression="value='childString'"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="testextstyle_2_number_noinh" valueExpression="value=-1"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="testextstyle_3_uint_inh" valueExpression="value=2"/>
+ <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="testextstyle_4_boolean_inh" valueExpression="value=null"/>
+ </body>
+ </TestCase>
+ <TestCase testID="ADV_extStyle_compound_type_super_component_test_2" description="test style compound/overwrite between type selector and super type selector in component" keywords="[ADVStyleTestClass, external, compound, super class, type selector, component]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="localStringHeavy"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="testextstyle_1_string_noinh" valueExpression="value='childString'"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="testextstyle_2_number_noinh" valueExpression="value=-1"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="testextstyle_3_uint_inh" valueExpression="value=2"/>
+ <AssertStyleValue target="mycomp.componentADV" styleName="testextstyle_4_boolean_inh" valueExpression="value=null"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_extStyle_compound_type_super_module_loader_test_4" description="test style compound/overwrite between type selector and super type selector in module with moduleLoader" keywords="[ADVStyleTestClass, external, compound, super class, type selector, module, moduleLoader]">
+ <setup>
+ <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="localStringHeavy"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_17_skin_state_noinh" valueExpression="value=assets.styleTest.ADVStyleTestSkin"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_1_string_noinh" value="classString"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=true"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_12_enum_string_inh" value="firstType"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=undefined"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x112233"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=15"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_16_skin_noinh" valueExpression="value=ADVStyleTestConstants.defaultCls"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="testextstyle_1_string_noinh" valueExpression="value='childString'"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="testextstyle_2_number_noinh" valueExpression="value=-1"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="testextstyle_3_uint_inh" valueExpression="value=2"/>
+ <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="testextstyle_4_boolean_inh" valueExpression="value=null"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_application_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_application_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_application_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_application_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,394 @@
+<?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_application_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;
+
+ public static function init(o:DisplayObject):void
+ {
+
+ }
+
+ ]]>
+ </mx:Script>
+
+ <mx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </mx:Metadata>
+
+ <testCases>
+ <!--This test case is to test the application Selector in component-->
+ <TestCase testID="ADV_component_application_selector_BorderContainer_test1"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, BorderContainer]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexBorderContainerComponent" className="assets.comp.FlexBorderContainerComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_DataGroup_test2"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, DataGroup]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexDataGroupComponent" className="assets.comp.FlexDataGroupComponent" 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=undefined"/>
+ <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:undefined:345" />-->
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_Group_test3"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, Group]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexGroupComponent" className="assets.comp.FlexGroupComponent" 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=undefined"/>
+ <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:undefined:345" />-->
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Accordion_test4"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Accordion]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxAccordionComponent" className="assets.comp.FlexMxAccordionComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_ApplicationControlBar_test5"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx ApplicationControlBar]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxApplicationControlBarComponent" className="assets.comp.FlexMxApplicationControlBarComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Box_test6"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Box]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxBoxComponent" className="assets.comp.FlexMxBoxComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Canvas_test7"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Canvas]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxCanvasComponent" className="assets.comp.FlexMxCanvasComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_ControlBar_test8"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx ControlBar]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxControlBarComponent" className="assets.comp.FlexMxControlBarComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_DividedBox_test9"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx DividedBox]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxDividedBoxComponent" className="assets.comp.FlexMxDividedBoxComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Form_test10"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Form]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxFormComponent" className="assets.comp.FlexMxFormComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Grid_test11"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Grid]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxGridComponent" className="assets.comp.FlexMxGridComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_Panel_test12"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Panel]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxPanelComponent" className="assets.comp.FlexMxPanelComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_TabNavigator_test13"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx TabNavigator]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxTabNavigatorComponent" className="assets.comp.FlexMxTabNavigatorComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_Tile_test14"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx Tile]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexMxTileComponent" className="assets.comp.FlexMxTileComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_mx_ViewStack_NavigatorContent_test15"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, mx ViewStack, NavigatorContent]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexNavigatorContentMxVSComponent" className="assets.comp.FlexNavigatorContentMxVSComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_Panel_test16"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, spark Panel]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexPanelComponent" className="assets.comp.FlexPanelComponent" 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=undefined"/>
+ <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:undefined:345" />
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="ADV_component_application_selector_SkinnableDataContainer_test17"
+ description="This test case is to test the application Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, application selector, spark SkinnableDataContainer]">
+ <setup>
+ <ResetComponent target="advStyleTest_FlexSkinnableDataContainerComponent" className="assets.comp.FlexSkinnableDataContainerComponent" 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=undefined"/>
+ <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:undefined:345" />-->
+
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_descendant_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_descendant_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_descendant_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_flex_component_descendant_main_tester.mxml Tue Aug 7 17:13:06 2012
@@ -0,0 +1,64 @@
+<?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_descendant_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;
+
+ 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_descendant_selector_test1"
+ description="This test case is to test the descendant Selector in component"
+ keywords="[ADVStyleTestClass, FlexComponent, descendant selector]">
+ <body>
+ <AssertStyleValue styleName="teststyle_1_string_noinh" target="advStyleTest_flexDescComponent.componentADV"
+ value="descendantStr"/>
+ <AssertStyleValue styleName="teststyle_2_number_noinh" target="advStyleTest_flexDescComponent.componentADV"
+ valueExpression="value=21"/>
+ <AssertStyleValue styleName="teststyle_6_format_time_noinh" target="advStyleTest_flexDescComponent.componentADV"
+ valueExpression="value=2000"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file