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 [9/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/WindowedApplication/Styles/AIR_WindowedApplication_Styles.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,264 @@
+<?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/WindowedApplication/Styles/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIR_WindowedApplication_Basic_Styles.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;
+    public var cbms:String;
+    public var cbs:String;
+    public var hh:Number;
+    public var mbms:String;
+    public var mbs:String;
+    public var mbmsn:String;
+    public var mbsn:String;
+    public var rbsn:String;
+    public var sfc:String;
+    public var sbgs:Class;
+    public var sbbc:uint;
+    public var stsn:String;
+    public var ta:String;
+    public var tbbs:Class;
+    public var tbbp:Number;
+    public var tbc:Array;
+    public var ttsn:String;
+    public var ba:String;
+          public var bp:Number;
+          public function set():void
+          {
+              ba=application.getStyle('buttonAlignment');
+              bp=application.getStyle('buttonPadding');
+              cbms=application.getStyle('closeButtonSkin');
+              cbs=application.getStyle('closeButtonSkin');
+              hh=application.getStyle('headerHeight');
+              mbms=application.getStyle('maximizeButtonSkin');
+              mbs=application.getStyle('maximizeButtonSkin');
+              mbmsn=application.getStyle('minimizeButtonSkin');
+              mbsn=application.getStyle('minimizeButtonSkin');
+              rbsn=application.getStyle('restoreButtonSkin');
+              sfc=application.getStyle('showFlexChrome');
+              sbgs=application.getStyle('statusBackgroundSkin');
+              sbbc=application.getStyle('statusBarBackgroundColor');
+              stsn=application.getStyle('statusTextStyleName');
+              ta=application.getStyle('titleAlignment');
+              tbbs=application.getStyle('titleBarBackgroundSkin');
+              tbbp=application.getStyle('titleBarButtonPadding');
+              tbc=application.getStyle('titleBarColors');
+              ttsn=application.getStyle('titleTextStyleName');
+              trace(hh)
+          }
+          public function reset():void
+          {
+        application.setStyle('buttonAlignment',ba);
+        application.setStyle('buttonPadding',bp);
+        application.setStyle('closeButtonSkin',cbms);
+        application.setStyle('closeButtonSkin',cbs);
+        application.setStyle('headerHeight',22);
+        application.setStyle('maximizeButtonSkin',mbms);
+        application.setStyle('maximizeButtonSkin',mbs);
+        application.setStyle('minimizeButtonSkin',mbmsn);
+        application.setStyle('minimizeButtonSkin',mbsn);
+        application.setStyle('restoreButtonSkin',rbsn);
+        application.setStyle('showFlexChrome',sfc);
+        application.setStyle('statusBackgroundSkin',sbgs);
+        application.setStyle('statusBarBackgroundColor',sbbc);
+        application.setStyle('statusTextStyleName',stsn);
+        application.setStyle('titleAlignment',ta);
+        application.setStyle('titleBarBackgroundSkin',tbbs);
+        application.setStyle('titleBarButtonPadding',tbbp);
+        application.setStyle('titleBarColors',tbc);
+        application.setStyle('titleTextStyleName',ttsn);
+    }
+          [Bindable]
+    [Embed(source="../../../../Assets/Images/smallredrect.jpg")]
+    public var kb:Class;
+          ]]>
+    </mx:Script>
+    <mx:Style>
+        .myStyle{
+            color: red;
+            fontSize: 14;
+            fontWeight: bold;
+        }
+    .buttonStyle{
+            upSkin: Embed(source="../../../../Assets/Images/smallredrect.jpg") ;
+    }
+    </mx:Style>
+    <testCases>
+        <TestCase testID="Window_Style_buttonAlignment_auto" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <RunCode code="set()"/>
+                <SetProperty propertyName="height" value="500" target="" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty propertyName="width" value="500" target="" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="auto" />
+                <AssertStyleValue target="" styleName="titleAlignment" value="auto" />
+                <CompareBitmap target="" url="../Styles/baselines/buttonAlignment_auto.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_buttonAlignment_right" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <SetStyle target="" styleName="buttonAlignment" value="right" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="right" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/buttonAlignment_right.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_buttonAlignment_left" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <SetStyle target="" styleName="buttonAlignment" value="left" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="left" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/buttonAlignment_left.png"/>
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_headerHeight_large" keywords="[Window,Style, headerHeight]">
+            <setup>
+                <SetStyle styleName="buttonAlignment" value="auto" target="" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="headerHeight" value="30" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="title" value="Hello World!" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="headerHeight" value="30" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/headerHeight_large.png"/>
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_headerHeight_small" keywords="[Window,Style, headerHeight]">
+            <setup>
+                <SetStyle target="" styleName="headerHeight" value="0.5" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="headerHeight" value="0.5" />
+                <CompareBitmap target="" url="../Styles/baselines/headerHeight_small.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_showFlexChrome_true" keywords="[Window,Style, showFlexChrome ]">
+            <setup>
+                <SetStyle target="" styleName="headerHeight" value="20" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="showFlexChrome" value="true" />
+            </body>
+        </TestCase>
+        <!-- Commenting out test case because showFlexChrome must be set before startup, it doesn't work to set it after the WindowedApplication appears
+        <TestCase testID="Window_Style_showFlexChrome_false" keywords="[Window,Style, showFlexChrome ]">
+            <setup>
+                <SetStyle target="" styleName="showFlexChrome" value="false" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="showFlexChrome" value="false" />
+                <CompareBitmap target="" url="../Styles/baselines/showFlexChrome_false.png"  />
+            </body>
+        </TestCase>-->
+        <TestCase testID="Window_Style_statusBarBackgroundColor" keywords="[Window,Style, statusBarBackgroundColor ]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundColor" value="red" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="statusBarBackgroundColor" value="16711680" />
+                <CompareBitmap target="" url="../Styles/baselines/statusBarBackgroundColor.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_statusBackgroundSkin" keywords="[Window,Style, statusBackgroundSkin ]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundSkin" value="{kb}" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <CompareBitmap target="" url="../Styles/baselines/statusBackgroundSkin.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_statusTextStyleName" keywords="[Window,Style, statusTextStyleName]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundColor" value="0xC0C0C0" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="statusTextStyleName" value="myStyle" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="status" value="Hello World" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="statusTextStyleName" value="myStyle" />
+                <CompareBitmap target="" url="../Styles/baselines/statusTextStyleName.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleAlignment_left" keywords="[Window,Style, titleAlignment]">
+            <setup>
+                <SetProperty target="" propertyName="title" value="Title Alignment Check" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="titleAlignment" value="left" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleAlignment" value="left" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleAlignment_left.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleAlignment_center" keywords="[Window,Style, titleAlignment]">
+            <setup>
+                <SetStyle target="" styleName="titleAlignment" value="center" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleAlignment" value="center" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleAlignment_center.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleTextStyleName" keywords="[Window,Style, titleTextStyleName]">
+            <setup>
+                <SetStyle target="" styleName="titleTextStyleName" value="myStyle" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="title" value="Hello World!" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleTextStyleName" value="myStyle" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleTextStyleName.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleBarColors" keywords="[Window,Style, titleBarColors]">
+            <setup>
+                <SetStyle target="" styleName="titleBarColors" value="['red','green']" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleBarColors" value="[ 16711680,32768]" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleBarColors.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleBarBackgroundSkin" keywords="[Window,Style, titleBarBackgroundSkin]">
+            <setup>
+                <SetStyle target="" styleName="titleBarBackgroundSkin" valueExpression="value=kb" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleBarBackgroundSkin" valueExpression="value=kb" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleBarBackgroundSkin.png" />
+            </body>
+        </TestCase>
+
+    </testCases>
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles_Spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles_Spark.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles_Spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/AIR_WindowedApplication_Styles_Spark.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,264 @@
+<?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/WindowedApplication/Styles/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AIR_WindowedApplication_Basic_Styles_Spark.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;
+    public var cbms:String;
+    public var cbs:String;
+    public var hh:Number;
+    public var mbms:String;
+    public var mbs:String;
+    public var mbmsn:String;
+    public var mbsn:String;
+    public var rbsn:String;
+    public var sfc:String;
+    public var sbgs:Class;
+    public var sbbc:uint;
+    public var stsn:String;
+    public var ta:String;
+    public var tbbs:Class;
+    public var tbbp:Number;
+    public var tbc:Array;
+    public var ttsn:String;
+    public var ba:String;
+          public var bp:Number;
+          public function set():void
+          {
+              ba=application.getStyle('buttonAlignment');
+              bp=application.getStyle('buttonPadding');
+              cbms=application.getStyle('closeButtonSkin');
+              cbs=application.getStyle('closeButtonSkin');
+              hh=application.getStyle('headerHeight');
+              mbms=application.getStyle('maximizeButtonSkin');
+              mbs=application.getStyle('maximizeButtonSkin');
+              mbmsn=application.getStyle('minimizeButtonSkin');
+              mbsn=application.getStyle('minimizeButtonSkin');
+              rbsn=application.getStyle('restoreButtonSkin');
+              sfc=application.getStyle('showFlexChrome');
+              sbgs=application.getStyle('statusBackgroundSkin');
+              sbbc=application.getStyle('statusBarBackgroundColor');
+              stsn=application.getStyle('statusTextStyleName');
+              ta=application.getStyle('titleAlignment');
+              tbbs=application.getStyle('titleBarBackgroundSkin');
+              tbbp=application.getStyle('titleBarButtonPadding');
+              tbc=application.getStyle('titleBarColors');
+              ttsn=application.getStyle('titleTextStyleName');
+              trace(hh)
+          }
+          public function reset():void
+          {
+        application.setStyle('buttonAlignment',ba);
+        application.setStyle('buttonPadding',bp);
+        application.setStyle('closeButtonSkin',cbms);
+        application.setStyle('closeButtonSkin',cbs);
+        application.setStyle('headerHeight',22);
+        application.setStyle('maximizeButtonSkin',mbms);
+        application.setStyle('maximizeButtonSkin',mbs);
+        application.setStyle('minimizeButtonSkin',mbmsn);
+        application.setStyle('minimizeButtonSkin',mbsn);
+        application.setStyle('restoreButtonSkin',rbsn);
+        application.setStyle('showFlexChrome',sfc);
+        application.setStyle('statusBackgroundSkin',sbgs);
+        application.setStyle('statusBarBackgroundColor',sbbc);
+        application.setStyle('statusTextStyleName',stsn);
+        application.setStyle('titleAlignment',ta);
+        application.setStyle('titleBarBackgroundSkin',tbbs);
+        application.setStyle('titleBarButtonPadding',tbbp);
+        application.setStyle('titleBarColors',tbc);
+        application.setStyle('titleTextStyleName',ttsn);
+    }
+          [Bindable]
+    [Embed(source="../../../../Assets/Images/smallredrect.jpg")]
+    public var kb:Class;
+          ]]>
+    </mx:Script>
+    <mx:Style>
+        .myStyle{
+            color: red;
+            fontSize: 14;
+            fontWeight: bold;
+        }
+    .buttonStyle{
+            upSkin: Embed(source="../../../../Assets/Images/smallredrect.jpg") ;
+    }
+    </mx:Style>
+    <testCases>
+        <TestCase testID="Window_Style_buttonAlignment_auto" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <RunCode code="set()"/>
+                <SetProperty propertyName="height" value="500" target="" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty propertyName="width" value="500" target="" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="auto" />
+                <AssertStyleValue target="" styleName="titleAlignment" value="auto" />
+                <CompareBitmap target="" url="../Styles/baselines/buttonAlignment_auto_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_buttonAlignment_right" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <SetStyle target="" styleName="buttonAlignment" value="right" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="right" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/buttonAlignment_right_Spark.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_buttonAlignment_left" keywords="[Window,Style, buttonAlignment]">
+            <setup>
+                <SetStyle target="" styleName="buttonAlignment" value="left" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="buttonAlignment" value="left" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/buttonAlignment_left_Spark.png"/>
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_headerHeight_large" keywords="[Window,Style, headerHeight]">
+            <setup>
+                <SetStyle styleName="buttonAlignment" value="auto" target="" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="headerHeight" value="30" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="title" value="Hello World!" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="headerHeight" value="30" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/headerHeight_large_Spark.png"/>
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_headerHeight_small" keywords="[Window,Style, headerHeight]">
+            <setup>
+                <SetStyle target="" styleName="headerHeight" value="0.5" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="headerHeight" value="0.5" />
+                <CompareBitmap target="" url="../Styles/baselines/headerHeight_small_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_showFlexChrome_true" keywords="[Window,Style, showFlexChrome ]">
+            <setup>
+                <SetStyle target="" styleName="headerHeight" value="20" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="showFlexChrome" value="true" />
+            </body>
+        </TestCase>
+        <!-- Commenting out test case because showFlexChrome must be set before startup, it doesn't work to set it after the WindowedApplication appears
+        <TestCase testID="Window_Style_showFlexChrome_false" keywords="[Window,Style, showFlexChrome ]">
+            <setup>
+                <SetStyle target="" styleName="showFlexChrome" value="false" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="showFlexChrome" value="false" />
+                <CompareBitmap target="" url="../Styles/baselines/showFlexChrome_false_Spark.png"  />
+            </body>
+        </TestCase>-->
+        <TestCase testID="Window_Style_statusBarBackgroundColor" keywords="[Window,Style, statusBarBackgroundColor ]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundColor" value="red" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="statusBarBackgroundColor" value="16711680" />
+                <CompareBitmap target="" url="../Styles/baselines/statusBarBackgroundColor_Spark.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_statusBackgroundSkin" keywords="[Window,Style, statusBackgroundSkin ]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundSkin" value="{kb}" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <CompareBitmap target="" url="../Styles/baselines/statusBackgroundSkin_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_statusTextStyleName" keywords="[Window,Style, statusTextStyleName]">
+            <setup>
+                <SetStyle target="" styleName="statusBarBackgroundColor" value="0xC0C0C0" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="statusTextStyleName" value="myStyle" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="status" value="Hello World" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="statusTextStyleName" value="myStyle" />
+                <CompareBitmap target="" url="../Styles/baselines/statusTextStyleName_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleAlignment_left" keywords="[Window,Style, titleAlignment]">
+            <setup>
+                <SetProperty target="" propertyName="title" value="Title Alignment Check" waitEvent="updateComplete" waitTarget=""/>
+                <SetStyle target="" styleName="titleAlignment" value="left" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleAlignment" value="left" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleAlignment_left_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleAlignment_center" keywords="[Window,Style, titleAlignment]">
+            <setup>
+                <SetStyle target="" styleName="titleAlignment" value="center" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleAlignment" value="center" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleAlignment_center_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleTextStyleName" keywords="[Window,Style, titleTextStyleName]">
+            <setup>
+                <SetStyle target="" styleName="titleTextStyleName" value="myStyle" waitEvent="updateComplete" waitTarget=""/>
+                <SetProperty target="" propertyName="title" value="Hello World!" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleTextStyleName" value="myStyle" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleTextStyleName_Spark.png" />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleBarColors" keywords="[Window,Style, titleBarColors]">
+            <setup>
+                <SetStyle target="" styleName="titleBarColors" value="['red','green']" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleBarColors" value="[ 16711680,32768]" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleBarColors_Spark.png"  />
+            </body>
+        </TestCase>
+        <TestCase testID="Window_Style_titleBarBackgroundSkin" keywords="[Window,Style, titleBarBackgroundSkin]">
+            <setup>
+                <SetStyle target="" styleName="titleBarBackgroundSkin" valueExpression="value=kb" waitEvent="updateComplete" waitTarget=""/>
+            </setup>
+            <body>
+                <AssertStyleValue target="" styleName="titleBarBackgroundSkin" valueExpression="value=kb" />
+                <CompareBitmap target="titleBar" url="../Styles/baselines/titleBarBackgroundSkin_Spark.png" />
+            </body>
+        </TestCase>
+
+    </testCases>
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/WindowedApp_backgroundStyles_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/WindowedApp_backgroundStyles_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/WindowedApp_backgroundStyles_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedApplication/Styles/WindowedApp_backgroundStyles_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,88 @@
+<UnitTester testDir="apollo/WindowedApplication/styles/" 
+	xmlns:fx="http://ns.adobe.com/mxml/2009" 
+    xmlns:mx="library://ns.adobe.com/flex/mx" 
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns="*"
+    testSWF="WindowedApp_backgroundStyles_main.mxml">
+    
+    <!-- Default code for all tests -->
+    <fx:Script>
+        <![CDATA[         
+        	public static function init(o:DisplayObject):void {}
+        ]]>
+    </fx:Script>
+
+    <fx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </fx:Metadata>
+           
+    <testCases>    
+
+  		<TestCase testID="mx_wa_backgroundColor_getStyle" keywords="[WindowedApplication, backgroundColor]" description="Get backgroundColor of WindowedApplication">
+  			<body>
+  				<AssertStyleValue styleName="backgroundColor" target="" value="255" />
+  			</body>
+  		</TestCase>
+  		
+  		<TestCase testID="mx_window_backgroundColor_getStyle" keywords="[Window, backgroundColor]" description="Get backgroundColor of Window">
+			<body>
+				<RunCode code="application.createAWindow()"/>
+				<AssertStyleValue styleName="backgroundColor" target="myWin" value="16711680" />
+				<RunCode code="application.myWin.close()"/>
+			</body>
+		</TestCase>
+  		
+  		<TestCase testID="mx_wa_backgroundAlpha_getStyle" keywords="[WindowedApplication, backgroundColor]" description="Get backgroundColor of WindowedApplication">
+			<body>
+				<AssertStyleValue styleName="backgroundAlpha" target="" value="0.5" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="mx_window_backgroundAlpha_getStyle" keywords="[Window, backgroundColor]" description="Get backgroundColor of Window">
+			<body>
+				<RunCode code="application.createAWindow()"/>
+				<AssertStyleValue styleName="backgroundAlpha" target="myWin" value="0.2" />
+				<RunCode code="application.myWin.close()"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="mx_wa_backgroundColor_backgroundAlpha_setStyle_runtime" keywords="[WindowedApplication, backgroundColor]" description="Get backgroundColor of WindowedApplication">
+			<body>
+				<AssertStyleValue styleName="backgroundColor" target="" value="255" />
+  				<AssertStyleValue styleName="backgroundAlpha" target="" value="0.5" />
+				
+				<CompareBitmap target="" url="../styles/baselines/$testID_1.png"/>
+
+				<SetStyle styleName="backgroundAlpha" target="" value="0.2" waitEvent="updateComplete" waitTarget=""/>				
+				<SetStyle styleName="backgroundColor" target="" value="0x00FF00" waitEvent="updateComplete" waitTarget=""/>
+				<CompareBitmap target="" url="../styles/baselines/$testID_2.png"/>
+				<AssertStyleValue styleName="backgroundColor" target="" value="65280" />
+				<AssertStyleValue styleName="backgroundAlpha" target="" value="0.2" />
+			</body>
+		</TestCase>
+		  		
+		<TestCase testID="mx_window_backgroundColor_backgroundAlpha_setStyle_runtime" keywords="[Window, backgroundColor]" description="Get backgroundColor of Window">
+			<body>
+				<RunCode code="application.createAWindow()" />
+				<Pause timeout="1000"/>
+				<SetProperty propertyName="visible" target="" value="false"/>
+				<AssertStyleValue styleName="backgroundColor" target="myWin" value="16711680" />
+				<AssertStyleValue styleName="backgroundAlpha" target="myWin" value="0.2" />			
+				<CompareBitmap target="myWin" url="../styles/baselines/$testID_1.png"/>
+				
+				<SetStyle styleName="backgroundAlpha" target="myWin" value="0.2" />				
+				<SetStyle styleName="backgroundColor" target="myWin" value="0x00FF00" waitEvent="updateComplete" waitTarget="myWin"/>
+				
+				<CompareBitmap target="myWin" url="../styles/baselines/$testID_2.png"/>
+				<AssertStyleValue styleName="backgroundColor" target="myWin" value="65280" />
+				<AssertStyleValue styleName="backgroundAlpha" target="myWin" value="0.2" />			
+				
+				<SetProperty propertyName="visible" target="" value="true"/>
+				<RunCode code="application.myWin.close()"/>
+			</body>
+		</TestCase>
+  		
+    </testCases>
+</UnitTester>
\ No newline at end of file

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Added: incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Methods/WindowedSystemRawChildrenList_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Methods/WindowedSystemRawChildrenList_Methods.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Methods/WindowedSystemRawChildrenList_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Methods/WindowedSystemRawChildrenList_Methods.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,328 @@
+<?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/WindowedSystemRawChildrenList/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="WindowedSystemRawChildrenList_App1.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.Application;
+
+]]>
+</mx:Script>
+
+<!-- 
+    Test Notes:
+    
+    We have some special stuff to do each time a new test is run.  We can't
+    use ResetComponent.
+
+    It seems we can't wait for an event on the "win" variable.  So we
+    dispatch our own events from methods instead.
+-->
+
+<testCases>
+
+    <TestCase testID="WindowedSystemRawChildrenList_addChild_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child.  This method is called by many other tests." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControl('control1')" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertPropertyValue target="listUnderTest" propertyName="numChildren" value="3" />
+            <AssertMethodValue method="value=application.confirmControl('control1')" value="true" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_addChildAt_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child at position 0." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',0)" value="true" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_addChildAt_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child at position 1." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',1)" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',1)" value="true" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_addChildAt_test3" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child at a position greater than the number of children." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',application.listUnderTest.numChildren)" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',application.listUnderTest.numChildren - 1)" value="true" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_addChildAt_test5" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child at the last position." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',2)" value="true" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_removeChild_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Add a child, then remove it." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControl('control1')" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.listUnderTest.removeChild(Application.application.mostRecentDO)" />
+            <AssertMethodValue method="value=application.confirmControl('control1')" value="false" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_removeChildAt_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Remove a child from position 0.  Also verify that the item at index 1 is moved to 0." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+            <RunCode code="application.addAControlAt('control2',1)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.removeTheControlAt(0)" />
+            <AssertMethodValue method="value=application.confirmControl('control1')" value="false" />
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control2',0)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_removeChildAt_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Remove a child from the last position.  Also verify that the item in the second to last position is then in the last position." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />
+            <RunCode code="application.addAControlAt('control2',3)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.removeTheControlAt(3)" waitEvent="controlRemoved" />
+            <AssertMethodValue method="value=application.confirmControl('control2')" value="false" />
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',2)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_removeChildAt_test3" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Remove a child from a position after the last position." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />
+            <RunCode code="application.addAControlAt('control2',3)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.removeTheControlAt(4)" waitEvent="controlRemoved" />
+            <AssertMethodValue method="value=application.confirmControl('control3')" value="false" />
+            <AssertMethodValue method="value=application.confirmControlAtPosition('control1',2)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildAt_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get the child at 0." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildAt('control1',0)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildAt_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get the child at 1." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',1)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildAt('control1',1)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildAt_test3" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get the child at the end." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildAt('control1',2)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildByName_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get an existing child." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildByName('control1')" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildByName_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get a non-existing child." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',2)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildByName('argyleSock')" value="false" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildIndex_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Index 0." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildIndex(0)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildIndex_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Index 1." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',1)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildIndex(1)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getChildIndex_test3" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Index invalid." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',1)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.getTheChildIndex(98)" value="false" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_setChildIndex_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Set control 0's index to 1." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.setTheChildIndex(1)" waitEvent="indexSet" />
+            <AssertMethodValue method="value=application.getTheChildIndex(1)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_setChildIndex_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Set control 1's index to 0." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',1)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.setTheChildIndex(0)" waitEvent="indexSet" />
+            <AssertMethodValue method="value=application.getTheChildIndex(0)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_setChildIndex_test3" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Set control 0's index to the end." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <RunCode code="application.setTheChildIndex(2)" waitEvent="indexSet" />
+            <AssertMethodValue method="value=application.getTheChildIndex(2)" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_getObjectsUnderPoint_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Get the objects under the point in the middle of the window." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.testGetObjectsUnderPoint()" value="true" />
+        </body>
+    </TestCase>
+    
+    <TestCase testID="WindowedSystemRawChildrenList_contains_test1" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Call contains() when it does." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.testContains()" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="WindowedSystemRawChildrenList_contains_test2" keywords="[Window,WindowedSystemRawChildrenList]"
+        description="Call contains() when it does not." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControlAt('control1',0)" waitEvent="controlAdded" />
+            <RunCode code="application.listUnderTest.removeChild(Application.application.mostRecentDO)" />
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.testContains()" value="false" />
+        </body>
+    </TestCase>
+
+</testCases>
+
+</UnitTester>
+	

Added: incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Properties/WindowedSystemRawChildrenList_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Properties/WindowedSystemRawChildrenList_Properties.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Properties/WindowedSystemRawChildrenList_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/Properties/WindowedSystemRawChildrenList_Properties.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.
+
+-->
+<UnitTester testDir="apollo/WindowedSystemRawChildrenList/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="WindowedSystemRawChildrenList_App1.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.Application;
+
+]]>
+</mx:Script>
+
+<!-- 
+    Test Notes:
+    
+    We have some special stuff to do each time a new test is run.  We can't
+    use ResetComponent.
+
+    It seems we can't wait for an event on the "win" variable.  So we
+    dispatch our own events from methods instead.
+-->
+
+<testCases>
+
+    <TestCase testID="WindowedSystemRawChildrenList_numChildren_test1" keywords="[Window,WindowedSystemRawChildrenList,numChildren]"
+        description="Check default numChildren." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+        </setup>
+        <body>
+            <AssertPropertyValue target="listUnderTest" propertyName="numChildren" value="2" />
+        </body>
+    </TestCase>     
+
+    <TestCase testID="WindowedSystemRawChildrenList_numChildren_test2" keywords="[Window,WindowedSystemRawChildrenList,numChildren]"
+        description="Check numChildren after adding a child." >
+        <setup>
+            <RunCode code="application.doReset()" waitEvent="resetComplete" />
+            <RunCode code="application.addAControl('control1')" waitEvent="controlAdded" />            
+        </setup>
+        <body>
+            <AssertPropertyValue target="listUnderTest" propertyName="numChildren" value="3" />
+        </body>
+    </TestCase>     
+
+</testCases>
+
+</UnitTester>
+	

Added: incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/SWFs/WindowedSystemRawChildrenList_App1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/SWFs/WindowedSystemRawChildrenList_App1.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/SWFs/WindowedSystemRawChildrenList_App1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/WindowedSystemRawChildrenList/SWFs/WindowedSystemRawChildrenList_App1.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,252 @@
+<?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" maxHeight="600" maxWidth="600" minHeight="100" minWidth="100" height="500" width="600">
+
+<mx:Script>
+<![CDATA[
+    import flash.display.DisplayObject;
+    import flash.events.Event;
+    import mx.events.AIREvent;
+    import mx.controls.HRule;
+    import mx.core.Application;
+    import mx.core.Window;
+    import mx.managers.WindowedSystemManager;
+    import mx.managers.WindowedSystemRawChildrenList;
+
+    public var mostRecentDO:DisplayObject;
+    public var win:Window;
+    public var winSysMgr:WindowedSystemManager;
+    public var listUnderTest:WindowedSystemRawChildrenList;
+
+
+
+
+    public function doTest():void{
+        trace("***************");
+        trace("Hello from doTest()");
+        trace("***************");
+    }
+
+
+
+
+
+
+
+
+
+    public function doReset():void{
+
+        if(win)
+            win.close();
+
+        if(winSysMgr)
+            winSysMgr = null;
+
+        if(listUnderTest)
+            listUnderTest = null;
+
+        win = new Window();
+        win.addEventListener(AIREvent.WINDOW_COMPLETE, handleWindowComplete);
+        win.width = 100;
+        win.height = 100;
+        win.open();
+
+    }
+    
+    private function handleWindowComplete(e:AIREvent):void{
+        winSysMgr = WindowedSystemManager(win.systemManager);
+        listUnderTest = WindowedSystemRawChildrenList(winSysMgr.rawChildren);    
+        dispatchEvent(new Event("resetComplete"));
+    }
+    
+    // Add something which is visible, and very simple.
+    public function addAControl(newName:String):void{
+        var hr:HRule = new HRule();
+        hr.name = newName;
+        mostRecentDO = hr;
+        listUnderTest.addChild(hr);
+        dispatchEvent(new Event("controlAdded"));
+    }
+
+    // Add something which is visible, and very simple.
+    public function addAControlAt(newName:String, position:int):void{
+        var hr:HRule = new HRule();
+        
+        trace("***************");
+        trace("addAControlAt(" + newName + "," + position + ")");
+        trace("numChildren is " + listUnderTest.numChildren);
+        traceListContents();
+        trace("***************");
+        
+        hr.name = newName;
+        mostRecentDO = hr;
+        listUnderTest.addChildAt(hr, position);
+        dispatchEvent(new Event("controlAdded"));
+    }
+    
+    // Confirm that a control is present, in one place.
+    public function confirmControl(controlName:String):Boolean{
+        var i:int;
+        var obj:Object;
+        var found:Boolean = false;
+        var ret:Boolean = false;
+
+        trace("***************");
+        trace("confirmControl(" + controlName + ")");
+        traceListContents();
+        trace("***************");
+
+        for(i = 0; i < listUnderTest.numChildren; ++i){
+            obj = listUnderTest.getChildAt(i);
+            
+            if(obj.name){
+                if(obj.name == controlName){                    
+                    // If we already found it, then we've found another.  Bad.
+                    if(found){
+                        ret = false;
+                        break;
+                    }
+                    else{
+                        ret = true; // but don't break.  check for dupes.
+                    }
+                        
+                    found = true;
+                }
+            }
+        }
+        
+        return ret;
+    }
+
+    // Yes, this could go in a RunCode.
+    // This is a separate method so we can put debugging code around it.
+    public function removeTheControlAt(index:int):String{
+        var ret:String = "";
+        
+        trace("***************");
+        trace("removeTheControlAt(" + index + ") before");
+        traceListContents();
+        trace("***************");
+
+        try{        
+            listUnderTest.removeChildAt(index);
+        }catch(e:Error){
+            ret = e.toString();
+        }
+        
+        trace("***************");
+        trace("removeTheControlAt(" + index + ") after");
+        traceListContents();
+        trace("***************");
+
+        dispatchEvent(new Event("controlRemoved"));
+        
+        return ret;
+    }
+    
+    // Confirm that a control with the given name is in that position,
+    // and only in that position.
+    public function confirmControlAtPosition(controlName:String,index:int):Boolean{
+        var i:int;
+        var obj:Object;
+        var ret:Boolean = false;
+
+        trace("***************");
+        trace("confirmControlAtPosition(" + controlName + "," + index + ")");
+        traceListContents();
+        trace("***************");
+        
+        for(i = 0; i < listUnderTest.numChildren; ++i){
+            obj = listUnderTest.getChildAt(i);
+            
+            if(obj.name){
+                if(obj.name == controlName){                    
+                    if(i == index){
+                        ret = true; // but don't break.  check for dupes.
+                    }
+                    else{
+                        ret = false;
+                        break;
+                    }
+                }
+            }
+        }
+        
+        return ret;
+    }
+
+    // Use getChildAt to confirm that the child at the index has that name.
+    public function getTheChildAt(controlName:String, index:int):Boolean{
+        return(listUnderTest.getChildAt(index).name == controlName);
+    }
+
+    // Use getChildByName to get the child.
+    public function getTheChildByName(controlName:String):Boolean{
+        return(listUnderTest.getChildByName(controlName) == mostRecentDO);
+    }
+
+    // Use getChildIndex to get an index.
+    public function getTheChildIndex(index:int):Boolean{
+        return(listUnderTest.getChildIndex(mostRecentDO) == index);
+    }
+
+    public function setTheChildIndex(index:int):void{
+        listUnderTest.setChildIndex(mostRecentDO, index);
+        dispatchEvent(new Event("indexSet"));
+    }
+
+    public function testGetObjectsUnderPoint():Boolean{
+        var arr:Array = listUnderTest.getObjectsUnderPoint(new Point((win.x + win.width)/2, (win.y + win.height)/2));
+        var ret:Boolean = false;
+        
+        if(String(arr[0]).indexOf('mouseCatcher') > -1 && String(arr[1]).indexOf('Window') > -1){
+             ret = true;
+        }else{
+            trace(arr[0]);
+            trace(arr[1]);
+        }
+            
+        return ret;
+    }
+    
+    public function testContains():Boolean{
+        return (listUnderTest.contains(mostRecentDO));
+    }
+
+    // Debugging
+    public function traceListContents():void{
+        var child:DisplayObject;
+        var i:int;
+        
+        for(i = 0; i < winSysMgr.rawChildren.numChildren; ++i){
+            child = listUnderTest.getChildAt(i);
+            trace("    " + child);
+
+            if(child.name)
+                trace("        name: " + child.name);
+        }    
+    }
+    
+
+]]>
+</mx:Script>
+
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/MyCompareBitmap.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/MyCompareBitmap.as?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/MyCompareBitmap.as (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/MyCompareBitmap.as Mon Aug  6 20:51:08 2012
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+	import flash.system.Capabilities;
+	import flash.display.DisplayObject;
+	public class MyCompareBitmap extends CompareBitmap
+	{
+		//add mac_url, linux_url property, also make sure they are set when
+		//execute is called. when os is mac or linux, if the value mac_url, linux_url is set,
+		//test assumes the image will be different than the one created in window, so 
+		// the bitmap image will be read/created from mac_url or linux_url.
+		
+		public var mac_url:String; 
+		public var linux_url:String; 
+		public var isURLConfigured:Boolean=false;
+		
+		public function configureURL():void
+		{
+			trace("###configureURL is called");
+			var current_os:String=Capabilities.os.toLowerCase();
+			if (current_os.indexOf("window")>-1)
+			{              
+				trace("###url="+url);
+			}else if (current_os.indexOf("mac")>-1 && mac_url!="")
+			{
+				url=mac_url;      
+			}else if (current_os.indexOf("linux")>-1 && linux_url!="")
+			{
+				url=linux_url;
+			}
+			isURLConfigured=true;
+		}
+		override public function execute(root:DisplayObject, context:UnitTester,testCase:TestCase,
+						testResult:TestResult):Boolean
+		{
+			if (!isURLConfigured)
+				configureURL();
+			return super.execute(root,context,testCase,testResult);
+		}
+	}
+}
\ No newline at end of file



Mime
View raw message