incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369978 [7/7] - in /incubator/flex/trunk/mustella/tests/PerModuleStyles: ./ BasicTests/ BasicTests/baselines/ SWFs/ SWFs/assets/ SWFs/test/ api/ api/baselines/ inheritance/ inheritance/baselines/ merging/ merging/baselines/ regressions/ st...
Date Mon, 06 Aug 2012 20:22:56 GMT
Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_currentAppDomain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_currentAppDomain.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_currentAppDomain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_currentAppDomain.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,57 @@
+<?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="PerModuleStyles/inheritance/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="App_loadsModuleInCurrentDomain.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleInheritanceCurrentDomain" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+			<Pause timeout="1000" />
+
+			<CompareBitmap url="../inheritance/baselines/$testID.png" target="mod_loader" numColorVariances="15" ignoreMaxColorVariance="true"/>
+			
+			
+			<AssertStyleValue styleName="openDuration" target="mod_loader.child.cb" value="1000"/>
+			<AssertStyleValue styleName="color" target="mod_loader.child.cb" value="0xFF0000"/>
+			<AssertStyleValue styleName="fontSize" target="mod_loader.child.cb" value="15"/>
+			<AssertStyleValue styleName="openDuration" target="mod_loader.child.cbOne" value="1500"/>
+			<AssertStyleValue styleName="color" target="mod_loader.child.cbOne" value="0x00FF00"/>
+			<AssertStyleValue styleName="fontSize" target="mod_loader.child.cbOne" value="10"/>
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="PerModuleStyles/inheritance/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="PerModuleStyleTest_basic2.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		import mx.core.FlexGlobals;
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleInheritance_swfLoader" keywords="[Styles,SwfLoader]" description="Test to make sure child swfs  can define their own styles.." >
+ 		    <setup>
+			<SetProperty target="dg" propertyName="selectedIndex"  value="1" waitEvent="valueCommit" />
+		    </setup>
+		    <body>		
+			<RunCode code="FlexGlobals.topLevelApplication.swf_loader.load(FlexGlobals.topLevelApplication.dg.selectedItem.moduleName);"  
+			 waitEvent="complete" waitTarget="swf_loader"/>
+			<Pause timeout="1000" />
+			<CompareBitmap url="../inheritance/baselines/$testID.png" target="swf_loader" timeout="5000" numColorVariances="15" ignoreMaxColorVariance="true"/>
+			<RunCode code="FlexGlobals.topLevelApplication.swf_loader.unloadAndStop(true)" />
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,26 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm SwfLoaderApp.swf
+if (! [ -e SwfLoaderApp.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true SwfLoaderApp.mxml
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/inheritance/checkInheritance_swfLoader.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/checkModuleWithIsolateStylesOff@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging2006.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging2006.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging2006.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChainSwf_loader.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChainSwf_loader.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChainSwf_loader.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingChain_module@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat_module.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat_module.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingCompat_module.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingModuleViaSwf.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingModuleViaSwf.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingModuleViaSwf.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_module.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_module.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_module.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfModule_swf@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwfViaModule@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf_loader.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf_loader.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingSwf_loader.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module@mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module%40mac.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMergingVariousSelectors_module@mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module2006.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module2006.png?rev=1369978&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/baselines/styleMerging_module2006.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="App6.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMerging" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+
+			<Pause timeout="1000" />
+			<CompareBitmap url="../merging/baselines/$testID.png" target="appPanel"/>
+			<CompareBitmap url="../merging/baselines/$testID_module.png" target="mod_loader"/>
+		    </body>
+		</TestCase>
+
+		<TestCase testID="styleMergingChain" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.changeModule();"  waitTarget="mod_loader" waitEvent="ready" />
+<Pause timeout="1000" />
+			<Pause timeout="1000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID_module.png" target="mod_loader"/>
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.mxml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,40 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm ModuleAppSeven.swf
+rm ModuleAppEight.swf
+rm ModuleAppNine.swf
+if (! [ -e ModuleAppSeven.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true ModuleAppSeven.mxml
+  
+fi
+if (! [ -e ModuleAppEight.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true ModuleAppEight.mxml
+  
+fi
+
+if (! [ -e ModuleAppNine.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true ModuleAppNine.mxml
+  
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,59 @@
+<?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="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CSS_SelectorApp2006.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMerging2006" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<Pause timeout="1000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID.png" target="groupId" numColorVariances="6" ignoreMaxColorVariance="true"/>
+		    </body>
+		</TestCase>
+
+		<TestCase testID="styleMerging_module2006" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+
+			<Pause timeout="2000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID.png" target="mod_loader" numColorVariances="6" ignoreMaxColorVariance="true"/>
+		    </body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,27 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm CSS_SelectorModule2006.swf
+
+if (! [ -e CSS_SelectorModule2006.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true CSS_SelectorModule2006.mxml 
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMerging2006.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,70 @@
+<?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="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="AppLoadsSwfLoaderLoadsModule.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMergingModuleViaSwf" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+		    	<RunCode code="application.iniit();"  waitTarget="swf_loader" waitEvent="complete" />
+			<!-- todo: need try to use waitForEvent 
+			<RunCode code="application.iniit();"/>
+			<WaitForEvent  eventName="moduleAppNineLoaded" target="swf_loader.content.getChildAt(0).mod_loader.child" timeout="2000" />
+			-->
+
+			<Pause timeout="2500" />
+			<CompareBitmap url="../merging/baselines/$testID.png" target="swf_loader" numColorVariances="6" ignoreMaxColorVariance="true" />
+			</body>
+		</TestCase>
+
+		
+		<TestCase testID="styleMergingSwfViaModule" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			
+		        <RunCode code="application.iniit2();"  waitTarget="mod_loader" waitEvent="ready" />
+
+			<Pause timeout="2000" />
+			
+	<CompareBitmap url="../merging/baselines/" target="mod_loader" numColorVariances="6" ignoreMaxColorVariance="true">
+
+			        <ConditionalValue os="mac" />
+			    </CompareBitmap>
+		    
+			</body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,41 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm SwfLoaderAppLoadsModule.swf
+rm ModuleAppLoadsSwfLoader.swf
+rm ModuleAppNine.swf
+
+if (! [ -e SwfLoaderAppLoadsModule.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true SwfLoaderAppLoadsModule.mxml
+  
+fi
+if (! [ -e ModuleAppLoadsSwfLoader.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true ModuleAppLoadsSwfLoader.mxml
+  
+fi
+
+if (! [ -e ModuleAppNine.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true ModuleAppNine.mxml
+  
+fi

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingModuleViaSwf.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="App7.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMergingSwf" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="swf_loader" waitEvent="complete" />
+<Pause timeout="1000" />
+			<Pause timeout="1000" />
+			<CompareBitmap url="../merging/baselines/$testID.png" target="appPanel"/>
+			<CompareBitmap url="../merging/baselines/$testID_loader.png" target="swf_loader"/>
+		    </body>
+		</TestCase>
+
+		<TestCase testID="styleMergingChainSwf" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.changeSwf();"  waitTarget="swf_loader" waitEvent="complete" />
+<Pause timeout="1000" />
+			<Pause timeout="1000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID_loader.png" target="swf_loader"/>
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,34 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm SwfLoaderAppOne.swf
+rm SwfLoaderAppTwo.swf
+
+if (! [ -e SwfLoaderAppOne.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true SwfLoaderAppOne.mxml
+  
+fi
+if (! [ -e SwfLoaderAppTwo.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true SwfLoaderAppTwo.mxml
+  
+fi

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwf.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwfModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwfModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwfModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingSwfModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,116 @@
+<?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="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="App8.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<fx:Script>
+
+	<![CDATA[
+
+		public static function init(o:DisplayObject):void
+
+		{
+
+		}
+
+		]]>
+
+	</fx:Script>
+
+
+
+	<fx:Metadata>
+
+		<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</fx:Metadata>
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+	<testCases>
+
+		<TestCase testID="styleMergingSwfModule" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+
+		    <body>		
+			
+
+		    <RunCode code="application.iniit();"  waitTarget="swf_loader" waitEvent="complete" />
+
+			
+
+		    <Pause timeout="1000" />
+			
+
+		    <CompareBitmap url="../merging/baselines/$testID.png" target="appPanel" numColorVariances="4" ignoreMaxColorVariance="true" >
+
+		        <ConditionalValue os="mac" />
+
+		    </CompareBitmap>
+
+		    </body>
+
+		</TestCase>
+
+
+		<TestCase testID="styleMergingSwfModule_module" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+
+		    <body>		
+			
+
+		    <CompareBitmap url="../merging/baselines/$testID.png" target="mod_loader" numColorVariances="4"  ignoreMaxColorVariance="true"/>			
+
+	
+	    </body>
+
+		</TestCase>
+
+
+		<TestCase testID="styleMergingSwfModule_swf" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+
+		    <body>		
+			
+
+		        <CompareBitmap url="../merging/baselines/$testID.png" target="swf_loader" numColorVariances="4"  ignoreMaxColorVariance="true">
+
+
+		            <ConditionalValue os="mac" />
+
+		        </CompareBitmap>
+
+		    </body>
+
+		</TestCase>
+
+
+	</testCases>
+
+
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,86 @@
+<?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="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CSS_Selectors.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMergingVariousSelectors" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			
+		        <Pause timeout="1000" />
+			    <CompareBitmap url="../merging/baselines/" target="groupId" numColorVariances="6" ignoreMaxColorVariance="true">
+			        <ConditionalValue os="mac" />
+			    </CompareBitmap>
+
+		    
+			</body>
+		</TestCase>
+
+		
+		<TestCase testID="styleMergingVariousSelectors_module" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			
+		        <RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+
+			
+		        <Pause timeout="2000" />
+			
+	<CompareBitmap url="../merging/baselines/" target="mod_loader"  numColorVariances="12" ignoreMaxColorVariance="true">
+			        <ConditionalValue os="mac" />
+			    </CompareBitmap>
+		    
+			</body>
+		</TestCase>
+
+		
+		<TestCase testID="checkModuleWithIsolateStylesOff" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			
+		        <RunCode code="application.unload();"  waitTarget="mod_loader" waitEvent="unload" />
+			
+		        <RunCode code="application.iniit2();"  waitTarget="mod_loader" waitEvent="ready" />
+			
+		        <Pause timeout="2000" />
+			    <CompareBitmap url="../merging/baselines/" target="mod_loader"  numColorVariances="12" ignoreMaxColorVariance="true">
+			        <ConditionalValue os="mac" />
+			    </CompareBitmap>
+
+		    
+			</body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,34 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm CSS_SelectorModule.swf
+rm IsolateStylesModule.swf
+
+if (! [ -e IsolateStylesModule.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true -isolate-styles=false IsolateStylesModule.mxml
+  
+fi
+if (! [ -e CSS_SelectorModule.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true CSS_SelectorModule.mxml
+  
+fi

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingVariousCssSelectors.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,59 @@
+<?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="PerModuleStyles/merging/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CSS_SelectorsCompat.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="styleMergingCompat" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<Pause timeout="1000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID.png" target="groupId" numColorVariances="6" ignoreMaxColorVariance="true"/>
+		    </body>
+		</TestCase>
+
+		<TestCase testID="styleMergingCompat_module" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+
+			<Pause timeout="2000" />
+			
+			<CompareBitmap url="../merging/baselines/$testID.png" target="mod_loader" numColorVariances="6" ignoreMaxColorVariance="true"/>
+		    </body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,27 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm CSS_SelectorModuleCompat.swf
+
+if (! [ -e CSS_SelectorModuleCompat.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true -compatibility-version=3.0.0 CSS_SelectorModuleCompat.mxml 
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/merging/checkMergingWithCompatFlag.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="PerModuleStyles/regressions/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="RichEditableTextApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="checkRTE" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+						
+			<DispatchMouseClickEvent target="btn1" waitEvent="ready" waitTarget="module1Loader" />
+			<DispatchMouseClickEvent target="btn2" waitEvent="ready" waitTarget="module2Loader" />
+<Pause timeout="1000" />
+			<AssertPropertyValue propertyName="text" target="module2Loader.child.ti" value="loaded"/>
+			<AssertPropertyValue propertyName="text" target="module1Loader.child.ti" value="loaded"/>
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,36 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm RichEditableTextModule1.swf
+rm RichEditableTextModule2.swf
+ 
+if (! [ -e RichEditableTextModule1.swf])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true RichEditableTextModule1.mxml
+  
+fi
+
+ 
+if (! [ -e RichEditableTextModule2.swf])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true RichEditableTextModule2.mxml
+  
+fi

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_22461.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_23081.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_23081.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_23081.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_23081.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="PerModuleStyles/regressions/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="SwfLoaderTest.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="checkRTE_SwfLoader" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+						
+			<DispatchMouseClickEvent target="btn1" waitEvent="complete" waitTarget="swfloader1" />
+			<Pause timeout="1000" />
+			<AssertPropertyValue propertyName="label" target="swfloader1.content.document.buttonId" value="Test1"/>
+			
+			<DispatchMouseClickEvent target="btn2" waitEvent="complete" waitTarget="swfloader1" />
+			<Pause timeout="1000" />
+			<AssertPropertyValue propertyName="label" target="swfloader1.content.document.buttonId" value="Test"/>
+
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25376.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25376.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25376.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25376.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,45 @@
+<?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="PerModuleStyles/regressions/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="SetStyleProblem.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="checkRTE_setStyle" keywords="[Styles,Module]" description="Test to make sure no RTE.." >
+		    <body>		
+					<AssertPropertyValue propertyName="label" target="buttonId" value="Test1"/>
+		    </body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,47 @@
+<?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="PerModuleStyles/regressions/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="SetStyleProblemInSubApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="checkRTE_setStyleSubApp" keywords="[Styles,Module]" description="Test to make sure no RTE.." >
+		    <body>		
+		    		<RunCode code="application.iniit();"  waitTarget="swf_loader" waitEvent="complete" />
+		    		<Pause timeout="1000" />
+					<AssertPropertyValue propertyName="label" target="swf_loader.content.document.buttonId" value="Test1"/>
+		    </body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,29 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm SetStyleProblemSubApp.swf
+ 
+if (! [ -e SetStyleProblemSubApp.swf ])
+then
+   echo $MUSTELLA_DIR
+   $SDK_DIR/bin/mxmlc -static-rsls=true -source-path=$MUSTELLA_DIR/tests/PerModuleStyles/SWFs SetStyleProblemSubApp.mxml 
+  
+fi

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/regressions/SDK_25444.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,57 @@
+<?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="PerModuleStyles/styleManager/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CurrentStyleManagerApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="checkTopLevelStyleManager" keywords="[Styles,Module]" description="Test to make sure getStyleDeclaration return local only styles" >
+		    <body>	
+			<AssertPropertyValue target="myStyleManager" propertyName="parent" value="null" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="checkModuleStyleManager" keywords="[Styles,Module]" description="Test to make sure getStyleDeclaration return local only styles" >
+		    <body>	
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />	
+			<Pause timeout="1000" />		
+			
+			<AssertMethodValue method="value=application.findModuleStyleManager();" valueExpression="value=application.mod_loader.child.moduleList.styleManager" />
+			<AssertMethodValue method="value=application.findParentForModuleStyleManager();" valueExpression="value=application.myStyleManager" />
+			
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,28 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm StyleMgrModule.swf
+ 
+if (! [ -e StyleMgrModule.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true StyleMgrModule.mxml
+  
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,52 @@
+<?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="PerModuleStyles/styleManager/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CurrentStyleManagerApp2.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="testModuleStyleManager" keywords="[Styles,Module]" description="Test to make sure getStyleDeclaration return local only styles" >
+		    <body>	
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />	
+			<Pause timeout="1000" />		
+			<DispatchMouseClickEvent target="mod_loader.child.checkTopLevelStyleManager" waitEvent="click" waitTarget="mod_loader.child.checkTopLevelStyleManager" />
+			<AssertPropertyValue target="mod_loader.child.result" propertyName="text" value="pass" />
+
+			<DispatchMouseClickEvent target="mod_loader.child.checkModuleStyleManager" waitEvent="click" waitTarget="mod_loader.child.checkModuleStyleManager" />
+			<AssertPropertyValue target="mod_loader.child.result" propertyName="text" value="pass" />
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,28 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm StyleMgrModule2.swf
+ 
+if (! [ -e StyleMgrModule2.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true StyleMgrModule2.mxml
+  
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager2.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,57 @@
+<?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="PerModuleStyles/styleManager/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="CurrentStyleManagerApp3.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="testTopLevelStyleManager" keywords="[Styles,Module]" description="Test to make sure getStyleDeclaration return local only styles" >
+		    <body>	
+			<AssertPropertyValue target="myStyleManager" propertyName="parent" value="null" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="testModuleStyleManager" keywords="[Styles,Module]" description="Test to make sure getStyleDeclaration return local only styles" >
+		    <body>	
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />	
+			<Pause timeout="1000" />		
+			
+			<AssertMethodValue method="value=application.findModuleStyleManager();" valueExpression="value=application.mod_loader.child.moduleList.styleManager" />
+			<AssertMethodValue method="value=application.findParentForModuleStyleManager();" valueExpression="value=null" />
+			
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.sh?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.sh (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.sh Mon Aug  6 20:22:48 2012
@@ -0,0 +1,28 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+cd ../SWFs/assets
+rm StyleMgrModule3.swf
+ 
+if (! [ -e StyleMgrModule3.swf ])
+then
+   $SDK_DIR/bin/mxmlc -static-rsls=true -compatibility-version=3.0.0 StyleMgrModule3.mxml
+  
+fi
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/styleManager/currentStyleManager3.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message