flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1333232 [6/34] - in /incubator/flex/trunk: ./ frameworks/tests/ frameworks/tests/basicTests/ frameworks/tests/basicTests/dmv/ frameworks/tests/basicTests/dmv/scripts/ frameworks/tests/basicTests/dmv/views/ frameworks/tests/basicTests/fxg/ ...
Date Wed, 02 May 2012 22:45:08 GMT
Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuBarTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuBarTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuBarTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuBarTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,85 @@
+<?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="SetupMenuBarTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloMenuBarTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuBar" propertyName="id" value="testMenuBar" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest1">
+			<body>
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menuBarItems.0" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloMenuBarTests.testMenuBar.menuBarItems.0" localX="10" localY="10" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar.menus.0.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuBar.menus.0" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest2">
+			<body>
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menuBarItems.0" type="mouseOut" localX="10" localY="10" />
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menuBarItems.1" type="mouseOver" localX="10" localY="10" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar.menus.1.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuBar.menus.1" propertyName="visible" value="true" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuBar.menus.0" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest3">
+			<body>
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menus.1" type="mouseOver" localX="20" localY="30" />
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menus.1" type="mouseDown" localX="20" localY="30" />
+				<DispatchMouseEvent target="haloMenuBarTests.testMenuBar.menus.1" type="mouseUp" localX="20" localY="30" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar" eventName="itemClick" eventClass="mx.events::MenuEvent" />
+				<AssertEventPropertyValue propertyName="label" value="Paste" />
+				<AssertEvent target="haloMenuBarTests.testMenuBar" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuLabel" propertyName="text" value="Paste" />
+				<AssertPropertyValue target="haloMenuBarTests.testMenuBar.menus.1" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/MenuTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,91 @@
+<?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="SetupMenuTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloMenuTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloMenuTests.testMenuButton" propertyName="label" value="Create and Show Menu" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest1">
+			<body>
+				<DispatchMouseEvent target="haloMenuTests.testMenuButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloMenuTests.testMenuButton" localX="10" localY="10" />
+				<AssertEvent target="haloMenuTests.testMenu.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="haloMenuTests.testMenu" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest2">
+			<body>
+				<DispatchMouseEvent target="haloMenuTests.testMenu" type="mouseOver" localX="20" localY="10" />
+				<AssertEvent target="haloMenuTests.testMenu" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="haloMenuTests.testMenu.mx_internal:subMenus.0.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="haloMenuTests.testMenu.mx_internal:subMenus.0" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest3">
+			<body>
+				<DispatchMouseEvent target="haloMenuTests.testMenu" type="mouseOver" localX="20" localY="30" />
+				<AssertEvent target="haloMenuTests.testMenu" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="haloMenuTests.testMenu.mx_internal:subMenus.0" propertyName="visible" value="false" />
+				<AssertEvent target="haloMenuTests.testMenu" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="haloMenuTests.testMenu.mx_internal:subMenus.1.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="haloMenuTests.testMenu.mx_internal:subMenus.1" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest4">
+			<body>
+				<DispatchMouseEvent target="haloMenuTests.testMenu.mx_internal:subMenus.1" type="mouseOver" localX="20" localY="10" />
+				<DispatchMouseEvent target="haloMenuTests.testMenu.mx_internal:subMenus.1" type="mouseDown" localX="20" localY="10" />
+				<DispatchMouseEvent target="haloMenuTests.testMenu.mx_internal:subMenus.1" type="mouseUp" localX="20" localY="10" />
+				<AssertEvent target="haloMenuTests.testMenu" eventName="itemClick" eventClass="mx.events::MenuEvent" />
+				<AssertEventPropertyValue propertyName="label" value="Copy" />
+				<AssertEvent target="haloMenuTests.testMenu" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="haloMenuTests.testMenuLabel" propertyName="text" value="Copy" />
+				<AssertPropertyValue target="haloMenuTests.testMenu" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/NumericStepperTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/NumericStepperTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/NumericStepperTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/NumericStepperTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,86 @@
+<?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="SetupNumericStepperTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloNumericStepperTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloNumericStepperTests.testNumStep" propertyName="value" value="0" />
+			</body>
+		</TestCase>
+		<TestCase testID="NumericStepperTest1">
+			<body>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" localX="2" localY="2" />
+				<AssertEvent target="haloNumericStepperTests.testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="haloNumericStepperTests.testNumStep" propertyName="value" value="1" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+		<TestCase testID="NumericStepperTest2">
+			<body>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" localX="2" localY="2" />
+				<AssertEvent target="haloNumericStepperTests.testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="haloNumericStepperTests.testNumStep" propertyName="value" value="2" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:nextButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+		<TestCase testID="NumericStepperTest3">
+			<body>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:prevButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="haloNumericStepperTests.testNumStep.mx_internal:prevButton" localX="2" localY="2" />
+				<AssertEvent target="haloNumericStepperTests.testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="haloNumericStepperTests.testNumStep" propertyName="value" value="1" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="haloNumericStepperTests.testNumStep.mx_internal:prevButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/ProgressBarTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/ProgressBarTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/ProgressBarTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/ProgressBarTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,78 @@
+<?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[
+        [Bindable]
+        public var props1:Object = { bytesLoaded: 50, bytesTotal: 100 };
+        [Bindable]
+        public var props2:Object = { bytesLoaded: 90, bytesTotal: 100 };
+        [Bindable]
+        public var props3:Object = { bytesLoaded: 100, bytesTotal: 100 };
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupProgressBarTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloProgressBarTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloProgressBarTests.testProgressBar" propertyName="label" value="Test ProgressBar" />
+			</body>
+		</TestCase>
+		<TestCase testID="ProgressBarTest1">
+			<body>
+				<DispatchEvent target="haloProgressBarTests" type="progress" eventClass="flash.events.ProgressEvent" properties="{props1}" />
+				<AssertPropertyValue target="haloProgressBarTests.testProgressBar" propertyName="value" value="50" />
+			</body>
+		</TestCase>
+		<TestCase testID="ProgressBarTest2">
+			<body>
+				<DispatchEvent target="haloProgressBarTests" type="progress" eventClass="flash.events.ProgressEvent" properties="{props2}" />
+				<AssertPropertyValue target="haloProgressBarTests.testProgressBar" propertyName="value" value="90" />
+			</body>
+		</TestCase>
+		<TestCase testID="ProgressBarTest3">
+			<body>
+				<DispatchEvent target="haloProgressBarTests" type="progress" eventClass="flash.events.ProgressEvent" properties="{props3}" />
+				<DispatchEvent target="haloProgressBarTests" type="complete" eventClass="flash.events.Event" />
+				<AssertPropertyValue target="haloProgressBarTests.testProgressBar" propertyName="value" value="100" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RPCDataBindingTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RPCDataBindingTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RPCDataBindingTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RPCDataBindingTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 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="SetupRPCDataBindingTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloRPCDataBindingTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloRPCDataBindingTests.testList" propertyName="dataProvider" valueExpression="value=null" />
+			</body>
+		</TestCase>
+		<TestCase testID="RPCDataBindingTest1">
+			<body>
+				<DispatchMouseEvent target="haloRPCDataBindingTests.loadButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloRPCDataBindingTests.loadButton"  localX="10" localY="10" waitEvent="result" waitTarget="haloRPCDataBindingTests.svc" />
+				<AssertPropertyValue target="haloRPCDataBindingTests.testList.dataProvider" propertyName="length" value="50" />
+				<AssertPropertyValue target="haloRPCDataBindingTests.testList.mx_internal:rendererArray.1.0.getLabel()" propertyName="text" value="California" />
+			</body>
+		</TestCase>
+		<TestCase testID="RPCDataBindingTest2">
+			<body>
+				<DispatchMouseEvent target="haloRPCDataBindingTests.testList" type="mouseOver" localX="10" localY="56" />
+				<DispatchMouseClickEvent target="haloRPCDataBindingTests.testList" localX="10" localY="56" />
+				<AssertEvent target="haloRPCDataBindingTests.testList" eventName="itemClick" eventClass="mx.events::ListEvent" />
+				<AssertPropertyValue target="haloRPCDataBindingTests.testList.selectedItem" propertyName="name" value="Alabama" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RadioButtonTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RadioButtonTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RadioButtonTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/RadioButtonTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 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="SetupRadioButtonTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloRadioButtonTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloRadioButtonTests.testRadio1" propertyName="label" value="test Radio1" />
+				<AssertPropertyValue target="haloRadioButtonTests.testRadio2" propertyName="label" value="test Radio2" />
+			</body>
+		</TestCase>
+		<TestCase testID="RadioButtonTest1">
+			<body>
+				<DispatchMouseEvent target="haloRadioButtonTests.testRadio1" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloRadioButtonTests.testRadio1" localX="10" localY="10" />
+				<AssertPropertyValue target="haloRadioButtonTests.testRadio1" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="RadioButtonTest2">
+			<body>
+				<DispatchMouseEvent target="haloRadioButtonTests.testRadio2" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloRadioButtonTests.testRadio2" localX="10" localY="10" />
+				<AssertPropertyValue target="haloRadioButtonTests.testRadio1" propertyName="selected" value="false" />
+				<AssertPropertyValue target="haloRadioButtonTests.testRadio2" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SWFLoaderTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SWFLoaderTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SWFLoaderTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SWFLoaderTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,58 @@
+<?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="SetupSWFLoaderTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloSWFLoaderTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloSWFLoaderTests.testLoader" propertyName="source" value="basicLoader.swf" />
+			</body>
+		</TestCase>
+		<TestCase testID="SWFLoaderTest1">
+			<body>
+				<AssertPixelValue target="haloSWFLoaderTests.testLoader" x="10" y="10" value="0x0066CC" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SliderTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SliderTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SliderTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/SliderTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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="SetupSliderTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloSliderTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloSliderTests.testSlider" propertyName="value" value="0" />
+			</body>
+		</TestCase>
+		<TestCase testID="SliderTest1">
+			<body>
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseOver" localX="3" localY="30" />
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseDown" localX="3" localY="30" />
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseMove" localX="13" localY="30" />
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseMove" localX="23" localY="30" />
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseMove" localX="33" localY="30" />
+				<DispatchMouseEvent target="haloSliderTests.testSlider" type="mouseUp" localX="33" localY="30" />
+				<AssertPropertyValue target="haloSliderTests.testSlider" propertyName="alpha" value="0.21875" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TabNavigatorTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TabNavigatorTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TabNavigatorTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TabNavigatorTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,71 @@
+<?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="SetupTabNavigatorTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloTabNavigatorTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator" propertyName="numChildren" value="3" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator" propertyName="selectedIndex" value="0" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator.selectedChild.getChildAt(0)" propertyName="text" value="This is Page One" />
+			</body>
+		</TestCase>
+		<TestCase testID="HaloTabNavigatorTest1">
+			<body>
+				<DispatchMouseEvent target="haloTabNavigatorTests.testTabNavigator" type="mouseOver" localX="100" localY="10" />
+				<DispatchMouseClickEvent target="haloTabNavigatorTests.testTabNavigator"  localX="100" localY="10" waitEvent="change" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator" propertyName="selectedIndex" value="1" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator.selectedChild.getChildAt(0)" propertyName="text" value="This is Page Two" />
+			</body>
+		</TestCase>
+		<TestCase testID="HaloTabNavigatorTest2">
+			<body>
+				<DispatchMouseEvent target="haloTabNavigatorTests.testTabNavigator" type="mouseOver" localX="200" localY="10" />
+				<DispatchMouseClickEvent target="haloTabNavigatorTests.testTabNavigator"  localX="200" localY="10" waitEvent="change" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator" propertyName="selectedIndex" value="2" />
+				<AssertPropertyValue target="haloTabNavigatorTests.testTabNavigator.selectedChild.getElementAt(0)" propertyName="text" value="This is Page Three" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextAreaTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextAreaTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextAreaTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextAreaTestScript.mxml Wed May  2 22:44:38 2012
@@ -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="SetupTextAreaTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloTextAreaTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloTextAreaTests.testTextArea" propertyName="text" value="" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextAreaTest1">
+			<body>
+				<SetProperty target="haloTextAreaTests.testTextArea" propertyName="text"
+					value="This is a TextArea and it contains lots of text which should word wrap and eventually cause scrollbars to appear.  The validation will test for the scrollbar properties" />
+				<AssertEvent target="haloTextAreaTests.testTextArea" eventName="updateComplete" eventClass="mx.events::FlexEvent" numExpectedEvents="1" />
+				<AssertPropertyValue target="haloTextAreaTests.testTextArea" propertyName="numChildren" value="4" />
+				<AssertPropertyValue target="haloTextAreaTests.testTextArea.getChildAt(3)" propertyName="className" value="VScrollBar" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextInputTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextInputTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextInputTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextInputTestScript.mxml Wed May  2 22:44:38 2012
@@ -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="SetupTextInputTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloTextInputTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloTextInputTests.testTextInput" propertyName="text" value="" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextInputTest1">
+			<body>
+				<DispatchMouseClickEvent target="haloTextInputTests.testTextInput" localX="10" localY="10" />
+				<DispatchKeyEvent char="This is another test." />
+				<AssertPropertyValue target="haloTextInputTests.testTextInput" propertyName="text" value="This is another test." />
+				<AssertPropertyValue target="haloTextInputTests.testTextInput.getChildAt(1)" propertyName="text" value="This is another test." />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 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[
+	    // Return true if the TextField is scrolled all the way.  
+            // SDK-15246 fixs player bug and we need to detect if the player
+            // fixes this.
+	    private function checkTextFieldScroll():Boolean
+	    {
+	        return (application.haloTextTests.testText.getChildAt(0).scrollV == 
+			application.haloTextTests.testText.getChildAt(0).maxScrollV);
+	    }
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+<!--
+-->
+		<TestCase testID="SetupTextTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloTextTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloTextTests.testText.getChildAt(0)" propertyName="numLines" value="8" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextTest1">
+			<body>
+				<AssertPropertyValue target="haloTextTests.testText.getChildAt(0)" propertyName="length" value="87" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextTest2">
+			<body>
+		                <AssertMethodValue method="value=checkTextFieldScroll()" valueExpression="value=true" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TreeTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TreeTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TreeTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/scripts/TreeTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,68 @@
+<?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="SetupTreeTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="haloTreeTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="haloTreeTests.testTree.dataProvider" propertyName="length" value="5" />
+			</body>
+		</TestCase>
+		<TestCase testID="TreeTest1">
+			<body>
+				<DispatchMouseEvent target="haloTreeTests.addNodeButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="haloTreeTests.addNodeButton"  localX="10" localY="10" waitEvent="updateComplete" waitTarget="haloTreeTests.testTree" />
+				<AssertPropertyValue target="haloTreeTests.testTree.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+		<TestCase testID="TreeTest2">
+			<body>
+				<DispatchMouseEvent target="haloTreeTests.testTree" type="mouseOver" localX="10" localY="56" />
+				<DispatchMouseClickEvent target="haloTreeTests.testTree" localX="10" localY="56" />
+				<AssertEvent target="haloTreeTests.testTree" eventName="itemOpen" eventClass="mx.events::TreeEvent" />
+				<AssertPropertyValue target="haloTreeTests.testTree.mx_internal:wrappedCollection" propertyName="length" value="8" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml Wed May  2 22:44:38 2012
@@ -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:Accordion id="testAccordion" >
+        <mx:VBox label="First Page" height="200" >
+            <mx:Label id="pageLabel1" text="This is Page One" />
+        </mx:VBox>
+        <mx:VBox label="Second Page" height="200" >
+            <mx:Label id="pageLabel2" text="This is Page Two" />
+        </mx:VBox>
+        <s:NavigatorContent label="Third Page" height="200" >
+            <s:Label id="pageLabel3" text="This is Page Three" />
+        </s:NavigatorContent >
+    </mx:Accordion>
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AlertTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AlertTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AlertTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/AlertTests.mxml Wed May  2 22:44:38 2012
@@ -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 width="200" height="200"
+    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:Button id="alertButton" label="Show Alert" click="Alert.show('This is an Alert', 'Alert Test')" />
+    <mx:Button id="testButton" label="Test Modal" click="testLabel.text = 'clicked'" />
+    <mx:Label id="testLabel" text="not clicked" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ButtonTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ButtonTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ButtonTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ButtonTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,38 @@
+<?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:Button id="testButton" label="test button" click="testLabel.text='This is a test'" />
+    <mx:Label id="testLabel" text="test" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CheckBoxTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CheckBoxTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CheckBoxTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CheckBoxTests.mxml Wed May  2 22:44:38 2012
@@ -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:CheckBox id="testCheckBox" label="test CheckBox" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CollectionTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CollectionTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CollectionTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/CollectionTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,51 @@
+<?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:DataGrid id="testDataGrid" dataProvider="{svc.lastResult.states.state}" >
+        <mx:columns>
+            <mx:DataGridColumn dataField="name" />
+            <mx:DataGridColumn dataField="data" />
+        </mx:columns>
+    </mx:DataGrid>
+    <mx:Button id="loadButton" label="load" click="svc.send()" />
+    <mx:Button id="filterButton" label="filter" 
+        click="testDataGrid.dataProvider.filterFunction = function(obj:Object):Boolean { return obj.name.indexOf('W') == 0; }; testDataGrid.dataProvider.refresh()" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ColorPickerTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ColorPickerTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ColorPickerTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ColorPickerTests.mxml Wed May  2 22:44:38 2012
@@ -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:ColorPicker id="testColorPicker" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ComboBoxTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ComboBoxTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ComboBoxTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ComboBoxTests.mxml Wed May  2 22:44:38 2012
@@ -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: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 var comboDP:Array = ["Apples", "Beer", "Soda", "Pears", "Peaches", "Bagels"];
+]]>
+</fx:Script>
+
+    <mx:ComboBox id="testCombo" initialize="testCombo.dataProvider = comboDP" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/DateFieldTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/DateFieldTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/DateFieldTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/DateFieldTests.mxml Wed May  2 22:44:38 2012
@@ -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:DateField id="testDateField" />
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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:Label id="testFTELabel" text="FTE text" 
+        textFieldClass="mx.core.UIFTETextField"/>
+    
+    <mx:NumericStepper id="testFTENumericStepper" value="7" 
+        textFieldClass="mx.core.UIFTETextField"
+        textInputClass="mx.controls.MXFTETextInput" />
+
+</mx:VBox>

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FocusManagerTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FocusManagerTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FocusManagerTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/FocusManagerTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,44 @@
+<?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:Button id="testButton" label="test button" click="testLabel.text='This is a test'" />
+    <mx:Label id="testLabel" text="test" />
+    <mx:CheckBox id="testCheckBox" label="test CheckBox" />
+    <mx:RadioButtonGroup id="halo1" />
+    <mx:RadioButton id="testRadio1" label="test Radio1" groupName="halo1" />
+    <mx:RadioButton id="testRadio2" label="test Radio2" groupName="halo1" selected="true" />
+    <mx:RadioButton id="testRadio3" label="test Radio3" groupName="halo1" />
+
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ImageTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ImageTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ImageTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ImageTests.mxml Wed May  2 22:44:38 2012
@@ -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:Image id="testImage" source="basicImage.jpg" /> 
+
+</mx:Canvas>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListAndDataGridTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListAndDataGridTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListAndDataGridTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListAndDataGridTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,75 @@
+<?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="initListComponents()"
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+
+    public var listDP:Array = [
+       { Artist:'Pavement', Album:'Enchanted and Slanted', Price:11.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Rain Crooked, Rain Crooked', Price:10.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Zowee Wowee', Price:12.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Corners the Brighten', Price:11.99, Rating:'Good' },
+       { Artist:'Pavement', Album:'Twilight Terror', Price:11.99, Rating:'Good' },
+       { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' }
+               ];
+
+    public var dataGridDP:Array =
+     [
+       { Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Crooked Rain, Crooked Rain', Price:10.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Wowee Zowee', Price:12.99, Rating:'Excellent' },
+       { Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Rating:'Good' },
+       { Artist:'Pavement', Album:'Terror Twilight', Price:11.99, Rating:'Good' },
+       { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' }
+     ];
+
+    public function initListComponents():void
+    {
+            testList.dataProvider = listDP;
+            testDataGrid.dataProvider = dataGridDP;
+
+    }
+
+
+]]>
+</fx:Script>
+
+    <mx:List id="testList" labelField="Album" dragEnabled="true" dragMoveEnabled="false" />
+
+    <mx:DataGrid id="testDataGrid" dropEnabled="true">
+            <mx:columns>
+                        <mx:DataGridColumn dataField="Album" headerText="Record" />
+                        <mx:DataGridColumn dataField="Price" />
+            </mx:columns>
+    </mx:DataGrid>
+
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListOfUSStateNames.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListOfUSStateNames.xml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListOfUSStateNames.xml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/ListOfUSStateNames.xml Wed May  2 22:44:38 2012
@@ -0,0 +1,73 @@
+<?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.
+
+-->
+
+
+<states>
+    <state name="Massachusetts" data="MA"/>
+    <state name="California" data="CA"/>
+    <state name="Alabama" data="AL"/>
+    <state name="Alaska" data="AK"/>
+    <state name="Arizona" data="AZ"/>
+    <state name="Arkansas" data="AR"/>
+    <state name="Colorado" data="CO"/>
+    <state name="Connecticut" data="CT"/>
+    <state name="Delaware" data="DE"/>
+    <state name="Florida" data="FL"/>
+    <state name="Georgia" data="GA"/>
+    <state name="Hawaii" data="HI"/>
+    <state name="Idaho" data="ID"/>
+    <state name="Illinois" data="IL"/>
+    <state name="Indiana" data="IN"/>
+    <state name="Iowa" data="IA"/>
+    <state name="Kansas" data="KS"/>
+    <state name="Kentucky" data="KY"/>
+    <state name="Louisiana" data="LA"/>
+    <state name="Maine" data="ME"/>
+    <state name="Maryland" data="MD"/>
+    <state name="Michigan" data="MI"/>
+    <state name="Minnesota" data="MN"/>
+    <state name="Mississippi" data="MS"/>
+    <state name="Missouri" data="MO"/>
+    <state name="Montana" data="MT"/>
+    <state name="Nebraska" data="NE"/>
+    <state name="Nevada" data="NV"/>
+    <state name="New Hampshire" data="NH"/>
+    <state name="New Jersey" data="NJ"/>
+    <state name="New Mexico" data="NM"/>
+    <state name="New York" data="NY"/>
+    <state name="North Carolina" data="NC"/>
+    <state name="North Dakota" data="ND"/>
+    <state name="Ohio" data="OH"/>
+    <state name="Oklahoma" data="OK"/>
+    <state name="Oregon" data="OR"/>
+    <state name="Pennsylvania" data="PA"/>
+    <state name="Rhode Island" data="RI"/>
+    <state name="South Carolina" data="SC"/>
+    <state name="South Dakota" data="SD"/>
+    <state name="Tennessee" data="TN"/>
+    <state name="Texas" data="TX"/>
+    <state name="Utah" data="UT"/>
+    <state name="Vermont" data="VT"/>
+    <state name="Virginia" data="VA"/>
+    <state name="Washington" data="WA"/>
+    <state name="West Virginia" data="WV"/>
+    <state name="Wisconsin" data="WI"/>
+    <state name="Wyoming" data="WY"/>
+</states>
\ No newline at end of file

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,122 @@
+<?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="initComponents()"
+    >
+
+<fx:Script>
+<![CDATA[
+
+    import mx.collections.*;
+    import mx.controls.*;
+    import mx.events.*;
+    import mx.managers.*;
+    import mx.utils.ObjectProxy;
+
+    public var treeDP:Array = [ new ObjectProxy({ label: "Inbox", children: [
+                                                    new ObjectProxy({ label: "Personal", data: "personal"}),
+                                                    new ObjectProxy({ label: "Marketing", data: "mktg"}),
+                                                    new ObjectProxy({ label: "To do", data: "todo"}) ]}),
+                                new ObjectProxy({ label: "Calendar", children: [
+                                                     new ObjectProxy({ label: "Appointments", data: "appointments"}),
+                                                     new ObjectProxy({ label: "Meetings", data: "meetings"}) ]}), 
+                                new ObjectProxy({ label: "Sent", data: "sent" }),
+                                new ObjectProxy({ label: "Deleted Items", data: "deleted" }),
+                                new ObjectProxy({ label: "Spam", data: "spam" }) ];
+
+
+    public var dataGridDP:Array =
+     [
+       new ObjectProxy({ Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Rating:'Excellent' }),
+       new ObjectProxy({ Artist:'Pavement', Album:'Crooked Rain, Crooked Rain', Price:10.99, Rating:'Excellent' }),
+       new ObjectProxy({ Artist:'Pavement', Album:'Wowee Zowee', Price:12.99, Rating:'Excellent' }),
+       new ObjectProxy({ Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Rating:'Good' }),
+       new ObjectProxy({ Artist:'Pavement', Album:'Terror Twilight', Price:11.99, Rating:'Good' }),
+       new ObjectProxy({ Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' })
+     ];
+
+    public function initComponents():void
+    {
+            testTree.dataProvider = treeDP;
+            testDataGrid.dataProvider = dataGridDP;
+    }
+
+]]>
+</fx:Script>
+
+    <mx:Tree id="testTree" >
+        <mx:itemRenderer>
+            <fx:Component>
+                <s:MXTreeItemRenderer height="22">
+                    <s:states>
+                        <s:State name="normal" />            
+                        <s:State name="hovered" />
+                        <s:State name="selected" />
+                    </s:states>
+                    <s:HGroup left="0" right="0" verticalCenter="0">
+                        <s:Rect id="indentationSpacer" width="{treeListData.indent}" height="22" alpha="0">
+                            <s:fill>
+                                <s:SolidColor color="0xFFFFFF" />
+                            </s:fill>
+                        </s:Rect>
+                        <s:Group id="disclosureGroup">
+                            <s:BitmapImage source="{treeListData.disclosureIcon}" width="16" height="16" visible="{treeListData.hasChildren}" />
+                        </s:Group>
+                        <s:BitmapImage source="{treeListData.icon}" width="16" height="16"/>
+                        <s:Label text="{data.label}" color.hovered="0xFF0000" color.selected="0xFFFFFF" />
+                    </s:HGroup>
+                </s:MXTreeItemRenderer>
+            </fx:Component>
+        </mx:itemRenderer>
+    </mx:Tree>
+
+    <mx:DataGrid id="testDataGrid" editable="true">
+        <mx:columns>
+            <mx:DataGridColumn dataField="Album" headerText="Record" width="200">
+                <mx:itemRenderer>
+                    <fx:Component>
+                        <s:MXDataGridItemRenderer height="22">
+                            <s:states>
+                                <s:State name="normal" />            
+                                <s:State name="hovered" />
+                                <s:State name="selected" />
+                            </s:states>
+                            <s:HGroup left="0" right="0" verticalCenter="0">
+                                <s:Label id="album" text="{data.Album}" color.hovered="0xFF0000" color.selected="0xFFFFFF" />
+                                <s:Label id="artist" text="{data.Artist}" color.hovered="0xFF0000" color.selected="0xFFFFFF" />
+                            </s:HGroup>
+                        </s:MXDataGridItemRenderer>
+                    </fx:Component>
+                </mx:itemRenderer>
+                <mx:itemEditor>
+                    <fx:Component>
+                        <s:MXDataGridItemRenderer focusEnabled="true" height="22" >
+                            <s:TextInput id="editor" top="0" left="0" right="0" bottom="0" text="{data.Album}" />
+                        </s:MXDataGridItemRenderer>
+                    </fx:Component>
+                </mx:itemEditor>
+            </mx:DataGridColumn>
+            <mx:DataGridColumn dataField="Rating" />
+        </mx:columns>
+    </mx:DataGrid>
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuBarTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuBarTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuBarTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuBarTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Panel layout="vertical" 
+    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 var menuBarDP:Object = {label: "top", children: [
+                                                            {label: "File", children: [
+                                                                    {label: "Open"},
+                                                                    {label: "New", children: [
+                                                                            { label: "File"},
+                                                                            { label: "Folder"} ]} ]},
+                                                            {label: "Edit", children: [
+                                                                    {label: "Copy"},
+                                                                    {label: "Paste"},
+                                                                    {label: "Send"} ]},
+                                                            {label: "Window"} ]};
+
+    public function initMenuBar():void
+    {
+            testMenuBar.dataProvider = menuBarDP;
+    }
+
+    public function menuChanged(event:Event):void
+    {
+            testMenuLabel.text = MenuEvent(event).item.label;
+    }
+
+]]>
+</fx:Script>
+
+    <mx:MenuBar id="testMenuBar" width="250" showRoot="false" initialize="initMenuBar()" itemClick="menuChanged(event)" />
+    <mx:HBox width="250">
+            <mx:Label text="Menu Choice: " />
+            <mx:Label id="testMenuLabel" width="100%" />
+    </mx:HBox>
+
+</mx:Panel>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/MenuTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,68 @@
+<?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 var menuDP:Object = {label: "top", children: [
+                                                            {label: "File", children: [
+                                                                    {label: "Open"},
+                                                                    {label: "New File"}     ]},
+                                                            {label: "Edit", children: [
+                                                                    {label: "Copy"},
+                                                                    {label: "Paste"},
+                                                                    {label: "Send"} ]},
+                                                            {label: "Window"} ]};
+
+    public var testMenu:Menu;
+
+    public function createAndShowMenu():void
+    {
+            var menu:Menu = Menu.createMenu(null, menuDP, false);
+            testMenu = menu;
+            var point:Point = new Point(testMenuButton.width, testMenuButton.height);
+            point = testMenuButton.localToGlobal(point);
+            menu.show(point.x, point.y);
+            menu.addEventListener("itemClick", menuChanged);
+    }
+
+    public function menuChanged(event:Event):void
+    {
+            testMenuLabel.text = MenuEvent(event).item.label;
+    }
+]]>
+</fx:Script>
+
+    <mx:Button id="testMenuButton" label="Create and Show Menu" click="createAndShowMenu()" />
+    <mx:HBox width="250">
+            <mx:Label text="Menu Choice: " />
+            <mx:Label id="testMenuLabel" width="100%" />
+    </mx:HBox>
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/halo/views/NumericStepperTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/halo/views/NumericStepperTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/halo/views/NumericStepperTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/halo/views/NumericStepperTests.mxml Wed May  2 22:44:38 2012
@@ -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:NumericStepper id="testNumStep" />
+
+</mx:VBox>



Mime
View raw message