flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [12/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/SWFs/window_mirroring_001.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_001.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_001.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_001.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,288 @@
+<?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.
+
+-->
+<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx"
+	xmlns:comps="comps.*"
+    	xmlns:local="*" close="closeAllChildWindow()"
+    	direction="rtl" layoutDirection="rtl">
+    <fx:Style>
+	@namespace s "library://ns.adobe.com/flex/spark";
+	@namespace mx "library://ns.adobe.com/flex/mx";
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+		    fontWeight: bold;           
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+		    fontStyle: italic;          
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+		s|WindowedApplication{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+		s|Window{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+	        s|TitleBar{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|Button{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+	        s|Label{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}	
+ 		mx|Label{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|DataGrid{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+		global{
+		    fontFamily: EmbeddedVerdana;
+		    fontAntiAliasType: normal;
+		}
+	</fx:Style>
+	<fx:Script>
+	    <![CDATA[
+		import spark.components.Window;
+		import 	flash.display.NativeWindow;
+		import mx.core.FlexGlobals;
+		import spark.components.windowClasses.TitleBar;
+		import comps.*;
+		import flash.system.Capabilities;
+		import spark.components.WindowedApplication; 
+		import mx.events.FlexEvent;
+		public var childWindowList:Array=new Array();
+
+		public var myWin:MyWindow,windowObj:Window;
+
+		 
+
+		public function createAWindow(layoutDir:String="rtl"):void
+		{
+		    myWin=new MyWindow();
+		    myWin.title="window test";
+		    myWin.titleBar=new TitleBar();
+		    myWin.titleBar.title="titlebar";
+		    myWin.width=300;
+		    myWin.height=350;
+		    myWin.minimizable=true;
+		    myWin.maximizable=true;
+		    myWin.resizable=true;
+		    myWin.systemChrome="standard";
+		    myWin.transparent=false;
+		    myWin.type="normal";
+		    if (layoutDir!=null)
+		    {
+			myWin.layoutDirection=layoutDir;
+			myWin.setStyle("direction",layoutDir);
+		    }
+		    childWindowList.push(myWin);
+		    myWin.addEventListener("creationComplete", handleNewWindowCreationComplete);
+		    myWin.open(true);
+
+		}	
+		public function createAWindowByClass(c:Class, layoutDir:String="rtl", yPos:Number=100):Window
+		{
+			windowObj=new c();
+			c(windowObj).y=yPos;
+			windowObj.title="test window";
+			windowObj.systemChrome="standard";
+			if (layoutDir!=null)
+			{
+				windowObj.layoutDirection=layoutDir;
+				windowObj.setStyle("direction",layoutDir);
+			}
+			childWindowList.push(windowObj);
+			windowObj.addEventListener("creationComplete", handleNewWindowCreationComplete);
+			windowObj.open(true);
+			return windowObj;
+		}
+		public function createAWindowWithScroller(layoutDir:String="rtl"):void
+		{
+			windowObj=new WindowWithClippedContent();
+			windowObj.setStyle("skinClass", comps.SkinWithScroller);
+			windowObj.title="scroller window 1";
+			windowObj.systemChrome="standard";
+			if (layoutDir!=null)
+			{
+				windowObj.layoutDirection=layoutDir;
+				windowObj.setStyle("direction",layoutDir);
+			}
+			childWindowList.push(windowObj);
+			windowObj.addEventListener("creationComplete", handleNewWindowCreationComplete);
+			windowObj.open(true);
+		}
+		public function handleNewWindowCreationComplete(e:FlexEvent):void
+		{
+		    e.currentTarget.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+		    dispatchEvent(new FlexEvent("myWindowComplete"));
+		}
+
+
+		
+
+
+		public function updateWindow():void
+		{
+		    myWin.width=400;
+		    myWin.height=400;
+		    myWin.title="updated title";
+		    dispatchEvent(new FlexEvent("updateComplete"));
+		}
+		public function verifyNativeWindowUpdate():String
+		{
+		    var errMsg:String="";
+		    var current_os:String=Capabilities.os.toLowerCase();
+		    var expect_width:Number=192, expect_height:Number=166;
+		    if (current_os.indexOf("mac")>-1)
+		    {
+			expect_width=200;
+			expect_height=178;
+		    }else if (current_os.indexOf("linux")>-1)
+		    {
+		    }
+		    trace("myWin.width="+myWin.width+";myWin.height="+myWin.height);
+		    
+		    if (myWin.width!=expect_width)
+			errMsg+="width not expected, myWin.width="+myWin.width+";expect="+expect_width+"\n";
+		    if (myWin.height!=expect_height)
+			errMsg+="height not expected, myWin.height="+myWin.height+";expect="+expect_height+"\n";
+		    if( myWin.title=="test window")
+		       errMsg+="title not expected, title should be changed in systemchrome skin, actual="+myWin.title;
+		    return errMsg;
+		}
+
+
+		public function closeAllChildWindow():void
+		{
+
+			var win:Window;
+		    while(childWindowList.length>0)
+		    {
+				win=Window(childWindowList.pop());
+				if (win!=null && !win.closed)
+					win.close();
+		    }
+
+		}
+		/**
+		*   compare the actual value with expected value based on os.  It returns an error string if comparison fails, otherwise an empty string.
+		*   description: a string you can use to describe what is the test for, you can set it to null.
+		*   actualVal: actual value used to compare for
+		*   expectWinVal: expected value on window os
+		*   expectMacVal: expected value on mac os
+		*   expectLinuxVal: expected value on linux os 
+		*/
+		public function assertValueBaseOnOS(description:String,actualVal:*,expectWinVal:*=null,expectMacVal:*=null,expectLinuxVal:*=null):String
+		{
+			var errMsg:String="";
+			var current_os:String=Capabilities.os.toLowerCase();
+			if (current_os.indexOf("window")>-1)
+			{
+				if (actualVal!=expectWinVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectWinVal;
+			}else if (current_os.indexOf("mac")>-1)
+			{
+				if (actualVal!=expectMacVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectMacVal;
+			}else if (current_os.indexOf("linux")>-1)
+			{
+				if (actualVal!=expectLinuxVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectLinuxVal;
+
+			}else {
+				errMsg+="on os="+current_os+" isn't supported";
+			}
+			if (description!=null && errMsg!="")
+				errMsg=description+" "+errMsg;
+			return errMsg;
+		}
+	    ]]>
+	</fx:Script>
+</s:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_002.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_002.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_002.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_mirroring_002.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx"
+	xmlns:comps="comps.*"
+    	xmlns:local="*" close="closeAllChildWindow()"
+    	direction="rtl" layoutDirection="rtl">
+        <fx:Style source="./assets/MyWindowStyle2.css" />
+	<fx:Script>
+	    <![CDATA[
+		import spark.components.Window;
+		import 	flash.display.NativeWindow;
+		import mx.core.FlexGlobals;
+		import spark.components.windowClasses.TitleBar;
+		import comps.*;
+		import flash.system.Capabilities;
+		import spark.components.WindowedApplication; 
+		import mx.events.FlexEvent;
+		public var childWindowList:Array=new Array();
+
+		public var myWin:MyWindow;
+
+		public var windowObj:Window;
+
+		public function createAWindow(layoutDir:String="rtl"):void
+		{
+		    myWin=new MyWindow();
+		    myWin.title="window test";
+		    myWin.titleBar=new TitleBar();
+		    myWin.titleBar.title="titlebar";
+		    myWin.width=300;
+		    myWin.height=350;
+		    myWin.minimizable=true;
+		    myWin.maximizable=true;
+		    myWin.resizable=true;
+		    myWin.systemChrome="standard";
+		    myWin.transparent=false;
+		    myWin.type="normal";
+		    if (layoutDir!=null)
+		    {
+			myWin.layoutDirection=layoutDir;
+			myWin.setStyle("direction",layoutDir);
+		    }
+		    childWindowList.push(myWin);
+		    myWin.addEventListener("creationComplete", handleNewWindowCreationComplete);
+		    myWin.open(true);
+
+		}	
+		public function createAWindowByClass(c:Class, layoutDir:String="rtl", yPos:Number=100):Window
+		{
+			windowObj=new c();
+			c(windowObj).y=yPos;
+			windowObj.title="test window";
+			windowObj.systemChrome="standard";
+			if (layoutDir!=null)
+			{
+				windowObj.layoutDirection=layoutDir;
+				windowObj.setStyle("direction",layoutDir);
+			}
+			childWindowList.push(windowObj);
+			windowObj.addEventListener("creationComplete", handleNewWindowCreationComplete);
+			windowObj.open(true);
+			return windowObj;
+		}
+		public function createAWindowWithScroller(layoutDir:String="rtl"):void
+		{
+			windowObj=new WindowWithClippedContent();
+			windowObj.setStyle("skinClass", comps.SkinWithScroller);
+			windowObj.title="scroller window 1";
+			windowObj.systemChrome="standard";
+			if (layoutDir!=null)
+			{
+				windowObj.layoutDirection=layoutDir;
+				windowObj.setStyle("direction",layoutDir);
+			}
+			childWindowList.push(windowObj);
+			windowObj.addEventListener("creationComplete", handleNewWindowCreationComplete);
+			windowObj.open(true);
+		}
+		public function handleNewWindowCreationComplete(e:FlexEvent):void
+		{
+		    e.currentTarget.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+		    dispatchEvent(new FlexEvent("myWindowComplete"));
+		}
+
+
+		public function checkNativeWindow():String
+		{
+		    var current_os:String=Capabilities.os.toLowerCase();
+		    var expect_width:Number=308, expect_height:Number=384;
+		    if (current_os.indexOf("mac")>-1)
+		    {
+		    	expect_width=300;
+		    	expect_height=372;
+		    }else if (current_os.indexOf("linux")>-1)
+		    {
+		    }
+		    var nw:NativeWindow=myWin.nativeWindow;
+		    var errMsg:String="";
+		    if (nw.width!=expect_width)
+			errMsg+="width not expected, nw.width="+nw.width+";expect="+expect_width+"\n";
+		    if (nw.height!=expect_height)
+			errMsg+="height not expected, nw.height="+nw.height+";expect="+expect_height+"\n";
+		    if (nw.resizable!=myWin.resizable)
+			errMsg+="resizable not expected, nw.resizable="+nw.resizable+";expect="+myWin.resizable+"\n";
+		    if (nw.minimizable!=myWin.minimizable)
+			errMsg+="minimizable not expected, nw.minimizable="+nw.minimizable+";expect="+myWin.minimizable+"\n";
+		    if (nw.maximizable!=myWin.maximizable)
+			errMsg+="maximizable not expected, nw.maximizable="+nw.maximizable+";expect="+myWin.maximizable+"\n";
+		    if (nw.type!=myWin.type)
+			errMsg+="type not expected, nw.type="+nw.type+";expect="+myWin.type+"\n";
+		    if (nw.systemChrome!=myWin.systemChrome)
+		       errMsg+="systemChrome not expected, nw.systemChrome="+nw.systemChrome+";expect="+myWin.systemChrome+"\n";
+		    return errMsg;
+		}
+
+
+		public function updateWindow():void
+		{
+		    myWin.width=400;
+		    myWin.height=400;
+		    myWin.title="updated title";
+		    dispatchEvent(new FlexEvent("updateComplete"));
+		}
+		public function verifyNativeWindowUpdate():String
+		{
+		    var errMsg:String="";
+		    var current_os:String=Capabilities.os.toLowerCase();
+		    var expect_width:Number=192, expect_height:Number=166;
+		    if (current_os.indexOf("mac")>-1)
+		    {
+			expect_width=200;
+			expect_height=178;
+		    }else if (current_os.indexOf("linux")>-1)
+		    {
+		    }
+		    trace("myWin.width="+myWin.width+";myWin.height="+myWin.height);
+		    
+		    if (myWin.width!=expect_width)
+			errMsg+="width not expected, myWin.width="+myWin.width+";expect="+expect_width+"\n";
+		    if (myWin.height!=expect_height)
+			errMsg+="height not expected, myWin.height="+myWin.height+";expect="+expect_height+"\n";
+		    if( myWin.title=="test window")
+		       errMsg+="title not expected, title should be changed in systemchrome skin, actual="+myWin.title;
+		    return errMsg;
+		}
+
+
+		public function closeAllChildWindow():void
+		{
+
+			var win:Window;
+		    while(childWindowList.length>0)
+		    {
+				win=Window(childWindowList.pop());
+				if (win!=null && !win.closed)
+					win.close();
+		    }
+
+		}
+		/**
+		*   compare the actual value with expected value based on os.  It returns an error string if comparison fails, otherwise an empty string.
+		*   description: a string you can use to describe what is the test for, you can set it to null.
+		*   actualVal: actual value used to compare for
+		*   expectWinVal: expected value on window os
+		*   expectMacVal: expected value on mac os
+		*   expectLinuxVal: expected value on linux os 
+		*/
+		public function assertValueBaseOnOS(description:String,actualVal:*,expectWinVal:*=null,expectMacVal:*=null,expectLinuxVal:*=null):String
+		{
+			var errMsg:String="";
+			var current_os:String=Capabilities.os.toLowerCase();
+			if (current_os.indexOf("window")>-1)
+			{
+				if (actualVal!=expectWinVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectWinVal;
+			}else if (current_os.indexOf("mac")>-1)
+			{
+				if (actualVal!=expectMacVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectMacVal;
+			}else if (current_os.indexOf("linux")>-1)
+			{
+				if (actualVal!=expectLinuxVal)
+					errMsg+="on os="+current_os+", actual value="+actualVal+";expected value="+expectLinuxVal;
+
+			}else {
+				errMsg+="on os="+current_os+" isn't supported";
+			}
+			if (description!=null && errMsg!="")
+				errMsg=description+" "+errMsg;
+			return errMsg;
+		}
+	    ]]>
+	</fx:Script>
+</s:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_001.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_001.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_001.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_001.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,203 @@
+<?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.
+
+-->
+<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx"
+	xmlns:comps="comps.*"
+    	xmlns:local="*" close="closeAllChildWindow()">
+  
+   <fx:Style>
+	@namespace s "library://ns.adobe.com/flex/spark";
+	@namespace mx "library://ns.adobe.com/flex/mx";
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+		    fontWeight: bold;           
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+		    fontStyle: italic;          
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+		global{
+		    fontFamily: EmbeddedVerdana;
+		    fontAntiAliasType: normal;
+		}
+		s|WindowedApplication{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+		s|Window{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+	        s|TitleBar{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|Button{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|TextArea{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+	        s|Label{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}	
+	        s|CheckBox{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|Label{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|DataGrid{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}	        
+		
+	       .testWindowStyle{
+		    chromeColor:"0xB0C4DE";
+		    contentBackgroundColor:"0xE0FFFF";
+		    focusColor:"0x0000CD";
+		    rollOverColor:"0x808000";
+		    selectionColor:"0x800080";
+		    symbolColor:"0x00FF7F";	
+		}
+    </fx:Style>	
+    
+	<fx:Script>
+	    <![CDATA[
+		import spark.components.Window;
+		import mx.events.FlexEvent;
+		import comps.*;
+
+		public var childWindowList:Array=new Array();
+
+		public var myWin:MyWindowWithContents;
+
+		public function createAWindow():void
+		{
+		    myWin=new MyWindowWithContents();
+		    myWin.systemChrome="standard";
+		    myWin.alwaysInFront=true;
+		    myWin.title="test window";
+
+		    myWin.width=400;
+		    myWin.height=400;
+		    myWin.styleName="testWindowStyle";
+		    childWindowList.push(myWin);
+		    myWin.addEventListener("creationComplete", handleNewWindowCreationComplete);
+		    myWin.open(true);
+		    
+		}	
+
+		public function handleNewWindowCreationComplete(e:FlexEvent):void
+		{
+		    e.target.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+		    dispatchEvent(new FlexEvent("myWindowComplete"));
+		}
+
+
+
+		public function closeAllChildWindow():void
+		{
+
+			var win:Window;
+		    while(childWindowList.length>0)
+		    {
+				win=Window(childWindowList.pop());
+				if (win!=null && !win.closed)
+				{
+					win.close();
+					win=null;
+				}
+		    }
+
+		}
+
+	]]>
+	</fx:Script>
+  <s:Button id="button1" name="button1" label="button1" />
+ 
+</s:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_002.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_002.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_002.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_002.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx"
+	xmlns:comps="comps.*"
+    	xmlns:local="*" close="closeAllChildWindow()">
+  
+  <fx:Style source="./assets/MyWindowStyle1.css" >
+    </fx:Style>	
+    
+	<fx:Script>
+	    <![CDATA[
+		import spark.components.Window;
+		import mx.events.FlexEvent;
+		import comps.*;
+
+		public var childWindowList:Array=new Array();
+
+		public var myWin:MyWindowWithContents;
+
+		public function createAWindow():void
+		{
+		    myWin=new MyWindowWithContents();
+		    myWin.systemChrome="standard";
+		    myWin.alwaysInFront=true;
+		    myWin.title="test window";
+
+		    myWin.width=400;
+		    myWin.height=400;
+		    myWin.styleName="testWindowStyle";
+		    childWindowList.push(myWin);
+		    myWin.addEventListener("creationComplete", handleNewWindowCreationComplete);
+		    myWin.open(true);
+
+		}	
+
+		public function handleNewWindowCreationComplete(e:FlexEvent):void
+		{
+		    myWin.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+		    dispatchEvent(new FlexEvent("myWindowComplete"));
+		}
+
+
+
+		public function closeAllChildWindow():void
+		{
+			var win:Window;
+		    while(childWindowList.length>0)
+		    {
+				win=Window(childWindowList.pop());
+				if (win!=null && !win.closed)
+				{
+					win.close();
+					win=null;
+				}
+		    }
+
+		}
+
+	    ]]>
+	</fx:Script>
+  <s:Button id="button1" name="button1" label="button1" />
+ 
+</s:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_003.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_003.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_003.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/window_style_003.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx"
+	xmlns:comps="comps.*"
+    	xmlns:local="*" close="closeAllChildWindow()">
+  
+   <fx:Style>
+	@namespace s "library://ns.adobe.com/flex/spark";
+	@namespace mx "library://ns.adobe.com/flex/mx";
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+		    fontWeight: bold;           
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+		    fontStyle: italic;          
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+		s|WindowedApplication{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+		s|Window{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+
+	        s|TitleBar{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|Button{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|TextArea{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|TextInput{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|DropDownList{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        s|Label{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}	
+
+	        mx|Label{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|DataGrid{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|MenuBar{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+		
+		global{
+		    fontFamily: EmbeddedVerdana;
+		    fontAntiAliasType: normal;
+		}
+	</fx:Style>
+    
+	<fx:Script>
+	    <![CDATA[
+		import spark.components.Window;
+		import mx.events.FlexEvent;
+		import mx.styles.StyleManager;
+		import flash.events.IEventDispatcher;
+		import mx.events.StyleEvent;
+		import comps.*;
+
+		public var childWindowList:Array=new Array();
+
+		public var myWin:MyWindowWithContents;
+		public var CSSStyleDeclaration:IEventDispatcher;
+
+		public function createAWindow():void
+		{
+		    myWin=new MyWindowWithContents();
+		    myWin.systemChrome="standard";
+		    myWin.alwaysInFront=true;
+		    myWin.title="test window";
+
+		    myWin.width=400;
+		    myWin.height=400;
+		    myWin.open(true);
+		    childWindowList.push(myWin);
+		    myWin.addEventListener("creationComplete", handleNewWindowCreationComplete);
+		    myWin.open(true);
+
+		}	
+
+		public function handleNewWindowCreationComplete(e:FlexEvent):void
+		{
+		    myWin.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+		    dispatchEvent(new FlexEvent("myWindowComplete"));
+		}
+
+		public function loadCSS(): void
+		{
+			StyleManager.loadStyleDeclarations("./assets/MyWindowStyle1.swf");
+		}	
+
+		public function closeAllChildWindow():void
+		{
+
+			var win:Window;
+		    while(childWindowList.length>0)
+		    {
+				win=Window(childWindowList.pop());
+				if (win!=null && !win.closed)
+				{
+					win.close();
+					win=null;
+				}
+		    }
+
+		}
+
+	    ]]>
+	</fx:Script>
+  <s:Button id="button1" name="button1" label="button1" />
+ 
+</s:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/effects/window_effects_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/effects/window_effects_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/effects/window_effects_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/effects/window_effects_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,147 @@
+<?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/effects/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_effect_flexchrome.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;
+	]]>
+	</mx:Script>
+
+	
+<testCases>
+
+
+<!--
+========================================================
+Test closeEffect
+========================================================
+-->
+
+<TestCase testID="effect_close_test1" keywords="[Window,flexChrome,effects,closeEffect]" description="check closeEffect" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="myWin" waitEvent="windowComplete" />
+    </setup>
+    <body>    
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.close()" waitTarget="myWin" waitEvent="close" />  
+        <WaitForEvent numExpectedEvents="-1" eventName="effectStart" target="myWin" timeout="2000" />
+        <WaitForEffectsToEnd />
+        <AssertEvent target="myWin" eventName="effectStart" eventClass="mx.events::EffectEvent" />
+        <!-- has to use Pause in case if the assertion not done, but window is closed early -->
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+    </body>
+</TestCase>
+
+<!--
+========================================================
+Test minimizeEffect
+========================================================
+-->
+
+ 
+<TestCase testID="effect_minimize_test1" keywords="[Window,flexChrome,effects,minimizeEffect]" description="check  minimizeEffect" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+    </setup>
+    <body>
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChanging" /> 
+        <AssertEvent target="myWin" eventName="windowMinimize" eventClass="flash.events::Event" />
+        <WaitForEvent numExpectedEvents="-1" eventName="effectStart" target="myWin" timeout="2000" />
+        <AssertEvent target="myWin" eventName="alphaChanged" eventClass="flash.events::Event" numExpectedEvents="-1"/>
+        <WaitForEffectsToEnd />
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+    </body>
+</TestCase>
+
+<!--
+========================================================
+Test unminimizeEffect
+========================================================
+-->
+
+<TestCase testID="effect_unminimize_test1" keywords="[Window,flexChrome,effects,unminimizeEffect]" description="check unminimizeEffect" >    
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+    </setup>
+    <body>
+    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChanging" />
+        <WaitForEffectsToEnd />
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.restore()" waitTarget="myWin" waitEvent="displayStateChanging" /> 
+        <WaitForEvent numExpectedEvents="-1" eventName="effectStart" target="myWin" timeout="2000" />
+        <AssertEvent target="myWin" eventName="windowUnminimize" eventClass="flash.events::Event" />
+        <AssertEvent target="myWin" eventName="alphaChanged" eventClass="flash.events::Event" numExpectedEvents="-1"/>
+        <WaitForEffectsToEnd />
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+    </body>
+</TestCase>
+
+<TestCase testID="effect_hide_test1" keywords="[Window,flexChrome,effects,hideEffect]" description="check hideEffect" >    
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+    </setup>
+    <body>
+    	<SetProperty target="myWin" propertyName="visible" value="false" waitTarget="myWin" waitEvent="updateComplete" />
+        <WaitForEffectsToEnd />
+        <WaitForEvent numExpectedEvents="-1" eventName="effectStart" target="myWin" timeout="2000" />
+        <AssertEvent target="myWin" eventName="alphaChanged" eventClass="flash.events::Event" numExpectedEvents="-1"/>
+        <WaitForEffectsToEnd />
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()" />
+    </body>
+</TestCase>
+
+<TestCase testID="effect_hide_test2" keywords="[WindowedApplication,flexChrome,effects,hideEffect]" description="check hideEffect" >    
+    <body>
+        <SetProperty target="" propertyName="visible" value="false" waitTarget="" waitEvent="updateComplete" />
+        <WaitForEvent numExpectedEvents="-1" eventName="effectStart" target="" timeout="2000" />
+        <AssertEvent target="" eventName="alphaChanged" eventClass="flash.events::Event" numExpectedEvents="-1"/>
+        <WaitForEffectsToEnd />
+
+    </body>
+</TestCase>
+
+</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,127 @@
+<?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/events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_events_main.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[
+    
+       
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="Window_Event_displayStateChange_1" keywords="[Window,Event, displayStateChange]">
+            <body>
+                <RunCode code="application.resetWindow()"/>
+                <RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+                <RunCode code="application.aw.maximize()" />
+                <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+            </body> 
+        </TestCase> 
+
+        <TestCase testID="Window_Event_displayStateChange_2" keywords="[Window,Event, displayStateChange]">
+            <body>
+                <RunCode code="application.aw.restore()"/>
+                <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+            </body> 
+        </TestCase>
+
+        <TestCase testID="Window_Event_displayStateChange_3" keywords="[Window,Event, displayStateChange]">
+            <body>
+                <RunCode code="application.resetWindow()" />
+                <RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+                <RunCode code="application.aw.minimize()"  waitEvent="displayStateChange" waitTarget="aw"/>
+                <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+            </body> 
+        </TestCase>        
+
+        <TestCase testID="Window_Event_displayStateChanging_2" keywords="[Window,Event, displayStateChanging]">
+            <body>
+                <RunCode code="application.aw.restore()"  waitEvent="displayStateChanging" waitTarget="aw"/>
+                <AssertEvent target="aw" eventName="displayStateChanging" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+            </body> 
+        </TestCase>
+
+        <TestCase testID="Window_Event_displayStateChanging_3" keywords="[Window,Event, displayStateChanging]">
+            <body> 
+                <RunCode code="application.resetWindow()" />
+                <RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+                <RunCode code="application.aw.minimize()"  waitEvent="displayStateChanging" waitTarget="aw"/>
+                <AssertEvent target="aw" eventName="displayStateChanging" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+            </body> 
+        </TestCase>  
+
+        <TestCase testID="Window_Event_displayStateChanging_4" keywords="[Window,Event, displayStateChanging]">
+            <body>
+                <RunCode code="application.aw.restore()"  waitEvent="displayStateChanging" waitTarget="aw"/>
+            </body> 
+        </TestCase> 
+
+        <TestCase testID="Window_Event_displayStateChange_maximize" keywords="[Window,Event, displayStateChange]">
+             <body>
+                <RunCode code="application.aw.maximize()" />
+                 <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" />                 
+             </body> 
+         </TestCase> 
+         
+         <TestCase testID="Window_Event_displayStateChange_minimize" keywords="[Window,Event, displayStateChange]">
+             <body>
+                 <RunCode code="application.aw.minimize()"  waitEvent="displayStateChange" waitTarget="aw"/>
+                 <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+             </body> 
+        </TestCase>         
+
+        <TestCase testID="Window_Event_displayStateChange_restore" keywords="[Window,Event, displayStateChange]">
+             <body>
+                 <RunCode code="application.aw.restore()"  waitEvent="displayStateChange" waitTarget="aw"/>
+                 <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+             </body> 
+         </TestCase>
+
+         <TestCase testID="Window_Event_displayStateChange_maximize_fromExplicitSize" keywords="[Window,Event, displayStateChange]">
+             <body>
+                <RunCode code="application.resetWindow()" />
+                <SetProperty propertyName="height" value="300" target="aw"/>
+                <SetProperty propertyName="width" value="300" target="aw"/>
+                <RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+                <RunCode code="application.aw.maximize()" />
+                <AssertEvent target="aw" eventName="displayStateChange" eventClass="flash.events::NativeWindowDisplayStateEvent" /> 
+             </body> 
+         </TestCase> 
+         
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester2.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/events/window_events_tester2.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="apollo/spark/components/Window/events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_events_multple_windows.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 mx.events.CloseEvent;
+	 import mx.events.AIREvent;
+	 import mx.events.FlexNativeWindowBoundsEvent;
+    	 
+	 import comps.*;
+         public var window1:Window, window2:Window, window3:Window;
+         
+         
+	public function myListener(event:mx.events.AIREvent):void
+	{
+		FlexGlobals.topLevelApplication.testLabel.text=event.type;
+	}
+	public function myFlashEventListener(event:flash.events.Event):void
+	{
+		FlexGlobals.topLevelApplication.testLabel.text=event.type;
+	}	
+	public function myNativeDSEventListener(event:flash.events.NativeWindowDisplayStateEvent):void
+	{
+		FlexGlobals.topLevelApplication.testLabel.text=event.type;
+	}
+	public function myNativeBoundsEventListener(event:flash.events.NativeWindowBoundsEvent):void
+	{
+		FlexGlobals.topLevelApplication.testLabel.text=event.type;
+	}		
+			
+
+    ]]>
+    </mx:Script>
+
+<testCases>
+    <TestCase testID="Window_Event_windowComplete_1" keywords="[Window,Event, windowComplete]" description="check windowComplete event">
+        <body>
+            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            <AssertEvent target="myWin" eventName="windowComplete" eventClass="mx.events::AIREvent" /> 
+        </body> 
+    </TestCase> 
+
+    <TestCase testID="Window_Event_windowActivate_1" keywords="[Window,Event, windowActivate]" description="check windowActivate event">
+        <body>
+            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()" waitEvent="enterFrame" waitTarget="myWin"/>
+            <AssertEvent target="myWin" eventName="windowActivate" eventClass="mx.events::AIREvent" /> 
+            <!-- pause here to delay window close in case myWin=null before AssertEvent -->
+            <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        </body> 
+    </TestCase>
+
+    <TestCase testID="Window_Event_windowDeactivate_1" keywords="[Window,Event, windowDeactivate]" description="check windowDectivate event">
+        <body>
+            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.addEventListener(AIREvent.WINDOW_DEACTIVATE,myListener);"/> 
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()" waitEvent="enterFrame" waitTarget="stage"/>
+            <!-- create another window -->
+            <RunCode code="FlexGlobals.topLevelApplication.window1=FlexGlobals.topLevelApplication.createAWindowByClass(Window,'window1',300)" waitTarget="" waitEvent="myWindowComplete" />
+            <RunCode code="FlexGlobals.topLevelApplication.window1.activate()" waitEvent="enterFrame" waitTarget="stage"/>
+            <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="1"/>	
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()" waitEvent="windowActivate" waitTarget="myWin"/>
+            <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="1"/>	
+            <RunCode code="FlexGlobals.topLevelApplication.window1.activate()" waitEvent="windowActivate" waitTarget="window1"/>
+            <!-- assert testLabel.text -->
+            <AssertPropertyValue target="testLabel" propertyName="text" valueExpression="value=AIREvent.WINDOW_DEACTIVATE" />
+            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+       </body>
+    </TestCase>
+
+    <TestCase testID="Window_Event_windowMove_1" keywords="[Window,Event, windowMove]" description="check windowMove event">
+        <body>
+            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+            <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.addEventListener('windowMove', myNativeBoundsEventListener);"/>
+            <SetProperty target="myWin" propertyName="height" value="400" waitEvent="updateComplete" />
+            <RunCode code="FlexGlobals.topLevelApplication.myWin.move(200,400)" waitEvent="windowMove" waitTarget="myWin"/>
+            <AssertEvent target="myWin" eventName="windowMove" eventClass="mx.events::FlexNativeWindowBoundsEvent" /> 
+            <!-- assert testLabel.text -->
+            <AssertPropertyValue target="testLabel" propertyName="text" valueExpression="value=FlexNativeWindowBoundsEvent.WINDOW_MOVE" />  
+       </body> 
+    </TestCase>
+
+
+
+    <TestCase testID="Window_Event_windowResize_1" keywords="[Window,Event, windowResize]" description="check windowResize event">
+        <body>   
+	    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/> 
+	    <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    <RunCode code="FlexGlobals.topLevelApplication.myWin.addEventListener('windowResize', myNativeBoundsEventListener);"/>
+	    <SetProperty target="myWin" propertyName="height" value="400" waitEvent="updateComplete" />
+	    <AssertEvent target="myWin" eventName="windowResize" eventClass="mx.events::FlexNativeWindowBoundsEvent" /> 
+	    <!-- assert testLabel.text -->
+	    <AssertPropertyValue target="testLabel" propertyName="text" valueExpression="value=FlexNativeWindowBoundsEvent.WINDOW_RESIZE" /> 
+        </body> 
+    </TestCase>
+
+
+
+    <TestCase testID="Window_Event_close_1" keywords="[Window,Event, close]" description="check close event">
+        <body>
+	    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/> 
+	    <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    <RunCode code="FlexGlobals.topLevelApplication.myWin.addEventListener('close', myFlashEventListener);"/>
+	    <SetProperty target="myWin" propertyName="height" value="400" waitEvent="updateComplete" />
+	    <RunCode code="FlexGlobals.topLevelApplication.myWin.close()" waitEvent="close" waitTarget="myWin" />
+	    <!-- assert testLabel.text -->
+	    <AssertPropertyValue target="testLabel" propertyName="text" valueExpression="value=flash.events.Event.CLOSE" />
+	    <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/baselines/Window_integration_basiclayout_1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/baselines/Window_integration_basiclayout_1.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_scroller_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_scroller_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_scroller_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_scroller_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,72 @@
+<?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 comps.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Basic focus test with a Window which
+has a scroller.
+========================================================
+-->
+
+<TestCase testID="focus_scroller_test1" keywords="[Window,focus,scroller]" description="Give focus to a TextInput and type in it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithScroller,'window1')"  waitTarget="" waitEvent="myWindowComplete"/>        
+    </setup> 
+    <body>
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+     	<DispatchMouseEvent target="windowObj.ti1" type="mouseDown" localX="10" localY="10" waitEvent="focusIn" waitTarget="windowObj.ti1"/>
+        <DispatchMouseEvent  target="windowObj.ti1" type="mouseUp" localX="10" localY="10" waitEvent="mouseUp" waitTarget="windowObj.ti1" />
+        <DispatchKeyEvent char="boogie" window="windowObj" waitTarget="windowObj.ti1" waitEvent="updateComplete" />
+        <AssertPropertyValue target="windowObj.ti1" propertyName="text" value="boogie" />
+       
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/integration/window_focus_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,72 @@
+<?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 comps.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Basic focus test.
+========================================================
+-->
+
+<TestCase testID="focus_test1" keywords="[Window,states]" description="Give focus to a TextInput and type in it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1')"  waitTarget="" waitEvent="myWindowComplete"/>        
+    </setup> 
+    <body>    	
+    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+        <DispatchMouseEvent target="windowObj.ta" type="mouseDown" localX="10" localY="10" waitEvent="focusIn" />
+        <DispatchMouseEvent  target="windowObj.ta" type="mouseUp" localX="10" localY="10" waitEvent="mouseUp" waitTarget="windowObj.ta" />
+        <DispatchKeyEvent char="boogie" window="windowObj" waitTarget="windowObj.ta" waitEvent="change" />
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+        <AssertPropertyValue target="windowObj.ta" propertyName="text" value="boogie" />
+       
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>



Mime
View raw message