You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/03/02 07:14:27 UTC

[04/12] changes required to get basictests to compile and not RTE when launched. Now to get it to actually run some tests

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/RPCDataBindingTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/RPCDataBindingTests.mxml b/mustella/tests/basicTests/halo/views/RPCDataBindingTests.mxml
new file mode 100644
index 0000000..fed9384
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/RPCDataBindingTests.mxml
@@ -0,0 +1,43 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"     
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+
+]]>
+</fx:Script>
+<fx:Declarations>
+    <mx:HTTPService id="svc" url="halo/views/ListOfUSStateNames.xml" />
+</fx:Declarations>
+
+    <mx:List id="testList" dataProvider="{svc.lastResult.states.state}" labelField="name"/>
+    <mx:Button id="loadButton" label="load" click="svc.send()" />
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/RadioButtonTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/RadioButtonTests.mxml b/mustella/tests/basicTests/halo/views/RadioButtonTests.mxml
new file mode 100644
index 0000000..963b3f7
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/RadioButtonTests.mxml
@@ -0,0 +1,41 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"                >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+]]>
+</fx:Script>
+
+    <mx:RadioButtonGroup id="halo" />
+    <mx:RadioButton id="testRadio1" label="test Radio1" groupName="halo" />
+    <mx:RadioButton id="testRadio2" label="test Radio2" groupName="halo" />
+    <mx:RadioButton id="testRadio3" label="test Radio3" groupName="halo" />
+
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/SWFLoaderTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/SWFLoaderTests.mxml b/mustella/tests/basicTests/halo/views/SWFLoaderTests.mxml
new file mode 100644
index 0000000..f38ced0
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/SWFLoaderTests.mxml
@@ -0,0 +1,39 @@
+<?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:Canvas 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"     
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+]]>
+</fx:Script>
+
+    <mx:SWFLoader id="testLoader" source="basicLoader.swf"/>
+
+</mx:Canvas>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/SliderTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/SliderTests.mxml b/mustella/tests/basicTests/halo/views/SliderTests.mxml
new file mode 100644
index 0000000..95981ef
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/SliderTests.mxml
@@ -0,0 +1,41 @@
+<?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:Canvas 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"                >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+]]>
+</fx:Script>
+
+    <mx:HSlider id="testSlider" width="150" 
+            minimum="0" maximum="100" tickInterval="10" snapInterval="1"
+            thumbCount="1" values="[0,100]" labels="[0,100]" liveDragging="true"
+            change="testSlider.alpha = (testSlider.values[0] / 100);"
+            />
+
+</mx:Canvas>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/TabNavigatorTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/TabNavigatorTests.mxml b/mustella/tests/basicTests/halo/views/TabNavigatorTests.mxml
new file mode 100644
index 0000000..a0cb7a4
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/TabNavigatorTests.mxml
@@ -0,0 +1,50 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"     
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+
+]]>
+</fx:Script>
+
+    <mx:TabNavigator id="testTabNavigator" >
+        <mx:VBox label="First Page" width="250" height="200" >
+            <mx:Label id="pageLabel1" text="This is Page One" />
+        </mx:VBox>
+        <mx:VBox label="Second Page" width="250" height="200" >
+            <mx:Label id="pageLabel2" text="This is Page Two" />
+        </mx:VBox>
+        <s:NavigatorContent label="Third Page" width="250" height="200" >
+            <s:Label id="pageLabel3" text="This is Page Three" />
+        </s:NavigatorContent >
+    </mx:TabNavigator>
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/TextAreaTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/TextAreaTests.mxml b/mustella/tests/basicTests/halo/views/TextAreaTests.mxml
new file mode 100644
index 0000000..df60c6d
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/TextAreaTests.mxml
@@ -0,0 +1,37 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"                >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+]]>
+</fx:Script>
+
+    <mx:TextArea id="testTextArea" width="100" height="100" />
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/TextInputTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/TextInputTests.mxml b/mustella/tests/basicTests/halo/views/TextInputTests.mxml
new file mode 100644
index 0000000..0ddb7e8
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/TextInputTests.mxml
@@ -0,0 +1,37 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"                >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+]]>
+</fx:Script>
+
+    <mx:TextInput id="testTextInput" width="100" />
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/TextTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/TextTests.mxml b/mustella/tests/basicTests/halo/views/TextTests.mxml
new file mode 100644
index 0000000..2eca4e0
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/TextTests.mxml
@@ -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.
+
+-->
+<mx:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"                >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+    public function initTextComponent():void
+    {
+            testText.htmlText = "This is a <b>Text</b> component which contains <i>html</i><br>The <b>Slider</b> controls the alpha of the <b>Image</b>";
+    }
+]]>
+</fx:Script>
+
+    <mx:Text id="testText" width="100" creationComplete="initTextComponent()" />
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/halo/views/TreeTests.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/halo/views/TreeTests.mxml b/mustella/tests/basicTests/halo/views/TreeTests.mxml
new file mode 100644
index 0000000..2612a03
--- /dev/null
+++ b/mustella/tests/basicTests/halo/views/TreeTests.mxml
@@ -0,0 +1,66 @@
+<?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:VBox 
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"     
+    initialize="initTreeComponent()"
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+    public var treeDP:Array = [ { label: "Inbox", children: [
+                                                    { label: "Personal", data: "personal"},
+                                                    { label: "Marketing", data: "mktg"},
+                                                    { label: "To do", data: "todo"} ]},
+                                                    { label: "Calendar", children: [
+                                                                 { label: "Appointments", data: "appointments"},
+                                                                 { label: "Meetings", data: "meetings"} ]}, 
+                                                    { label: "Sent", data: "sent" },
+                                                    { label: "Deleted Items", data: "deleted" },
+                                                    { label: "Spam", data: "spam" } ];
+
+
+    public function initTreeComponent():void
+    {
+            testTree.dataProvider = treeDP;
+    }
+
+    public function insertItemInTree():void
+    {
+            var c:ICollectionView = ICollectionView(testTree.dataProvider);
+            var cursor:IViewCursor = c.createCursor();
+            cursor.seek(CursorBookmark.FIRST, 1);
+            cursor.insert({label:'Archive', data:'archive'});
+    }
+
+]]>
+</fx:Script>
+
+    <mx:Tree id="testTree" />
+    <mx:Button id="addNodeButton" label="addTreeNodeAt" click="insertItemInTree()" />
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/shim/VBox.as
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/shim/VBox.as b/mustella/tests/basicTests/shim/VBox.as
new file mode 100644
index 0000000..7192199
--- /dev/null
+++ b/mustella/tests/basicTests/shim/VBox.as
@@ -0,0 +1,47 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 shim
+{
+	import flash.display.DisplayObject;
+	import flash.display.DisplayObjectContainer;
+	
+	import org.apache.flex.html.staticControls.Container;
+	
+	[DefaultProperty("mxmlContent")]
+    
+    /**
+     *  A VBox approximation.
+     */    
+	public class VBox extends Container
+	{
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function VBox()
+		{
+			super();
+		}
+		
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml b/mustella/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml
new file mode 100644
index 0000000..9042af7
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml
@@ -0,0 +1,67 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+    
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+            public static function init(o:DisplayObject):void
+            {
+            }
+        ]]>
+    </mx:Script>
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+    
+    <mx:Script>
+        <![CDATA[
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <TestCase testID="SetupAdvancedStyleClientTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkAdvancedStyleClientTest" 
+                             waitEvent="updateComplete" />
+            </body>
+        </TestCase>
+        <!--This test case is to test the style only defined in component-->
+        <TestCase testID="ADV_component_setCompStyle" description="" keywords="[ADVStyleTestClass, setCompstyle]" >
+            <setup>
+                <RunCode code="application.sparkAdvancedStyleClientTests.setCompStyle()"/>
+            </setup>
+            <body>
+                <AssertStyleValue styleName="teststyle_3_uint_inh" target="sparkAdvancedStyleClientTests.componentADV" valueExpression="value=56"/>
+                <AssertStyleValue styleName="teststyle_1_string_noinh" target="sparkAdvancedStyleClientTests.componentADV" value="testsetStr"/>
+            </body>
+        </TestCase>
+        
+        <!--This test case is to test the styles defined both in main application and component using same names with Class and ID Selector-->
+        <TestCase testID="ADV_component_inlinetesting" description="" keywords="[ADVStyleTestClass, inline testing]" >
+            <body>
+               <AssertStyleValue styleName="teststyle_2_number_noinh" target="sparkAdvancedStyleClientTests.componentADVInline" value="12"/>
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/AnimateConstraintsTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/AnimateConstraintsTestScript.mxml b/mustella/tests/basicTests/spark/scripts/AnimateConstraintsTestScript.mxml
new file mode 100644
index 0000000..686dbaf
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/AnimateConstraintsTestScript.mxml
@@ -0,0 +1,120 @@
+<?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
+    xmlns:mx="http://www.adobe.com/2006/mxml"
+    xmlns="*"
+    testSWF="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[
+            private function play(target:Object):void
+            {
+            }
+        ]]>
+    </mx:Script>
+            
+
+	<testCases>
+
+        <TestCase testID="SetupAnimateConstraintsTest" keywords="[animate]" description="Spark.Effects.Animate checkin test setup.">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkAnimateConstraintsTest" 
+                             waitEvent="updateComplete" timeout="500" />
+                <Pause timeout="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="x" value="10"/>
+            </body>
+        </TestCase>
+        
+<!--        <TestCase testID="AnimateConstraints_CheckinTest_1" keywords="[animate]" description="Spark.Effects.Animate checkin test 1.">
+            <body>
+                <SetProperty target="sparkAnimateConstraintsTests" propertyName="currentState" 
+                             value="s2" />
+                <Pause timeout="400"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="right" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b2" propertyName="left" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3" propertyName="x" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3a" propertyName="left" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3b" propertyName="right" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b4" propertyName="bottom" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b5" propertyName="top" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6" propertyName="y" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6a" propertyName="top" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6b" propertyName="bottom" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b7" propertyName="horizontalCenter" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b8" propertyName="horizontalCenter" value="-50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b9" propertyName="left" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b10" propertyName="verticalCenter" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b11" propertyName="verticalCenter" value="-50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b12" propertyName="bottom" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b13" propertyName="percentWidth" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b14" propertyName="percentWidth" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b15" propertyName="width" value="200"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b16" propertyName="percentHeight" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b17" propertyName="percentHeight" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b18" propertyName="height" value="300"/>
+            </body>
+        </TestCase>
+-->
+        <TestCase testID="AnimateConstraints_CheckinTest_2" keywords="[animate]" description="Spark.Effects.Animate checkin test 2.">
+            <body>
+                <SetProperty target="sparkAnimateConstraintsTests" propertyName="currentState" value="s1" />
+                <Pause timeout="400"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="left" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b2" propertyName="right" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3" propertyName="left" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3a" propertyName="left" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b3b" propertyName="right" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b4" propertyName="top" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b5" propertyName="bottom" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6" propertyName="top" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6a" propertyName="top" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b6b" propertyName="bottom" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b7" propertyName="horizontalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b8" propertyName="horizontalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b9" propertyName="horizontalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b10" propertyName="verticalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b11" propertyName="verticalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b12" propertyName="verticalCenter" value="0"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b13" propertyName="percentWidth" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b14" propertyName="percentWidth" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b15" propertyName="percentWidth" value="50"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b16" propertyName="percentHeight" value="10"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b17" propertyName="percentHeight" value="100"/>
+                <AssertPropertyValue target="sparkAnimateConstraintsTests.b18" propertyName="percentHeight" value="50"/>
+            </body>
+        </TestCase>
+        
+	</testCases>
+
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/BorderContainerTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/BorderContainerTestScript.mxml b/mustella/tests/basicTests/spark/scripts/BorderContainerTestScript.mxml
new file mode 100644
index 0000000..625037b
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/BorderContainerTestScript.mxml
@@ -0,0 +1,80 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+            public static function init(o:DisplayObject):void
+            {
+            }
+        ]]>
+    </mx:Script>
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+    
+    <mx:Script>
+        <![CDATA[
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+    
+        <TestCase testID="SetupSparkBorderContainerTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkBorderContainerTest" 
+                             waitEvent="updateComplete" />
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="borderWeight" value="1" />
+            </body>
+        </TestCase>
+        
+        <TestCase testID="BorderContainer_background">
+            <setup> 
+                <ResetComponent target="sparkBorderContainerTests" className="spark.views.BorderContainerTests" waitEvent="updateComplete" waitTarget="sparkBorderContainerTests"/>
+                <SetStyle target="sparkBorderContainerTests.testBorder" styleName="backgroundColor" value="0xaaffaa"/>
+                <SetStyle target="sparkBorderContainerTests.testBorder" styleName="backgroundAlpha" value="0.5" waitEvent="updateComplete" waitTarget="sparkBorderContainerTests.testBorder"/>
+            </setup>    
+            <body>
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="backgroundColor" value="0xaaffaa" />
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="backgroundAlpha" value="0.5" />
+                <AssertPixelValue target="sparkBorderContainerTests.testBorder" x="20" y="20" value="0xD5FFD5" />
+            </body>   
+        </TestCase>
+        
+        <TestCase testID="BorderContainer_border">
+            <setup> 
+                <ResetComponent target="sparkBorderContainerTests" className="spark.views.BorderContainerTests" waitEvent="updateComplete" waitTarget="sparkBorderContainerTests"/>
+                <SetStyle target="sparkBorderContainerTests.testBorder" styleName="borderColor" value="0xFF0000"/>
+                <SetStyle target="sparkBorderContainerTests.testBorder" styleName="borderAlpha" value="0.4"/>
+                <SetStyle target="sparkBorderContainerTests.testBorder" styleName="borderWeight" value="10" waitEvent="updateComplete" waitTarget="sparkBorderContainerTests.testBorder"/>
+            </setup>    
+            <body>
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="borderColor" value="0xFF0000" />
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="borderAlpha" value="0.4" />
+                <AssertStyleValue target="sparkBorderContainerTests.testBorder" styleName="borderWeight" value="10" />
+                <AssertPixelValue target="sparkBorderContainerTests.testBorder" x="8" y="8" value="0xFF9999" />
+            </body>   
+        </TestCase>
+    </testCases>
+
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/ButtonBarTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/ButtonBarTestScript.mxml b/mustella/tests/basicTests/spark/scripts/ButtonBarTestScript.mxml
new file mode 100644
index 0000000..0a152cc
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/ButtonBarTestScript.mxml
@@ -0,0 +1,63 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupSparkButtonBarTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="sparkButtonBarTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="sparkButtonBarTests.testButtonBar.dataProvider" propertyName="length" value="2" />
+				<AssertPropertyValue target="sparkButtonBarTests.testButtonBar" propertyName="selectedIndex" value="0" />
+				<AssertPropertyValue target="sparkButtonBarTests.testViewStack" propertyName="selectedIndex" value="0" />
+			</body>
+		</TestCase>
+		<TestCase testID="SparkButtonBarTest1">
+			<body>
+				<DispatchMouseEvent target="sparkButtonBarTests.testButtonBar" type="mouseOver" localX="120" localY="10" />
+				<DispatchMouseClickEvent target="sparkButtonBarTests.testButtonBar" localX="120" localY="10" waitEvent="change" />
+				<AssertPropertyValue target="sparkButtonBarTests.testButtonBar" propertyName="selectedIndex" value="1" />
+				<AssertPropertyValue target="sparkButtonBarTests.testViewStack" propertyName="selectedIndex" value="1" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/ButtonTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/ButtonTestScript.mxml b/mustella/tests/basicTests/spark/scripts/ButtonTestScript.mxml
new file mode 100644
index 0000000..918c730
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/ButtonTestScript.mxml
@@ -0,0 +1,61 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupSparkButtonTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="sparkButtonTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="sparkButtonTests.testButton" propertyName="label" value="test button" />
+				<AssertPropertyValue target="sparkButtonTests.testLabel" propertyName="text" value="test" />
+			</body>
+		</TestCase>
+		<TestCase testID="SparkButtonTest1">
+			<body>
+				<DispatchMouseEvent target="sparkButtonTests.testButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="sparkButtonTests.testButton" localX="10" localY="10" />
+				<AssertPropertyValue target="sparkButtonTests.testLabel" propertyName="text" value="This is a test" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/CheckBoxTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/CheckBoxTestScript.mxml b/mustella/tests/basicTests/spark/scripts/CheckBoxTestScript.mxml
new file mode 100644
index 0000000..026ce43
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/CheckBoxTestScript.mxml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupSparkCheckBoxTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="sparkCheckBoxTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="sparkCheckBoxTests.testCheckBox" propertyName="label" value="test CheckBox" />
+			</body>
+		</TestCase>
+		<TestCase testID="SparkCheckBoxTest1">
+			<body>
+				<DispatchMouseEvent target="sparkCheckBoxTests.testCheckBox" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="sparkCheckBoxTests.testCheckBox" localX="10" localY="10" />
+				<AssertPropertyValue target="sparkCheckBoxTests.testCheckBox" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/CollatorTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/CollatorTestScript.mxml b/mustella/tests/basicTests/spark/scripts/CollatorTestScript.mxml
new file mode 100644
index 0000000..19dfca8
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/CollatorTestScript.mxml
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="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[
+            import flash.globalization.Collator;
+            import flash.globalization.CollatorMode;
+            public var flashMatchingCollator:flash.globalization.Collator;
+            public var flashSortingCollator:flash.globalization.Collator;
+            private static const testSortData : Array = [
+                "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
+                "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
+                "Ä", "ä", "AE", "ae", "Æ", "æ", "OE", "oe", "Œ", "œ", "ç",
+                "Ö", "ö", "Ô", "ô",                    // sw, de
+                "İ", "ı",                             // tr
+                "CX", "CH", "CHX", "cx", "ch", "chx",
+                "SS", "ss", "ß",                    // de
+                "VU", "WO", "vu", "wo",                // sw
+                "あ", "ア", "ぁ", "ァ", "ア", "ァ",    // ja Kanas
+                "A", "a",    "B", "b",                // Full-width alphabets
+                "手", "中", "土", "岀",                // Unihan
+                "cote", "côte", "coté", "côté",        // Explains accented chars are evaluated from the end in fr
+                "acxa", "acha", "adxa",                // es-ES@collation=traditional
+                "öf", "of",                            // de_dictionary
+                "z9.txt", "z12.txt", "z012.txt", "z13.txt", "z013.txt",    // numeric comparison
+            ];
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <TestCase testID="SetupCollatorTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkCollatorTest" 
+                             waitEvent="updateComplete" />
+            </body>
+        </TestCase>
+        <TestCase testID="Matching_Collator_test" description="" keywords="[MatchingCollator]">
+            <setup>
+                <RunCode code="flashMatchingCollator=new flash.globalization.Collator('fr',CollatorMode.MATCHING)" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCollatorTests.matchingCollator" propertyName="actualLocaleIDName" valueExpression="value=flashMatchingCollator.actualLocaleIDName" />
+                <AssertMethodValue method="value=application.sparkCollatorTests.matchingCollator.equals('coté','côte')" valueExpression="value=flashMatchingCollator.equals('coté','côte')" />
+            </body>
+        </TestCase>
+        <TestCase testID="Matching_Collator_test1" description="" keywords="[MatchingCollator]">
+            <setup>
+                <RunCode code="flashMatchingCollator=new flash.globalization.Collator('fr',CollatorMode.MATCHING)" />
+                <RunCode code="flashMatchingCollator.ignoreCase=false" />
+                <RunCode code="flashMatchingCollator.ignoreCharacterWidth=false" />
+                <RunCode code="flashMatchingCollator.ignoreDiacritics=false" />
+                <RunCode code="flashMatchingCollator.ignoreKanaType=false" />
+                <RunCode code="flashMatchingCollator.ignoreSymbols=false" />
+                <RunCode code="flashMatchingCollator.numericComparison=false" />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="ignoreCase" value="false"  />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="ignoreCharacterWidth" value="false" />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="ignoreDiacritics" value="false"  />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="ignoreKanaType" value="false"  />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="ignoreSymbols" value="false"  />
+                <SetProperty target="sparkCollatorTests.matchingCollator" propertyName="numericComparison" value="false" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCollatorTests.matchingCollator" propertyName="actualLocaleIDName" valueExpression="value=flashMatchingCollator.actualLocaleIDName" />
+                <AssertMethodValue method="value=application.sparkCollatorTests.matchingCollator.equals('coté','côte')" valueExpression="value=flashMatchingCollator.equals('coté','côte')" />
+            </body>
+        </TestCase>
+        <TestCase testID="Matching_Collator_test2" description="" keywords="[MatchingCollator, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashMatchingCollator=new flash.globalization.Collator(application.sparkCollatorTests.getLocale.text,CollatorMode.MATCHING)" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashMatchingCollator.actualLocaleIDName" target="sparkCollatorTests.matchingCollatorNoLocaleInline"/>
+            </body>
+        </TestCase>
+        <TestCase testID="Sorting_Collator_test" description="" keywords="[SortingCollator]">
+            <setup>
+                <RunCode code="flashSortingCollator=new flash.globalization.Collator('xx',CollatorMode.SORTING)" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCollatorTests.sortingCollator" propertyName="actualLocaleIDName" valueExpression="value=flashSortingCollator.actualLocaleIDName" />
+                <AssertMethodValue method="value=application.sparkCollatorTests.sortingCollator.equals('coté','côte')" valueExpression="value=flashSortingCollator.equals('coté','côte')" />
+            </body>
+        </TestCase>
+        <TestCase testID="Sorting_Collator_test1" description="" keywords="[SortingCollator]">
+            <setup>
+                <RunCode code="flashSortingCollator=new flash.globalization.Collator('xx',CollatorMode.SORTING)" />
+                <RunCode code="flashSortingCollator.ignoreCase=false" />
+                <RunCode code="flashSortingCollator.ignoreCharacterWidth=false" />
+                <RunCode code="flashSortingCollator.ignoreDiacritics=false" />
+                <RunCode code="flashSortingCollator.ignoreKanaType=false" />
+                <RunCode code="flashSortingCollator.ignoreSymbols=false" />
+                <RunCode code="flashSortingCollator.numericComparison=false" />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="ignoreCase" value="false" />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="ignoreCharacterWidth" value="false" />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="ignoreDiacritics" value="false"  />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="ignoreKanaType" value="false" />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="ignoreSymbols" value="false"  />
+                <SetProperty target="sparkCollatorTests.sortingCollator" propertyName="numericComparison" value="false"  />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCollatorTests.sortingCollator" propertyName="actualLocaleIDName" valueExpression="value=flashSortingCollator.actualLocaleIDName" />
+                <AssertMethodValue method="value=testSortData.sort(application.sparkCollatorTests.sortingCollator.compare)" valueExpression="value=testSortData.sort(flashSortingCollator.compare)" />
+            </body>
+        </TestCase>
+        <TestCase testID="Sorting_Collator_test2" description="" keywords="[SortingCollator, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashSortingCollator=new flash.globalization.Collator(application.sparkCollatorTests.getLocale.text,CollatorMode.SORTING)" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashSortingCollator.actualLocaleIDName" target="sparkCollatorTests.sortingCollatorNoLocaleInline"/>
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/ComboBoxTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/ComboBoxTestScript.mxml b/mustella/tests/basicTests/spark/scripts/ComboBoxTestScript.mxml
new file mode 100644
index 0000000..50e0d9f
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/ComboBoxTestScript.mxml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+    
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+            public static function init(o:DisplayObject):void
+            {
+            }
+        ]]>
+    </mx:Script>
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+    
+    <mx:Script>
+        <![CDATA[
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <!--
+        -->
+        <TestCase testID="SetupSparkComboBoxTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkComboBoxTest" 
+                             waitEvent="updateComplete" />
+                <AssertPropertyValue target="sparkComboBoxTests.testCombo" propertyName="selectedItem" value="Alabama" />
+            </body>
+        </TestCase>
+        <TestCase testID="SparkComboBoxTest1">
+            <body>
+                <DispatchMouseEvent target="sparkComboBoxTests.testCombo" type="rollOver" waitEvent="rollOver" localX="135" localY="10" />
+                <DispatchMouseEvent target="sparkComboBoxTests.testCombo" type="mouseDown" waitEvent="mouseDown" localX="135" localY="10" />
+                <AssertEvent target="sparkComboBoxTests.testCombo" eventName="open" eventClass="spark.events::DropDownEvent" />
+                <DispatchMouseEvent target="sparkComboBoxTests.testCombo" type="mouseUp" waitEvent="mouseUp" localX="135" localY="10" />
+                <AssertPropertyValue target="sparkComboBoxTests.testCombo.dropDown" propertyName="visible" value="true" />
+            </body>
+        </TestCase>
+        <TestCase testID="SparkComboBoxTest2">
+            <body>
+                <DispatchMouseEvent target="sparkComboBoxTests.testCombo.dropDown" type="mouseOver" localX="10" localY="30" />
+                <DispatchMouseClickEvent target="sparkComboBoxTests.testCombo.dropDown" localX="10" localY="30" />
+                <AssertEvent target="sparkComboBoxTests.testCombo" eventName="close" eventClass="spark.events::DropDownEvent" />
+                <AssertPropertyValue target="sparkComboBoxTests.testCombo" propertyName="selectedItem" value="Alaska" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml b/mustella/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml
new file mode 100644
index 0000000..2b1051c
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml
@@ -0,0 +1,123 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="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[
+            import flash.globalization.CurrencyFormatter;
+            import flash.globalization.NationalDigitsType;
+            import flash.globalization.CurrencyParseResult;
+            public var flashCF:flash.globalization.CurrencyFormatter;
+            
+            
+            public var cfParseResult:CurrencyParseResult;
+            public var flashParseResult:CurrencyParseResult;
+            
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <TestCase testID="SetupCurrencyFormatterTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkCurrencyFormatterTest" 
+                             waitEvent="updateComplete" />
+            </body>
+        </TestCase>
+        <TestCase testID="CurrencyFormatter_test" description="" keywords="[CurrencyFormatter, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('xx')" />
+                <RunCode code="flashCF.negativeCurrencyFormat=1" />
+                <RunCode code="cfParseResult=application.sparkCurrencyFormatterTests.cfFormatter.parse('-$1234')" />
+                <RunCode code="flashParseResult=flashCF.parse('-$1234')" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCurrencyFormatterTests.cfFormatter" propertyName="actualLocaleIDName" valueExpression="value=flashCF.actualLocaleIDName" />
+                <AssertMethodValue method="value=cfParseResult.value" valueExpression="value=flashParseResult.value" />
+                <AssertMethodValue method="value=cfParseResult.currencyString" valueExpression="value=flashParseResult.currencyString" />
+                <AssertPropertyValue target="sparkCurrencyFormatterTests.cfFormatter" propertyName="lastOperationStatus" valueExpression="value=flashCF.lastOperationStatus"/>               
+            </body>
+        </TestCase>
+        <TestCase testID="CurrencyFormatter_test1" description="" keywords="[CurrencyFormatter, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter(application.sparkCurrencyFormatterTests.getLocale.text)" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashCF.actualLocaleIDName" target="sparkCurrencyFormatterTests.cfFormatterNoLocaleInline"/>
+            </body>
+        </TestCase>
+        <!--Set/Get Inline decimalSeparator as positive value and format numbers-->
+        <TestCase testID="CF_decimalSeparator_test" description="" keywords="[CurrencyFormatter, decimalSeparator]">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('en-US')"/>
+                <RunCode code="flashCF.decimalSeparator='.'"/>
+                <RunCode code="flashCF.setCurrency('INR','@')"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCurrencyFormatterTests.cfFormatterDecimalSeparator" propertyName="decimalSeparator" valueExpression="value=flashCF.decimalSeparator"/>
+                <AssertMethodValue method="value=application.sparkCurrencyFormatterTests.cfFormatterDecimalSeparator.format(-1234567.89012)" valueExpression="value=flashCF.format(-1234567.89012)" />
+            </body>
+        </TestCase>    
+        <!--Binding property by lable text-->
+         <TestCase testID="CF_digitsType_test" description="" keywords="[CurrencyFormatter, digitsType]">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('en-US')" />
+                <RunCode code="flashCF.digitsType=NationalDigitsType.CHAM" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="sparkCurrencyFormatterTests.cfLabel" propertyName="text" valueExpression="value=flashCF.digitsType" />
+            </body>
+        </TestCase>    
+        <!-- Test function of fractionalDigits property -->
+        <TestCase testID="CF_fractionalDigits_test" description="" keywords="[CurrencyFormatter, fractionalDigits]">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('en-US')" />
+                <RunCode code="flashCF.trailingZeros=true" />
+                <RunCode code="flashCF.fractionalDigits=1" />
+                <RunCode code="flashCF.useGrouping=true" />
+                <RunCode code="flashCF.groupingSeparator=','"/>
+                <RunCode code="flashCF.groupingPattern='*'" />
+            </setup>
+            <body>
+                <AssertMethodValue method="value=application.sparkCurrencyFormatterTests.cfFormatterFractionalDigits.formattingWithCurrencySymbolIsSafe('USD')" valueExpression="value=flashCF.formattingWithCurrencySymbolIsSafe('USD')" />
+                <AssertMethodValue method="value=application.sparkCurrencyFormatterTests.cfFormatterFractionalDigits.format(1234.352)" valueExpression="value=flashCF.format(1234.352)" />
+            </body>
+        </TestCase>
+        <TestCase testID="CF_errorText_test" description="" keywords="[CurrencyFormatter, errorText]">
+            <body>
+                <AssertMethodValue method="value=application.sparkCurrencyFormatterTests.cfFormatterNoLocaleInline.format('abc')" value="#####"/>
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/CurrencyValidatorTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/CurrencyValidatorTestScript.mxml b/mustella/tests/basicTests/spark/scripts/CurrencyValidatorTestScript.mxml
new file mode 100644
index 0000000..42d8b6c
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/CurrencyValidatorTestScript.mxml
@@ -0,0 +1,107 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="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[
+           
+            import flash.globalization.CurrencyFormatter;
+            import flash.globalization.CurrencyParseResult;
+            import flash.globalization.LastOperationStatus;
+            import spark.validators.CurrencyValidator;
+            import mx.events.ValidationResultEvent;
+            public var flashCF:flash.globalization.CurrencyFormatter;
+            
+            
+            public var cfParseResult:CurrencyParseResult;
+            public var flashParseResult:CurrencyParseResult;
+            
+            
+            private function doCheck(objFlash:flash.globalization.CurrencyFormatter,objVal:spark.validators.CurrencyValidator):Boolean
+            {
+                var los:String = objFlash.lastOperationStatus;
+                var event:ValidationResultEvent = objVal.validate();
+                var currentControlIsValid:Boolean = (event.type == ValidationResultEvent.VALID);
+                var res:Boolean;
+                if(los==flash.globalization.LastOperationStatus.NO_ERROR)
+                {
+                    if(currentControlIsValid==true) // valide format
+                        res=true;
+                    else
+                        res=false;
+                }
+                else if(los==flash.globalization.LastOperationStatus.PARSE_ERROR)
+                {
+                    if(currentControlIsValid==false) // invalide format
+                        res=true;
+                    else
+                        res=false;
+                }
+                return res;
+            }
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <TestCase testID="SetupCurrencyValidatorTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkCurrencyValidatorTest" 
+                             waitEvent="updateComplete" />
+            </body>
+        </TestCase>
+        <TestCase testID="validate_currency_test1">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('en')" />
+                <RunCode code="flashParseResult=flashCF.parse('$123')" />
+                <ResetComponent target="sparkCurrencyValidatorTests.tb1" className="spark.components.TextInput" waitEvent="updateComplete" />
+                <SetProperty target="sparkCurrencyValidatorTests.tb1" propertyName="text" value="$123" />
+             </setup>
+            <body>
+                <AssertMethodValue method="value=doCheck(flashCF,application.sparkCurrencyValidatorTests.cv)" value="true" />
+            </body>
+        </TestCase>
+        <TestCase testID="validate_currency_test2">
+            <setup>
+                <RunCode code="flashCF=new flash.globalization.CurrencyFormatter('en')" />
+                <RunCode code="flashParseResult=flashCF.parse('$123x')" />
+                <ResetComponent target="sparkCurrencyValidatorTests.tb1" className="spark.components.TextInput" waitEvent="updateComplete" />
+                <SetProperty target="sparkCurrencyValidatorTests.tb1" propertyName="text" value="$123x" />
+            </setup>
+            <body>
+                <AssertMethodValue method="value=doCheck(flashCF,application.sparkCurrencyValidatorTests.cv)" value="true" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/DataGridTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/DataGridTestScript.mxml b/mustella/tests/basicTests/spark/scripts/DataGridTestScript.mxml
new file mode 100644
index 0000000..c84f079
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/DataGridTestScript.mxml
@@ -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.
+
+-->
+<UnitTester xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupSparkDataGridTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="sparkDataGridTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="sparkDataGridTests.testdg" propertyName="dataProvider" value="null" />
+			</body>
+		</TestCase>
+        
+		<TestCase testID="sparkDataGridTest1">
+			<body>
+                
+                <!-- set up -->
+                <SetProperty target="sparkDataGridTests.testdg" propertyName="dataProvider" valueExpression="value=application.sparkDataGridTests.dp" waitEvent="enterFrame" waitTarget="stage" />
+                <SetProperty target="sparkDataGridTests.testdg" propertyName="columns" valueExpression="value=application.sparkDataGridTests.columns" waitEvent="enterFrame" waitTarget="stage"/>
+                
+                <!-- test add/remove columns -->
+                <RunCode code="application.sparkDataGridTests.testdg.columns.addItemAt(application.sparkDataGridTests.col4, 0)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.testdg.columns.removeItemAt(0)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.testdg.columns.addItemAt(application.sparkDataGridTests.col4, 4)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.testdg.columns.removeItemAt(4)" waitTarget="stage" waitEvent="enterFrame" />
+                <SetProperty target="sparkDataGridTests.col2" propertyName="visible" value="true" waitTarget="stage" waitEvent="enterFrame" />
+                
+                <!-- test add/remove dp items -->
+                <RunCode code="application.sparkDataGridTests.dp.addItemAt(application.sparkDataGridTests.obj1, 0)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.dp.removeItemAt(1)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.dp.addItemAt(application.sparkDataGridTests.obj2, 4)" waitTarget="stage" waitEvent="enterFrame" />
+                <RunCode code="application.sparkDataGridTests.dp.removeItemAt(5)" waitTarget="stage" waitEvent="enterFrame" />
+                
+                <!-- test scrolling -->
+                <RunCode code="application.sparkDataGridTests.testdg.setFocus()" waitEvent="focusIn" waitTarget="sparkDataGridTests.testdg"/>
+                <RunCode code="application.sparkDataGridTests.testdg.grid.caretRowIndex=0"/>
+                <DispatchKeyEvent keys="[DOWN,DOWN]" waitTarget="sparkDataGridTests.testdg" waitEvent="enterFrame" />
+                <DispatchKeyEvent keys="[PAGE_DOWN]" waitTarget="sparkDataGridTests.testdg" waitEvent="enterFrame" />
+                <DispatchKeyEvent keys="[UP,UP]" waitTarget="sparkDataGridTests.testdg" waitEvent="enterFrame" />
+                <DispatchKeyEvent keys="[PAGE_UP]" waitTarget="sparkDataGridTests.testdg" waitEvent="enterFrame" />
+                
+                <!-- test selection -->
+                <DispatchMouseClickEvent target="sparkDataGridTests.testdg" waitTarget="sparkDataGridTests.testdg" waitEvent="selectionChange" localX="40" localY="70" />
+                
+                <!-- interactive sort -->
+                <DispatchMouseClickEvent target="sparkDataGridTests.testdg" waitTarget="sparkDataGridTests.testdg" waitEvent="gridClick" localX="200" localY="5" />
+                <AssertMethodValue method="value=(application.sparkDataGridTests.testdg.dataProvider.sort != null)" value="true" />
+                
+			</body>
+		</TestCase>
+        
+	</testCases>
+</UnitTester>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml b/mustella/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml
new file mode 100644
index 0000000..dc115c5
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml
@@ -0,0 +1,111 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="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[
+            import flash.globalization.DateTimeFormatter;
+            public var flashDF:flash.globalization.DateTimeFormatter;
+            private var aDate:Date =  new Date(2000, 0, 1);
+            
+           
+        ]]>
+    </mx:Script>
+    
+    <testCases>
+        <TestCase testID="SetupDateTimeFormatterTest">
+            <body>
+                <SetProperty target="" propertyName="currentState" value="sparkDateTimeFormatterTest" 
+                             waitEvent="updateComplete" />
+            </body>
+        </TestCase>
+        <TestCase testID="DateTimeFormatter_test1" description="" keywords="[DateTimeFormatter, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashDF=new flash.globalization.DateTimeFormatter('xx')" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashDF.actualLocaleIDName" target="sparkDateTimeFormatterTests.dtFormatter"/>
+            </body>
+        </TestCase>
+        <TestCase testID="DateTimeFormatter_test2" description="" keywords="[DateTimeFormatter, format, dateStyle, Binding]">
+            <setup>
+                <RunCode code="flashDF=new flash.globalization.DateTimeFormatter('zh_CN', 'short', 'long')"/>    
+                <SetStyle styleName="locale" target="sparkDateTimeFormatterTests.dtFormatterShortDate" value="zh_CN" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="text" valueExpression="value=flashDF.format(aDate)" target="sparkDateTimeFormatterTests.dateShort" />    
+            </body>
+        </TestCase>
+        <TestCase testID="DateTimeFormatter_test3" description="" keywords="[DateTimeFormatter, format, timeStyle, Binding]">
+            <setup>
+                <RunCode code="flashDF=new flash.globalization.DateTimeFormatter('zh_CN', 'long', 'short')"/>
+                <SetStyle styleName="locale" target="sparkDateTimeFormatterTests.dtFormatterShortTime" value="zh_CN" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="text" valueExpression="value=flashDF.format(aDate)" target="sparkDateTimeFormatterTests.timeShort" />    
+            </body>
+        </TestCase>
+        <TestCase testID="DateTimeFormatter_test4" description="MaskFull" keywords="[DateTimeFormatter, DateTimePattern]">
+        <setup>
+            <RunCode code="flashDF=new flash.globalization.DateTimeFormatter('en-US')"/>
+            <RunCode code="flashDF.setDateTimePattern('EEEE, MMMM. d, yyyy \'at\' h:mm a')"/>
+        </setup>
+        <body>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date(2000, 0, 1))" valueExpression="value=flashDF.format(new Date(2000, 0, 1))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date(65, 2, 6, 9, 42, 16, 0))" valueExpression="value=flashDF.format(new Date(65, 2, 6, 9, 42, 16, 0))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date(30000000, 11, 31, 23, 59, 59, 935))" valueExpression="value=flashDF.format(new Date(30000000, 11, 31, 23, 59, 59, 935))"/>
+             <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date(0))" valueExpression="value=flashDF.format(new Date(0))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date('Mon Jul 21 1969 3:16 PM'))" valueExpression="value=flashDF.format(new Date('Mon Jul 21 1969 3:16 PM'))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date(1, 1, 1, 1, 1, 1, 1))" valueExpression="value=flashDF.format(new Date(1, 1, 1, 1, 1, 1, 1))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date('2:57 PM'))" valueExpression="value=flashDF.format(new Date('2:57 PM'))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date('Fri Nov 28 17:34:21 UTC-0500 2008'))" valueExpression="value=flashDF.format(new Date('Fri Nov 28 17:34:21 UTC-0500 2008'))"/>
+            <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterPattern.format(new Date())" valueExpression="value=flashDF.format(new Date())"/>
+        </body>
+    </TestCase>
+        <TestCase testID="DateTimeFormatter_test5" description="" keywords="[DateTimeFormatter, actualLocaleIDName]">
+            <setup>
+                <RunCode code="flashDF=new flash.globalization.DateTimeFormatter(application.sparkDateTimeFormatterTests.getLocale.text)" />
+            </setup>
+            <body>
+                <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashDF.actualLocaleIDName" target="sparkDateTimeFormatterTests.dtFormatterNoLocaleInline"/>
+            </body>
+        </TestCase>
+        <TestCase testID="DateTimeFormatter_test6" description="" keywords="[DateTimeFormatter, errorText]">
+            <body>
+                <AssertMethodValue method="value=application.sparkDateTimeFormatterTests.dtFormatterNoLocaleInline.format('2:45 PM')" value="#####"/>
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4ff6c5/mustella/tests/basicTests/spark/scripts/DeferredInstantiationTestScript.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/basicTests/spark/scripts/DeferredInstantiationTestScript.mxml b/mustella/tests/basicTests/spark/scripts/DeferredInstantiationTestScript.mxml
new file mode 100644
index 0000000..6759fb7
--- /dev/null
+++ b/mustella/tests/basicTests/spark/scripts/DeferredInstantiationTestScript.mxml
@@ -0,0 +1,62 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupSparkDeferredInstantiationTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="sparkDeferredInstantiationTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="sparkDeferredInstantiationTests.deferredContent" propertyName="numElements" value="0" />
+			</body>
+		</TestCase>
+		<TestCase testID="SparkDeferredInstantiationTest1">
+			<setup>
+				<RunCode code="application.sparkDeferredInstantiationTests.deferredContent.createDeferredContent()" 
+						 waitTarget="sparkDeferredInstantiationTests.deferredContent" waitEvent="contentCreationComplete" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="sparkDeferredInstantiationTests.deferredContent" propertyName="numElements" value="2" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>