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 [5/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/ FileComboB...
Date Mon, 06 Aug 2012 20:51:43 GMT
Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
+    width="400" height="300" menu="{fnm}" initialize="init()">
+    <mx:Script>
+    <![CDATA[
+
+        private function init(): void
+        {
+            addEventListener("menuChanged", traceEvent);
+        }
+
+        private function traceEvent(event:Event): void
+        {
+            text1.text += "menuChanged received." ;
+        }
+
+    ]]>
+    </mx:Script>
+
+    <mx:XML id="nativeMenuDP">
+       <root>
+           <item label="Drinks">
+               <subitem label="Water" />
+               <subitem label="Coke" />
+               <subitem label="Orange Juice" />
+           </item>
+           <item label="Sides" >
+               <subitem label="Soup" type="check" />
+               <subitem label="Salad" type="check" />
+           </item>
+           <item label="Main" >
+               <subitem label="Past of the day" />
+               <subitem label="Meat of the day" />
+               <subitem label="Fish of the day" />
+               <subitem label="Vegetarian of the day" />
+           </item>
+       </root>
+    </mx:XML>
+
+    <mx:FlexNativeMenu id="fnm" dataProvider="{nativeMenuDP}" labelField="@label" showRoot="false" />
+
+    <mx:FlexNativeMenu id="fnm2" dataProvider="{nativeMenuDP}" labelField="@label" showRoot="false" />
+
+    <mx:Button id="button1" label="right click me" />
+    <mx:TextInput id="text1" />
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Events_Main.xml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+    <id>Mnemonics</id>
+    <version>0.6.7</version>
+    <filename>MnemonicsKeys</filename>
+    <copyright>Copyright 2012 The Apache Software Foundation</copyright>
+    
+    <versionNumber>1</versionNumber>
+
+    <initialWindow>
+        <content>FlexNativeMenu_Events_Main.swf</content>   
+        <title>Mnemonics and Keys</title>
+        <systemChrome>standard</systemChrome>
+        <transparent>false</transparent>
+        <visible>true</visible>
+    </initialWindow>
+    
+    
+    <allowBrowserInvocation>true</allowBrowserInvocation>
+    <icon>
+    </icon>
+    
+    <fileTypes>
+    </fileTypes>
+</application>

Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,92 @@
+<?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.
+
+-->
+<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" 
+    width="400" height="300" creationComplete="setDP()" >
+
+    <mx:Script>
+       <![CDATA[
+       
+          import mx.rpc.events.ResultEvent;
+          
+          private function setDP2(event:ResultEvent): void
+          {
+             fnm.dataProvider = menuXML.lastResult.AllStuff.Food;
+          }
+       
+          [Bindable]
+              public var myDP2:Object = {label: "top", children: [
+                 {label: "file", name: "FILE", children: [
+                     {label:"I am a Menu", name:"MENU"},
+                     {label:"here goes Nothing", name:"NOTHING", children: [
+                         {label:"aw, don't sell yourself short", name:"AW"},
+                         {type:"check", label:"can you check me?", name:"CHECK ME"}
+                     ]}
+                 ]}
+          ]};
+          
+          [Bindable]
+          public var xmlDoc:XMLNode;
+
+          public function setDP() : void
+          {
+              xmlDoc = new XMLDocument("<node label='Mailbox'><node label='Sent'/><node label='Inbox' /></node>");
+          }
+       
+       ]]>
+       
+    </mx:Script>
+    
+    <mx:XML id="nativeMenuDP">
+       <root>
+           <item label="Drinks">
+               <subitem label="Water" />
+               <subitem label="Coke" />
+               <subitem label="Orange Juice" />
+           </item>
+           <item label="Sides" >
+               <subitem label="Soup" type="check" />
+               <subitem label="Salad" type="check" />
+           </item>
+           <item label="Main" >
+               <subitem label="Past of the day" />
+               <subitem label="Meat of the day" />
+               <subitem label="Fish of the day" />
+               <subitem label="Vegetarian of the day" />
+           </item>
+       </root>
+    </mx:XML>
+
+    <mx:HTTPService id="menuXML" url="Assets/myXMLFile2.xml" result="setDP2(event)" />
+    
+    <mx:Model id="model1" source="Assets/myXMLFile.xml" />
+    
+    <mx:Model id="bigModel" source="Assets/BigXML.xml" />
+    
+    <mx:FlexNativeMenu id="fnm" />
+    
+    <mx:FlexNativeMenu id="fnmBinding" dataProvider="{nativeMenuDP}" labelField="@label" showRoot="false" />
+    
+    <mx:FlexNativeMenu id="fnmBinding2" dataProvider="{myDP2}" showRoot="false" labelField="name"/>
+    
+    <mx:FlexNativeMenu id="MenuDP3" dataProvider="{xmlDoc}" labelField="@label" />
+    
+    <mx:FlexNativeMenu id="MenuDP3B" dataProvider="{model1.Product}"/>
+    
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/SWFs/FlexNativeMenu_Properties_Main.xml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,42 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+    <id>DataProviders</id>
+    <version>0.6.7</version>
+    <filename>FlexNativeMenu_Properties_Main</filename>
+    <copyright>Copyright 2012 The Apache Software Foundation</copyright>
+    
+<versionNumber>1</versionNumber>
+    <initialWindow>
+        <content>FlexNativeMenu_Properties_Main.swf</content>   
+        <title>DataProvider Tests</title>
+        <systemChrome>standard</systemChrome>
+        <transparent>false</transparent>
+        <visible>true</visible>
+    </initialWindow>
+    
+    
+    <allowBrowserInvocation>true</allowBrowserInvocation>
+    <icon>
+    </icon>
+    
+    <fileTypes>
+    </fileTypes>
+</application>

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Events/AIRHTMLEventsTester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Events/AIRHTMLEventsTester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/HTML/Events/AIRHTMLEventsTester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/HTML/Events/AIRHTMLEventsTester.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/HTML/Events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIRHTMLMain.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[
+			private var htmlTextToPut:String = "<b>Hello <i>How are</b> you... <br>What</i> News<h3>????</h3>";
+		]]>
+	</mx:Script>
+
+	<testCases>
+		<!-- Test depends on external site that cannot be relied upon
+		<TestCase testID="AIR_HTML_Event_locationChange" description="checks complete event" keywords="[AIR, HTML, event, locationChange]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+	  		</setup>
+			<body>
+				<AssertEvent target="myHTML" eventName="locationChange" eventClass="flash.events::Event" timeout="10000"/>
+				
+			</body>
+		</TestCase> -->
+		<TestCase testID="AIR_HTML_Event_htmlDOMInitialize " description="checks htmlDOMInitialize  event" keywords="[AIR, HTML, event, htmlDOMInitialize]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+	  		</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertEvent target="myHTML" eventName="htmlDOMInitialize" eventClass="flash.events::Event" timeout="10000"/>
+				
+			</body>
+		</TestCase>
+		<TestCase testID="AIR_HTML_Event_complete" description="checks complete event" keywords="[AIR, HTML, event, complete]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+	  		</setup>
+			<body>
+				
+				<AssertEvent target="myHTML" eventName="complete" eventClass="flash.events::Event" timeout="10000"/>
+				<WaitForEffectsToEnd />
+			</body>
+		</TestCase>
+		<TestCase testID="AIR_HTML_Event_htmlRender" description="checks htmlRender event" keywords="[AIR, HTML, event, htmlRender]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+	  		</setup>
+			<body>
+				
+				<AssertEvent target="myHTML" eventName="htmlRender" eventClass="flash.events::Event" timeout="10000"/>
+				
+			</body>
+		</TestCase>	
+		
+		<TestCase testID="AIR_HTML_Event_domInitialize_htmlText" description="checks domInitialize event" keywords="[AIR, HTML, event, domInitialize,htmlText]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="htmlText" value="htmlTextToPut" target="myHTML"/>
+	  		</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertEvent target="myHTML" eventName="htmlDOMInitialize" eventClass="flash.events::Event" timeout="10000"/>
+				
+			</body>
+		</TestCase>
+		<TestCase testID="AIR_HTML_Event_complete_htmlText" description="checks complete event" keywords="[AIR, HTML, event, complete, htmlText]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="htmlText" value="htmlTextToPut" target="myHTML"/>
+	  		</setup>
+			<body>
+				
+				<AssertEvent target="myHTML" eventName="complete" eventClass="flash.events::Event" timeout="10000"/>
+				<WaitForEffectsToEnd />
+			</body>
+		</TestCase>
+		<TestCase testID="AIR_HTML_Event_htmlRender_htmlText" description="checks htmlRender event" keywords="[AIR, HTML, event, htmlRender, htmlText]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <WaitForEffectsToEnd />
+			      <SetProperty propertyName="htmlText" value="htmlTextToPut" target="myHTML" waitEvent="htmlRender" waitTarget="myHTML"/>
+	  		</setup>
+			<body>
+				
+				<AssertEvent target="myHTML" eventName="htmlRender" eventClass="flash.events::Event" timeout="10000"/>
+				
+			</body>
+		</TestCase>		
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/AIRHTMLPropertyTester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/AIRHTMLPropertyTester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/AIRHTMLPropertyTester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/AIRHTMLPropertyTester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,250 @@
+<?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/HTML/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIRHTMLMain.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[
+
+            private var htmlTextToPut:String = "<b>Hello <i>How are</b> you... <br>What</i> News<h3>????</h3>";
+
+        ]]>
+
+    </mx:Script>
+
+
+
+    <testCases>
+
+        <TestCase testID="AIR_HTML_location_default" description="checks location property" keywords="[AIR, HTML, property, location, default]">            
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <AssertPropertyValue propertyName="location" value="null" target="myHTML"/>
+
+            </body>
+
+        </TestCase>
+
+        <TestCase testID="AIR_HTML_location_set" description="checks location property" keywords="[AIR, HTML, property, location, set]">            
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+
+                  <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <AssertEvent target="myHTML" eventName="htmlDOMInitialize" eventClass="flash.events::Event" timeout="10000"/>
+
+                
+
+                <AssertPropertyValue propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+
+            </body>
+
+        </TestCase>
+
+        <TestCase testID="AIR_HTML_loaded_default" description="checks loaded property" keywords="[AIR, HTML, property, loaded, default]">          
+
+             <setup>
+
+                <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML" />
+
+            </setup>
+
+            <body>
+
+                 <AssertPropertyValue propertyName="loaded" value="false" target="myHTML"/>
+
+            </body>
+
+        </TestCase>
+
+        <TestCase testID="AIR_HTML_loaded_set" description="checks loaded property" keywords="[AIR, HTML, property, loaded]">           
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML"  waitEvent="updateComplete" waitTarget="myHTML"/>
+
+                  <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <AssertEvent target="myHTML" eventName="complete" eventClass="flash.events::Event" timeout="10000"/>
+
+                <WaitForEffectsToEnd />
+
+                
+
+                <AssertPropertyValue propertyName="loaded" value="true" target="myHTML"/>
+
+            </body>
+
+        </TestCase>
+
+        <TestCase testID="AIR_HTML_htmlText" description="checks htmlText property" keywords="[AIR, HTML, property, htmlText]">         
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML"  waitEvent="updateComplete" waitTarget="myHTML"/>
+
+                  <SetProperty propertyName="htmlText" valueExpression="value=htmlTextToPut" target="myHTML" waitEvent="move" waitTarget="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <!--Because CompareBitmap is sensitive to rendering on different machines (AIR goes through the system fonts.  We just check that the height and width of the component is consistent.-->
+
+                <AssertPropertyValue target="myHTML" value="1" propertyName="width"/>
+
+                <AssertPropertyValue target="myHTML" value="1" propertyName="height"/>
+
+            </body>
+
+        </TestCase>
+
+        <TestCase testID="AIR_HTML_location_complete" description="checks location property" keywords="[AIR, HTML, property, location, complete]">          
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+
+                  <SetProperty propertyName="location" value="http://www.google.com/" target="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <AssertEvent target="myHTML" eventName="complete" eventClass="flash.events::Event" timeout="10000"/>
+
+                
+
+                <AssertPropertyValue propertyName="location" value="http://www.google.com/" target="myHTML"/>
+
+            </body>
+
+        </TestCase>
+
+        
+
+        <TestCase testID="AIR_HTML_loaded_complete" description="checks location property" keywords="[AIR, HTML, property, location, complete]">            
+
+             <setup>
+
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+
+                  <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"/>
+
+            </setup>
+
+            <body>
+
+                <AssertEvent target="myHTML" eventName="complete" eventClass="flash.events::Event" timeout="10000"/>
+
+                
+
+                <AssertPropertyValue propertyName="loaded" value="true" target="myHTML"/>
+
+            </body>
+
+        </TestCase>     
+        <TestCase testID="AIR_HTML_layoutDirection_RTL_onParent" description="Check that the HTML component doesn't mirror when layoutDirection is set on its parent"
+            keywords="[AIR, HTML, layoutDirection, Mirroring]">            
+             <setup>
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+                  <ResetComponent target="myHTML2" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML2"/>
+                  <SetProperty propertyName="location" value="html/sample.html" target="myHTML2" waitEvent="complete" waitTarget="myHTML2"/>
+             </setup>
+             <body>
+                 <SetProperty propertyName="layoutDirection" value="rtl" target="box1" waitEvent="updateComplete" waitTarget="box1" />
+                 <CompareBitmap url="../Properties/baselines/$testID.png" target="myHTML2" />
+            </body>
+         </TestCase> 
+        <TestCase testID="AIR_HTML_layoutDirection_RTL" description="Check that the HTML component mirrors when layoutDirection is set on the component itself"
+            keywords="[AIR, HTML, layoutDirection, Mirroring]">            
+             <setup>
+                  <SetProperty propertyName="layoutDirection" value="ltr" target="box1"  />
+                  <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+                  <ResetComponent target="myHTML2" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML2"/>
+                  <SetProperty propertyName="height" value="200" target="myHTML2" waitEvent="updateComplete" waitTarget="myHTML2"/>
+                  <SetProperty propertyName="width" value="200" target="myHTML2" waitEvent="updateComplete" waitTarget="myHTML2"/>
+                  <SetProperty propertyName="location" value="html/sample.html" target="myHTML2" waitEvent="complete" waitTarget="myHTML2"/>
+             </setup>
+             <body>
+                 <SetProperty propertyName="layoutDirection" value="rtl" target="myHTML2" waitEvent="updateComplete" waitTarget="myHTML2" />
+                 <CompareBitmap url="../Properties/baselines/$testID.png" target="myHTML2" />
+            </body>
+         </TestCase> 
+    </testCases>
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL_onParent.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL_onParent.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/AIR_HTML_layoutDirection_RTL_onParent.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/apollo_html_htmlText.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/apollo_html_htmlText.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Properties/Baselines/apollo_html_htmlText.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/AIRHTMLMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/AIRHTMLMain.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/AIRHTMLMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/AIRHTMLMain.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="600" >
+    <mx:HTML id="myHTML" width="400" height="400"/>
+    
+    <mx:Box id="box1">
+        <mx:HTML id="myHTML2"/>
+    </mx:Box>
+    
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/html/sample.html
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/html/sample.html?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/html/sample.html (added)
+++ incubator/flex/trunk/mustella/tests/apollo/HTML/SWFs/html/sample.html Mon Aug  6 20:51:08 2012
@@ -0,0 +1,21 @@
+<!--
+  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.
+-->
+<html>
+   <body  bgcolor="0x000000">
+   <img src="../../../../../Assets/Images/redrect.jpg" />
+   </body>
+</html>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/AIRHTMLStyleTester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/AIRHTMLStyleTester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/AIRHTMLStyleTester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/AIRHTMLStyleTester.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/HTML/Styles/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIRHTMLMain.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[
+			private var htmlTextToPut:String = "<b>Hello <i>How are</b> you... <br>What</i> News<h3>????</h3>";
+		]]>
+	</mx:Script>
+
+	<testCases>
+	<!-- Test depends on external site that cannot be relied upon
+		<TestCase testID="AIR_HTML_setup" description="HTML Styles test setup" keywords="[AIR, HTML, style, setup]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"  waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+			</setup>
+			 <body>
+				<WaitForEffectsToEnd />
+
+			</body>  
+		</TestCase>-->
+		<TestCase testID="AIR_HTML_paddingTop" description="HTML paddingTop" keywords="[AIR, HTML, style, paddingTop]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="width" value="300" target="myHTML"/>
+			      <SetProperty propertyName="height" value="300" target="myHTML"/>
+			       <SetStyle target="myHTML" styleName="paddingTop" value="50" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML" waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+	  		</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertPixelValue x="115" y="31" target="myHTML" value="0xFFFFFF" />
+			</body>
+		</TestCase> 
+		<TestCase testID="AIR_HTML_paddingBottom" description="HTML paddingBottom" keywords="[AIR, HTML, style, paddingBottom]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML" waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+			      <SetProperty propertyName="width" value="300" target="myHTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="height" value="300" target="myHTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+      			      <SetStyle target="myHTML" styleName="paddingBottom" value="100" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML" waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+			</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertPixelValue x="159" y="252" target="myHTML" value="0xFFFFFF" />
+			</body>
+		</TestCase>
+		<TestCase testID="AIR_HTML_paddingLeft" description="HTML paddingLeft" keywords="[AIR, HTML, style, paddingLeft]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="width" value="300" target="myHTML"/>
+			      <SetProperty propertyName="height" value="300" target="myHTML"/>
+			      <SetStyle target="myHTML" styleName="paddingLeft" value="50" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML"  waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+			      
+			</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertPixelValue x="26" y="149" target="myHTML" value="0xFFFFFF" />
+			</body>
+		</TestCase>  
+		<TestCase testID="AIR_HTML_paddingRight" description="HTML paddingRight" keywords="[AIR, HTML, style, paddingRight]">			
+			 <setup>
+			      <ResetComponent target="myHTML" className="mx.controls::HTML" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="width" value="300" target="myHTML"/>
+			      <SetProperty propertyName="height" value="300" target="myHTML"/>
+			      <SetStyle target="myHTML" styleName="paddingRight" value="100" waitEvent="updateComplete" waitTarget="myHTML"/>
+			      <SetProperty propertyName="location" value="http://www.blackle.com/" target="myHTML" waitEvent="htmlDOMInitialize" waitTarget="myHTML"/>
+			      
+			</setup>
+			<body>
+				<WaitForEffectsToEnd />
+				<AssertPixelValue x="216" y="237" target="myHTML" value="0xFFFFFF" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingBottom.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingBottom.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingBottom.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingLeft.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingLeft.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingLeft.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingRight.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingRight.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingRight.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingTop.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingTop.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/HTML/Styles/baselines/apollo_html_paddingTop.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/Window/Events/AIR_Window_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/Window/Events/AIR_Window_Events.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/Window/Events/AIR_Window_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/Window/Events/AIR_Window_Events.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,148 @@
+<?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/Window/Events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIR_Window_Basic.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.WindowedApplication;
+
+    ]]>
+    </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> 
+         
+         <!--<TestCase testID="Window_Event_windowCreate" 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()" />
+                <AssertEvent target="aw" eventName="windowCreate" eventClass="mx.events::WindowExistenceEvent" /> 
+            </body> 
+         </TestCase> 
+         
+         <TestCase testID="Window_Event_windowClose" 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()" />
+                <AssertEvent target="aw" eventName="windowCreate" eventClass="mx.events::WindowExistenceEvent" /> 
+                <RunCode code="application.aw.close()" />
+                <AssertEvent target="aw" eventName="windowClose" eventClass="mx.events::WindowExistenceEvent" /> 
+            </body> 
+         </TestCase> -->
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_bindabletester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_bindabletester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_bindabletester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_bindabletester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,124 @@
+<?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/Window/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Window_bindable.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 -->
+	<testCases>
+		<TestCase testID="Window_height_property_bindable" description="Verifies that height is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<SetProperty propertyName="height" value="100" target="aw" waitEvent="updateComplete" waitTarget="aw.taHeight"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taHeight" propertyName="text" value="100"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="WindowedApplication_width_property_bindable" description="Verifies that width is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<SetProperty propertyName="width" value="200" target="aw" waitEvent="updateComplete" waitTarget="aw.taWidth"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taWidth" propertyName="text" value="200"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="WindowedApplication_maxWidth_property_bindable" description="Verifies that maxWidth is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<RunCode code="application.aw.maxWidth=500;" />
+				<RunCode code="application.aw.width=600;" waitEvent="updateComplete" waitTarget="aw"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taMaxWidth" propertyName="text" value="500"/>
+				<AssertPropertyValue target="aw.taWidth" propertyName="text" value="500"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="WindowedApplication_maxHeight_property_bindable" description="Verifies that maxHeight is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<RunCode code="application.aw.maxHeight=500;" />
+				<RunCode code="application.aw.height=600;" waitEvent="updateComplete" waitTarget="aw"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taMaxHeight" propertyName="text" value="500"/>
+				<AssertPropertyValue target="aw.taHeight" propertyName="text" value="500"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="WindowedApplication_minWidth_property_bindable" description="Verifies that minWidth is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<RunCode code="application.aw.minWidth=200;" />
+				<RunCode code="application.aw.width=100;" waitEvent="updateComplete" waitTarget="aw"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taMinWidth" propertyName="text" value="200"/>
+				<AssertPropertyValue target="aw.taWidth" propertyName="text" value="200"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="WindowedApplication_minHeight_property_bindable" description="Verifies that minHeight is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+				<RunCode code="application.aw.minHeight=200;" />
+				<RunCode code="application.aw.height=100;" waitEvent="updateComplete" waitTarget="aw"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taMinHeight" propertyName="text" value="200"/>
+				<AssertPropertyValue target="aw.taHeight" propertyName="text" value="200"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="WindowedApplication_visible_property_bindable" description="Verifies that visible is bindable for WindowedApplication" keywords="[WindowedApplication, height, property]">
+			<setup>
+				<RunCode code="application.resetWindow()"/>	
+				<RunCode code="application.aw.open()" waitEvent="updateComplete" waitTarget="aw.taHeight"/>
+				<RunCode code="application.aw.visible=false;" waitEvent="updateComplete" waitTarget="aw.taVisible" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="aw.taVisible" propertyName="text" value="false"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_properties_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_properties_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_properties_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/Window/Properties/Window_properties_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,794 @@
+<?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/Window/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Window_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[
+
+
+
+	[Bindable]
+
+	[Embed(source="../../../../Assets/Images/smallredrect.jpg")]
+
+	public var kb:Class;
+
+
+
+	]]>
+
+	</mx:Script>
+
+	
+
+	<testCases>
+
+		<TestCase testID="Window_properties_default_alwaysInFront" keywords="[Window, properties, alwaysInFront]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="alwaysInFront" value="false" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_default_height" keywords="[Window, properties, height]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="100" target="aw"/>
+
+							</body>
+
+		</TestCase>
+
+		<!--
+
+		<TestCase testID="Window_properties_height_500" keywords="[Window, properties, height]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>	
+
+				<SetProperty propertyName="height" value="500" target="aw"/> 
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_height_500.png" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_height_250_postOpen" keywords="[Window, properties, height]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="height" value="250" target="aw" waitTarget="aw" waitEvent="updateComplete"/> 
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_height_250_postOpen.png" target="aw"/>
+
+			</body>
+
+		</TestCase>		
+
+			<TestCase testID="Window_properties_width_500" keywords="[Window, properties, width]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="width" value="500" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_width_500.png" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_width_250_postOpen" keywords="[Window, properties, width]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="width" value="250" target="aw" waitTarget="aw" waitEvent="updateComplete"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_width_250_postOpen.png" target="aw"/>
+
+			</body>
+
+		</TestCase>-->
+
+		<TestCase testID="Window_properties_maxHeight_default" keywords="[Window, properties, maxHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="maxHeight" value="107374182" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxHeight_500_height_600" keywords="[Window, properties, maxHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxHeight" value="500" target="aw"/>
+
+				<SetProperty propertyName="height" value="600" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="500" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxHeight_500_height_600_postOpen" keywords="[Window, properties, maxHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxHeight" value="500" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="height" value="600" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="500" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxHeight_500_height_300" keywords="[Window, properties, maxHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxHeight" value="600" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="height" value="300" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="300" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxWidth_default" keywords="[Window, properties, maxWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="maxWidth" value="107374182" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxWidth_500_width_600" keywords="[Window, properties, maxHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxWidth" value="500" target="aw"/>
+
+				<SetProperty propertyName="width" value="600" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="500" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxWidth_500_width_600_postOpen" keywords="[Window, properties, maxWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxWidth" value="500" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="width" value="600" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="500" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_maxWidth_500_width_300" keywords="[Window, properties, maxWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="maxWidth" value="600" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="width" value="300" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="300" target="aw"/>	
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minWidth_300_width_200" keywords="[Window, properties, minWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minWidth" value="300" target="aw"/>
+
+				<SetProperty propertyName="width" value="200" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="300" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minWidth_300_width_200_postOpen" keywords="[Window, properties, minWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minWidth" value="300" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="width" value="200" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="300" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minWidth_200_width_400" keywords="[Window, properties, minWidth]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minWidth" value="200" target="aw"/>
+
+				<SetProperty propertyName="width" value="400" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="width" value="400" target="aw"/>
+
+			</body>
+
+		</TestCase>		
+
+		<TestCase testID="Window_properties_minHeight_default" keywords="[Window, properties, minHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()"/>	
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="minHeight" value="34" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minHeight_300_height_200" keywords="[Window, properties, minHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minHeight" value="300" target="aw"/>
+
+				<SetProperty propertyName="height" value="200" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="300" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minHeight_300_height_200_postOpen" keywords="[Window, properties, minHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minHeight" value="300" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+				<SetProperty propertyName="height" value="200" target="aw" waitEvent="updateComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="300" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_minHeight_200_height_400" keywords="[Window, properties, minHeight]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="minHeight" value="200" target="aw"/>
+
+				<SetProperty propertyName="height" value="400" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="height" value="400" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_showStatusBar_default" keywords="[Window, properties, showStatusBar]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="showStatusBar" value="true" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<!--<TestCase testID="Window_properties_showStatusBar_false" keywords="[Window, properties, showStatusBar]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="showStatusBar" value="false" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_showStatusBar_false.png" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_showStatusBar_true" keywords="[Window, properties, showStatusBar]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="showStatusBar" value="true" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_showStatusBar_true.png" target="aw.statusBar"/>
+
+			</body>
+
+		</TestCase>-->
+
+		<TestCase testID="Window_properties_title_default" keywords="[Window, properties, title]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue value="" propertyName="title" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+
+
+<!--		<TestCase testID="Window_properties_title" keywords="[Window, properties, title]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="title" value="Hello World!" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_title.png" target="aw"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_title_long" keywords="[Window, properties, title]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="title" value="0123456789012345678901234567890123456789012345678901234567890123456789" target="aw"/>
+
+				<SetProperty propertyName="width" value="400" target="aw"/>
+
+				<SetProperty propertyName="height" value="400" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_title_long.png" target="aw"/>
+
+			</body>
+
+		</TestCase>-->
+
+		<TestCase testID="Window_properties_status_default" keywords="[Window, properties, status]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="status" value="" target="aw.statusBar"/>
+
+			</body>
+
+		</TestCase>
+
+		<!--<TestCase testID="Window_properties_status" keywords="[Window, properties, status]">
+
+			<setup>		
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="status" value="Hello Status!" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_status.png" target="aw.statusBar"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_status_long" keywords="[Window, properties, status]">
+
+			<setup>		
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="status" value="0123456789012345678901234567890123456789012345678901234567890123456789!" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_status_long.png" target="aw.statusBar"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="Window_properties_titleIcon" keywords="[Window,properties, titleIcon]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty target="aw" propertyName="titleIcon" valueExpression="value=kb" />
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>  
+
+			<body>  
+
+				<CompareBitmap url="../Properties/baselines/Window_properties_titleIcon.png" target="aw"/>	
+
+			</body> 
+
+		</TestCase>-->
+
+		<TestCase testID="Window_properties_visible_default" keywords="[Window, properties, visible]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="visible" value="true" target="aw"/>
+
+			</body> 
+
+		</TestCase>	
+
+		<TestCase testID="Window_properties_visible_false" keywords="[Window, properties, visible]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="visible" value="false" target="aw"/>
+
+				<RunCode code="application.aw.open()" />
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue propertyName="visible" value="false" target="aw"/>
+
+			</body> 
+
+		</TestCase>	
+                <TestCase testID="Window_properties_new_window_focus_systemChrome_none" keywords="[Window, properties, newWindow, focus, systemChrome, none]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="title" value="Hello World!" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+                                <AssertMethodValue value="true" method="value=String(application.aw.nativeWindow.active)" />  
+
+			</body>
+
+		</TestCase>
+                <TestCase testID="Window_properties_new_window_focus" keywords="[Window, properties, newWindow, focus]">
+
+			<setup>
+
+				<RunCode code="application.resetWindow()"/>
+
+				<SetProperty propertyName="title" value="Hello World!" target="aw"/>
+                                <SetProperty propertyName="systemChrome" value="standard" target="aw"/>
+
+				<RunCode code="application.aw.open()" waitEvent="windowComplete" waitTarget="aw"/>
+
+			</setup>
+
+			<body>
+                                <AssertMethodValue value="true" method="value=String(application.aw.nativeWindow.active)" />  
+
+			</body>
+
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file



Mime
View raw message