incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [13/34] - in /incubator/flex/trunk/mustella/tests/apollo: ./ DragManager/ DragManager/SWFs/ DragManager/SWFs/assets/ DragManager/SWFs/comps/ DragManager/Spark/ DragManager/Spark/baselines/ FileComboBox/ FileComboBox/SWFs/ FileCombo...
Date Mon, 06 Aug 2012 20:51:43 GMT
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_basiclayout.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_basiclayout.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_basiclayout.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_basiclayout.mxml Mon Aug  6 20:51:08 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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+    }                    
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>    
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    	 import mx.core.FlexGlobals;
+    	 import spark.components.Window;
+   
+	 import comps.*;
+	
+	
+    ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="Window_integration_basiclayout_1" keywords="[Window,integration,basiclayout]" description="verify window with basicLayout without width/height set, it uses default width, height">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <!-- create a window without set size, the window component has no size set either, so 
+                initial display is the default size for window
+                -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowChildSizeDefault,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+            	<SetProperty propertyName="width" target="windowObj" value="115" waitEvent="updateComplete"/>
+                <MyCompareBitmap target="windowObj" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body>
+        </TestCase>
+
+        <TestCase testID="Window_integration_basiclayout_2" keywords="[Window,integration,basiclayout]" description="verify window with basicLayout without width/height set, resize the window">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <!-- create a window with size set, the window component has no size set either, so 
+                initial display is the default size for window
+                -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowChildSizeDefault,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+                <SetProperty target="windowObj" propertyName="width" value="300" waitTarget="windowObj" waitEvent="updateComplete"/>
+                <SetProperty target="windowObj" propertyName="height" value="300" waitTarget="windowObj"  waitEvent="updateComplete"/>
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <MyCompareBitmap target="windowObj" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body>
+        </TestCase>
+
+
+        <TestCase testID="Window_integration_basiclayout_3" keywords="[Window,integration,basiclayout]" description="verify window with basicLayout, its children with default size should be positioned, layout correctly">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <!-- create a window with size set, the window component has no size set either,
+                children wrapped insize of a group which set explict size, verify children should be based on the group, not window
+                -->
+            	<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowChildSizeExplicitSet,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+                <SetProperty target="windowObj" propertyName="width" value="400" waitTarget="windowObj" waitEvent="updateComplete"/>
+                <SetProperty target="windowObj" propertyName="height" value="300" waitTarget="windowObj"  waitEvent="updateComplete"/>
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <MyCompareBitmap target="windowObj" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body> 
+        </TestCase>
+
+
+
+        <TestCase testID="Window_integration_basiclayout_4" keywords="[Window,integration,basiclayout]" description="verify window with basicLayout without width.height set, resize the window">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <!-- create a window with size set, the window component has no size set either,
+                children wrapped insize of a group which NO explict size, verify children should be based on the window
+                -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowSizeSet,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+                <SetProperty target="windowObj" propertyName="width" value="400" waitTarget="windowObj" waitEvent="updateComplete"/>
+                <SetProperty target="windowObj" propertyName="height" value="300" waitTarget="windowObj"  waitEvent="updateComplete"/>
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <MyCompareBitmap target="windowObj" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+
+    </testCases>
+        
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_module.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_module.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_module.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_module.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,114 @@
+<?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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+
+
+    <!-- this set of lines form a template that must be in each unit test -->
+
+    <mx:Script>
+
+    <![CDATA[
+
+    public static function init(o:DisplayObject):void
+
+    {
+
+    }                    
+
+    ]]>
+
+    </mx:Script>
+
+    <mx:Metadata>
+
+    <![CDATA[
+
+        [Mixin]
+
+    ]]>
+
+    </mx:Metadata>    
+
+    <!-- end of set of lines that must be in each unit test -->
+
+
+
+    <mx:Script>
+
+    <![CDATA[
+
+    	 import mx.core.FlexGlobals;
+
+    	 import spark.components.Window;
+
+    	 import spark.components.WindowedApplication;  
+
+	 import comps.*;
+
+	
+
+	
+
+    ]]>
+
+    </mx:Script>
+
+
+
+    <testCases>
+
+       
+
+        <TestCase testID="Window_integration_module_1" keywords="[Window,integration,module]" description="verify window can load a module">
+
+            <setup>
+
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+                <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithModule,'window1');" waitTarget="" waitEvent="myWindowComplete"/>
+
+                <!-- module should be loaded inside of the window -->
+
+            </setup>
+
+            <body>
+
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="12"/>
+
+                <MyCompareBitmap target="windowObj"  numColorVariances="15" maxColorVariance="20" url="../integration/baselines/$testID.png" mac_url="../integration/baselines/$testID_mac.png" />
+
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+
+            </body> 
+
+        </TestCase>
+
+        
+
+    </testCases>
+
+        
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_multiple_windows.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_multiple_windows.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_multiple_windows.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_multiple_windows.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,100 @@
+<?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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_004.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+    }                    
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>    
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    	 import mx.core.FlexGlobals;
+    	 import spark.components.Window;
+   
+	 import comps.*;
+	
+	 public var booleanVal:Boolean=false;
+			
+	 public function assertValue(expect:Boolean):Boolean
+	 {
+	 	return booleanVal==expect;
+	 }
+    ]]>
+    </mx:Script>
+
+    <testCases>
+       
+
+        <TestCase testID="Window_integration_open_multipleWindows_1" keywords="[Window,integration,multiple]" description="check open multiple windows">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="12"/>
+                <!-- to allow the sub windows creation complete -->
+                <AssertPropertyValue target="subWinObjRef" propertyName="visible" value="true" />
+                <WaitForEvent numExpectedEvents="-1" eventName="subWindowComplete" target="" timeout="2000" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.objInSubWinRef=FlexGlobals.topLevelApplication.myWin.subWinObj.objInSubWin"/>
+                <AssertPropertyValue target="objInSubWinRef" propertyName="visible" value="true" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+
+
+
+        <TestCase testID="Window_integration_close_multipleWindows_2" keywords="[Window,integration,multiple]" description="check close multiple windows">
+            <setup>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="12"/><!-- to allow the sub windows creation complete -->
+                <AssertPropertyValue target="subWinObjRef" propertyName="closed" value="false" />
+                <WaitForEvent numExpectedEvents="-1" eventName="subWindowComplete" target="" timeout="2000" />
+                <RunCode code="FlexGlobals.topLevelApplication.objInSubWinRef=FlexGlobals.topLevelApplication.myWin.subWinObj.objInSubWin"/>
+                <AssertPropertyValue target="objInSubWinRef" propertyName="closed" value="false" />
+                <!-- close the top level window, will also close window created by it as close handler does clean up -->
+                <RunCode code="FlexGlobals.topLevelApplication.myWin.close()" waitTarget="myWin" waitEvent="close" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <AssertPropertyValue target="subWinObjRef" propertyName="closed" value="true" />
+                <RunCode code="FlexGlobals.topLevelApplication.objInSubWinRef=FlexGlobals.topLevelApplication.myWin.subWinObj.objInSubWin"/>
+                <AssertPropertyValue target="objInSubWinRef" propertyName="closed" value="true" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body>
+        </TestCase>
+       
+    </testCases>
+        
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_reparent.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_reparent.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_reparent.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_reparent.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+    }                    
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>    
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    	 import mx.core.FlexGlobals;
+    	 import spark.components.Window;
+   
+	 import comps.*;
+	
+	
+    ]]>
+    </mx:Script>
+
+    <testCases>
+       
+ 	<TestCase testID="Window_integration_reparent_1" keywords="[Window,integration,reparent]" description="reparent components">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.window1=FlexGlobals.topLevelApplication.createAWindowByClass(PlainWindow,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.window1.addElement(FlexGlobals.topLevelApplication.cb)" waitTarget="window1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="6"/><!-- given sometime to allow windows update completed -->
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.window1.owns(FlexGlobals.topLevelApplication.cb)" value="true" />
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.owns(FlexGlobals.topLevelApplication.cb)" value="false" />
+                <CompareBitmap target="window1" url="../integration/baselines/$testID.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+        
+ 	<TestCase testID="Window_integration_reparent_2" keywords="[Window,integration,reparent]" description="reparent components">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.window1=FlexGlobals.topLevelApplication.createAWindowByClass(PlainWindow,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+                <RunCode code="FlexGlobals.topLevelApplication.window2=FlexGlobals.topLevelApplication.createAWindowByClass(PlainWindow,'window2',250);" waitTarget="" waitEvent="myWindowComplete" />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.window1.addElement(FlexGlobals.topLevelApplication.cb)" waitTarget="window1" waitEvent="updateComplete" />
+                <RunCode code="FlexGlobals.topLevelApplication.window2.addElement(FlexGlobals.topLevelApplication.cb)" waitTarget="window2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="6"/><!-- given sometime to allow windows update completed --> 
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.window2.owns(FlexGlobals.topLevelApplication.cb)" value="true" />
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.window1.owns(FlexGlobals.topLevelApplication.cb)" value="false" />
+                <CompareBitmap target="window2" url="../integration/baselines/$testID.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+        
+    </testCases>
+        
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_scroller.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_scroller.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_scroller.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_scroller.mxml Mon Aug  6 20:51:08 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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+    }                    
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>    
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    	 import mx.core.FlexGlobals;
+    	 import spark.components.Window;
+    	 import spark.components.Button;  
+	 import comps.*;
+	
+	 public function addAButton():void
+	 {
+		 var b:Button=new Button();
+	 	 b.name="testButton";
+	 	 b.label="testButton";
+		 b.y=500;
+		 b.x=400;
+		 if (FlexGlobals.topLevelApplication.windowObj!=null)
+		 FlexGlobals.topLevelApplication.windowObj.addElement(b);
+	 }
+    ]]>
+    </mx:Script>
+
+    <testCases>
+       
+ 	<TestCase testID="Window_integration_scroller_1" keywords="[Window,integration,scroller]" description="make window content area scrollable">
+            <setup>
+            	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowWithScroller();" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <MyCompareBitmap  numColorVariances="10" maxColorVariance="10" target="windowObj" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+        
+  	<TestCase testID="Window_integration_scroller_2" keywords="[Window,integration,scroller]" description="make window content area scrollable">
+            <setup>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowWithScroller();" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <!-- the window should have scrollers, then compare images -->
+                <DispatchMouseClickEvent target="windowObj" stageX="600" stageY="500" />
+                <WaitForEffectsToEnd />
+                <!-- hopefully the window should show the Button at (600,500) -->
+                <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+        
+     	<TestCase testID="Window_integration_scroller_3" keywords="[Window,integration,scroller]" description="remove the element causes scroller, verify window should have no scroller">
+            <setup>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowWithScroller();" waitTarget="" waitEvent="myWindowComplete" />
+                <!-- the window should have scrollers, then compare images -->
+                <!-- remove the button from the window caused scrolling -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowObj.removeElementAt(1)" waitTarget="windowObj" waitEvent="updateComplete" />
+            </setup>
+            <body>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <!-- verify the window should not show scroller any more  -->
+                <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+        
+        
+      	<TestCase testID="Window_integration_scroller_4" keywords="[Window,integration,scroller]" description="add an element causes scroller, verify window should have scroller">
+            <setup>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowWithScroller();" waitTarget="" waitEvent="myWindowComplete" />
+                <!-- add a button from the window caused scrolling -->
+                <RunCode code="addAButton();" waitTarget="windowObj" waitEvent="updateComplete" />
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <!-- verify the window should show scroller -->
+                <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>  
+            </body> 
+        </TestCase>
+  
+    </testCases>
+        
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_states.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_states.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_states.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_integration_states.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,182 @@
+<?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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+
+
+    <!-- this set of lines form a template that must be in each unit test -->
+
+    <mx:Script>
+
+    <![CDATA[
+
+    public static function init(o:DisplayObject):void
+
+    {
+
+    }                    
+
+    ]]>
+
+    </mx:Script>
+
+    <mx:Metadata>
+
+    <![CDATA[
+
+        [Mixin]
+
+    ]]>
+
+    </mx:Metadata>    
+
+    <!-- end of set of lines that must be in each unit test -->
+
+
+
+    <mx:Script>
+
+    <![CDATA[
+
+    	 import mx.core.FlexGlobals;
+
+    	 import spark.components.Window;
+
+   
+
+	 import comps.*;
+
+	
+
+	
+
+    ]]>
+
+    </mx:Script>
+
+
+
+    <testCases>
+
+       
+
+ 	<TestCase testID="Window_integration_states_1" keywords="[Window,integration,states]" description="update window.currentState">
+
+	    <setup>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithStates,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj.currentState='showMenu'" waitTarget="windowObj" waitEvent="updateComplete" />
+
+	    </setup>
+
+	    <body>
+
+	    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	        <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png" mac_url="../integration/baselines/$testID_mac.png"  />
+
+	    </body> 
+
+        </TestCase>
+
+        
+
+  	<TestCase testID="Window_integration_states_2" keywords="[Window,integration,states]" description="update window.currentState">
+
+	    <setup>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithStates,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj.currentState='showStatus'" waitTarget="windowObj" waitEvent="updateComplete" />
+
+	    </setup>
+
+	    <body>
+
+	    	<SetStyle target="windowObj" styleName="testStyle3"  waitEvent="updateComplete" waitTarget="windowObj" />
+
+	    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	    	<MyCompareBitmap target="windowObj"  numColorVariances="15" maxColorVariance="20" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" /> 
+
+	    </body> 
+
+        </TestCase>
+
+        
+
+   	<TestCase testID="Window_integration_states_3" keywords="[Window,integration,states]" description="update window.currentState">
+
+	    <setup>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithStates2,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj.getHappySkinState()" />
+
+	    </setup>
+
+	    <body>
+
+	        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	        <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png"  mac_url="../integration/baselines/$testID_mac.png" /> 
+
+	    </body> 
+
+        </TestCase>
+
+        
+
+   	<TestCase testID="Window_integration_states_4" keywords="[Window,integration,states]" description="update window.currentState">
+
+	    <setup>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithStates2,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	        <RunCode code="FlexGlobals.topLevelApplication.windowObj.getSadSkinState()" />
+
+	    </setup>
+
+	    <body>
+
+	        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	        <MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../integration/baselines/$testID.png" mac_url="../integration/baselines/$testID_mac.png"  />
+
+	    </body> 
+
+        </TestCase>
+
+    </testCases>
+
+        
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_popups_test.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_popups_test.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_popups_test.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_popups_test.mxml Mon Aug  6 20:51:08 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="apollo/spark/components/Window/integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+    </mx:Script>
+    <mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+	<![CDATA[
+
+        import mx.core.FlexGlobals;
+        import spark.skins.spark.*;
+        import spark.components.*;
+        import comps.*;
+
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	following tests just basic tests due to DispatchKeyEvent doesn't work
+	alert window test.
+	========================================================
+	-->
+
+	<TestCase testID="popup_alert_test1" keywords="[Window,integration]" description="window pops up alert, then close alert, verify no runtime error." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(WindowWithPopup,'window1')" />
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>        
+		<DispatchMouseClickEvent target="windowObj.btn1" />
+		<WaitForEffectsToEnd />
+	    </setup> 
+	    <body>   <!-- close the alerts --> 		 
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj2=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(WindowWithPopup,'window2')" />
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj2.open(true)" waitTarget="" waitEvent="myWindowComplete"/>        
+		
+		<DispatchMouseClickEvent target="windowObj2.btn1" />
+		<WaitForEffectsToEnd />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		
+		<DispatchMouseClickEvent target="windowObj2.curAlert.mx_internal:alertForm.mx_internal:buttons.0" localX="3" localY="3" />
+		<WaitForEffectsToEnd />
+		
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()" />
+		
+		<DispatchMouseClickEvent target="windowObj.curAlert.mx_internal:alertForm.mx_internal:buttons.0" localX="3" localY="3" />
+		<WaitForEffectsToEnd />
+	
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<!--
+
+	========================================================
+	menuBar in window test.
+	========================================================
+	-->
+
+	<TestCase testID="popup_menu_test1" keywords="[Window,integration]" description="window has menu, click menuBar, verify no runtime error." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithPopup,'window1')"  waitTarget="" waitEvent="myWindowComplete"/>        
+
+	    </setup> 
+	    <body>    	
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		<DispatchMouseClickEvent target="windowObj.menuBar1" />
+		
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/><!-- wait for sub menu from menuBar show up -->
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<!-- 
+		<DispatchMouseEvent type="mouseDown" localX="55" localY="30" target="windowObj.menuBar1"  waitTarget="windowObj.menuBar1" waitEvent="mouseDown" />
+		<DispatchMouseEvent type="mouseUp" localX="55" localY="30" target="windowObj.menuBar1"  waitTarget="windowObj.menuBar1" waitEvent="mouseUp" />
+                -->
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/getCurrentSkinState_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test3_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElementAt_test4_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_addElement_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test3_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test4_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test5_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_createDeferredContent_test6_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeAllElements_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test3_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElementAt_test4_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test3_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_removeElement_test4_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test1_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/baselines/method_restore_test2_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_activate_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_activate_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_activate_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_activate_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,69 @@
+<?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="apollo/spark/components/Window/methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+        import mx.core.FlexGlobals;
+        import spark.components.*;
+
+	]]>
+    </mx:Script>
+	
+    <testCases>
+
+	<!--
+	========================================================
+	activate method
+	- There's not much to do here in mustella-ville, since
+	you have to click on another application to have the
+	method really do something.  But let's just call it
+	and make sure it doesn't do something catastrophic.
+	========================================================
+	-->
+        <TestCase testID="activate_test1" keywords="[Window,activate]" description="Call activate.  There's nothing to verify in Mustella; just make sure nothing catastrophic happened by asserting the height." >
+            <setup>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>
+            </setup>
+            <body>
+                <AssertMethodValue method="value = FlexGlobals.topLevelApplication.windowObj.activate()" value="null" />
+                <!-- the window will have default width/height=100/100 -->
+                <AssertPropertyValue target="windowObj" propertyName="height" valueExpression="value = 100" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_createDeferredContent.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_createDeferredContent.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_createDeferredContent.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/methods/window_methods_createDeferredContent.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,157 @@
+<?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="apollo/spark/components/Window/methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_001.mxml">
+
+	
+<!-- this set of lines form a template that must be in each unit test -->
+	
+    <mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+    </mx:Script>
+    <mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+    </mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+	<![CDATA[
+	 import mx.core.FlexGlobals;
+	 import spark.components.Window;
+	 import comps.*;
+	 public var className:Class;
+	]]>
+    </mx:Script>
+
+	
+    <testCases>
+	<!--
+	========================================================
+	Test method createDeferredContent
+	========================================================
+	-->
+	<TestCase testID="method_createDeferredContent_test1" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=none, contents created in the method will not be created">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'none')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+            	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+
+
+	<TestCase testID="method_createDeferredContent_test2" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=none, contents created in the method will not be created until the method is invoked">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'none')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <RunCode code="FlexGlobals.topLevelApplication.windowWithDefferContent.createDeferredContent();" waitTarget="windowWithDefferContent" waitEvent="updateComplete" /> 	
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+	
+	
+	<TestCase testID="method_createDeferredContent_test3" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=auto, contents created in the method will be created automatically">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'auto')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+
+	<TestCase testID="method_createDeferredContent_test4" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=auto, contents created in the method will be created, calling createDeferredContent() again should create a new content">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'auto')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <RunCode code="className(FlexGlobals.topLevelApplication.windowWithDefferContent).yValue=200"/>
+                <!-- this will create another button, but yValue=200 instead of default=100 -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowWithDefferContent.createDeferredContent();" waitTarget="windowWithDefferContent" waitEvent="updateComplete" /> 	
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+	
+	<TestCase testID="method_createDeferredContent_test5" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=all, contents created in the method will be created automatically">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'all')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+
+	<TestCase testID="method_createDeferredContent_test6" keywords="[Window,methods,createDeferredContent]" 
+		description="a window overrides createDeferredContent(), however creationPolicy=all, contents created in the method will be created, calling createDeferredContent() again should create a new content">
+
+            <setup> 
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+                <RunCode code="className=WindowWithDeferredContent;"/>
+                <RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(className,'all')" waitTarget="" waitEvent="myWindowComplete" />
+            </setup>
+            <body>
+                <RunCode code="className(FlexGlobals.topLevelApplication.windowWithDefferContent).yValue=200"/>
+                <!-- this will create another button, but yValue=200 instead of default=100 -->
+                <RunCode code="FlexGlobals.topLevelApplication.windowWithDefferContent.createDeferredContent();" waitTarget="windowWithDefferContent" waitEvent="updateComplete" /> 	
+                <MyCompareBitmap target="windowWithDefferContent" url="../methods/baselines/$testID.png" mac_url="../methods/baselines/$testID_mac.png"  />
+                <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+                <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            </body>
+	</TestCase>
+	
+</testCases>
+
+</UnitTester>



Mime
View raw message