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 2012/05/03 00:45:08 UTC
svn commit: r1333232 [9/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/ ...
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.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="SetupSparkScrollBarTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkScrollBarTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkScrollBarTests.testVScrollBar" propertyName="value" value="0" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkVScrollBarTest1">
+ <body>
+ <DispatchMouseEvent target="sparkScrollBarTests.testVScrollBar" type="mouseDown" localX="3" localY="60" waitEvent="changeStart" />
+ <DispatchMouseEvent target="sparkScrollBarTests.testVScrollBar" type="mouseUp" localX="3" localY="60" waitEvent="changeEnd" />
+ <DispatchMouseEvent target="sparkScrollBarTests.testVScrollBar" type="mouseDown" localX="3" localY="60" waitEvent="change" />
+ <AssertPropertyValue target="sparkScrollBarTests.testVScrollBar" propertyName="value" value="40" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SliderTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SliderTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SliderTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/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="SetupSparkSliderTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkSliderTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkSliderTests.testSlider" propertyName="value" value="0" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkSliderTest1">
+ <body>
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="rollOver" waitEvent="rollOver" localX="3" localY="3" />
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="mouseDown" waitEvent="mouseDown" localX="3" localY="3" />
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="mouseMove" buttonDown="true" waitEvent="move" waitTarget="sparkSliderTests.testSlider.thumb" localX="13" localY="3" />
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="mouseMove" buttonDown="true" waitEvent="move" waitTarget="sparkSliderTests.testSlider.thumb" localX="23" localY="3" />
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="mouseMove" buttonDown="true" waitEvent="move" waitTarget="sparkSliderTests.testSlider.thumb" localX="33" localY="3" />
+ <DispatchMouseEvent target="sparkSliderTests.testSlider" type="mouseUp" waitEvent="thumbRelease" localX="33" localY="3" />
+ <AssertPropertyValue target="sparkSliderTests.testSlider" propertyName="alpha" value="0.21875" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,105 @@
+<?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 myCollator:Collator ;
+ [Bindable]
+ public var myArray:Array =
+ new Array("cote", "côte", "coté", "côté",
+ "æµ· (U+6D77)", "é¨ (U+96E8)", "æ°´ (U+6C34)", "å· (U+5DDD)");
+
+
+
+ ]]>
+ </mx:Script>
+
+ <testCases>
+ <TestCase testID="SetupSortTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkSortTest"
+ waitEvent="updateComplete" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkSort_en_US">
+ <setup>
+ <RunCode code="myCollator=new flash.globalization.Collator('en-US')" />
+ <RunCode code="myArray.sort(myCollator.compare)"/>
+ <RunCode code="application.sparkSortTests.sortArraycollectionSpark('en-US')" />
+ </setup>
+ <body>
+ <AssertMethodValue method="value=myArray.toString()" valueExpression="value=application.sparkSortTests.myArrayCollection.toArray().toString()" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkSort_fr-FR">
+ <setup>
+ <RunCode code="myCollator=new flash.globalization.Collator('fr-FR')" />
+ <RunCode code="myArray.sort(myCollator.compare)"/>
+ <RunCode code="application.sparkSortTests.sortArraycollectionSpark('fr-FR')" />
+ </setup>
+ <body>
+ <AssertMethodValue method="value=myArray.toString()" valueExpression="value=application.sparkSortTests.myArrayCollection.toArray().toString()" />
+ </body>
+ </TestCase>
+<!--
+ <TestCase testID="SparkSort_ja-JP">
+ <setup>
+ <RunCode code="myCollator=new flash.globalization.Collator('ja-JP')" />
+ <RunCode code="myArray.sort(myCollator.compare)"/>
+ <RunCode code="application.sparkSortTests.sortArraycollectionSpark('ja-JP')" />
+ </setup>
+ <body>
+ <AssertMethodValue method="value=myArray.toString()" valueExpression="value=application.sparkSortTests.myArrayCollection.toArray().toString()" />
+ </body>
+ </TestCase>
+-->
+ <TestCase testID="MXSort">
+ <setup>
+ <RunCode code="myCollator=new flash.globalization.Collator('en-US')" />
+ <RunCode code="myArray.sort(myCollator.compare)"/>
+ <RunCode code="application.sparkSortTests.sortArraycollectionMX()" />
+ </setup>
+ <body>
+ <AssertMethodValue method="value=myArray.toString()" valueExpression="value=application.sparkSortTests.myArrayCollection.toArray().toString()" />
+ </body>
+ </TestCase>
+
+ </testCases>
+</UnitTester>
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,79 @@
+<?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.StringTools;
+ public var flashST:flash.globalization.StringTools;
+ public var str:String="Turkish I: iI & ıİ; Greek: ΣÏÏβΰÎΣ; German: Ã";
+ public var stToUpperCase:String;
+ public var stToLowerCase:String;
+ public var flashSTToUpperCase:String;
+ public var flashSTToLowerCase:String;
+ ]]>
+ </mx:Script>
+
+ <testCases>
+ <TestCase testID="SetupStringToolsTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkStringToolsTest"
+ waitEvent="updateComplete" />
+ </body>
+ </TestCase>
+ <TestCase testID="StringTools_test" description="" keywords="[StringTools, actualLocaleIDName]">
+ <setup>
+ <RunCode code="flashST=new flash.globalization.StringTools('xx')" />
+ <RunCode code="flashSTToUpperCase=flashST.toUpperCase(str)" />
+ <RunCode code="flashSTToLowerCase=flashST.toLowerCase(str)" />
+ <RunCode code="stToUpperCase=application.sparkStringToolsTests.stringTools.toUpperCase(str)" />
+ <RunCode code="stToLowerCase=application.sparkStringToolsTests.stringTools.toLowerCase(str)" />
+ </setup>
+ <body>
+ <AssertPropertyValue target="sparkStringToolsTests.stringTools" propertyName="actualLocaleIDName" valueExpression="value=flashST.actualLocaleIDName" />
+ <AssertMethodValue method="value=stToUpperCase" valueExpression="value=flashSTToUpperCase" />
+ <AssertMethodValue method="value=stToLowerCase" valueExpression="value=flashSTToLowerCase" />
+ </body>
+ </TestCase>
+ <TestCase testID="StringTools_test1" description="" keywords="[StringTools, actualLocaleIDName]">
+ <setup>
+ <RunCode code="flashST=new flash.globalization.StringTools(application.sparkStringToolsTests.getLocale.text)" />
+ </setup>
+ <body>
+ <AssertPropertyValue propertyName="actualLocaleIDName" valueExpression="value=flashST.actualLocaleIDName" target="sparkStringToolsTests.stringToolsNoLocaleInline"/>
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StyleManagerTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StyleManagerTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StyleManagerTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/StyleManagerTestScript.mxml Wed May 2 22:44:38 2012
@@ -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="SetupStyleManagerTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="styleManagerTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="styleManagerTests.testTextInput" propertyName="height" value="22" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkStyleManagerTest1">
+ <body>
+ <SetProperty target="styleManagerTests.moduleLoader" propertyName="url" value="spark/views/StyleManagerModuleTest.swf"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="styleManagerTests.moduleLoader.child.moduleTestTextInput" propertyName="height" value="32" />
+ </body>
+ </TestCase>-->
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextAreaTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextAreaTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextAreaTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextAreaTestScript.mxml Wed May 2 22:44:38 2012
@@ -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="SetupSparkTextAreaTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkTextAreaTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkTextAreaTests.testTextArea" propertyName="text" value="" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkTextAreaTest1">
+ <body>
+ <SetProperty target="sparkTextAreaTests.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="sparkTextAreaTests.testTextArea" eventName="valueCommit" eventClass="mx.events::FlexEvent" numExpectedEvents="1" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextInputTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextInputTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextInputTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TextInputTestScript.mxml Wed May 2 22:44:38 2012
@@ -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="SetupSparkTextInputTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkTextInputTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkTextInputTests.testTextInput" propertyName="text" value="" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkTextInputTest1">
+ <body>
+ <DispatchMouseClickEvent target="sparkTextInputTests.testTextInput" localX="10" localY="10" />
+ <DispatchKeyEvent char="This is another test." waitEvent="change" waitTarget="sparkTextInputTests.testTextInput" />
+ <AssertPropertyValue target="sparkTextInputTests.testTextInput" propertyName="text" value="This is another test." />
+ <AssertPropertyValue target="sparkTextInputTests.testTextInput.textDisplay" propertyName="text" value="This is another test." />
+ <AssertPropertyValue target="sparkTextInputTests.testTextInput" propertyName="width" value="128" />
+ <AssertPropertyValue target="sparkTextInputTests.testTextInput" propertyName="height" value="22" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TileGroupTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TileGroupTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TileGroupTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TileGroupTestScript.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,65 @@
+<?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="SetupSparkTileGroupTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkTileGroupTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkTileGroupTests.testTileGroup" propertyName="requestedRowCount" value="-1" />
+ </body>
+ </TestCase>
+ <TestCase testID="SparkTileGroupTest1">
+ <body>
+ <SetProperty target="sparkTileGroupTests.testTileGroup" propertyName="horizontalGap" value="10"
+ waitEvent="updateComplete" />
+ <SetProperty target="sparkTileGroupTests.testTileGroup" propertyName="verticalGap" value="10"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkTileGroupTests.testTileGroup" propertyName="horizontalGap" value="10" />
+ <AssertPropertyValue target="sparkTileGroupTests.testTileGroup" propertyName="verticalGap" value="10" />
+ <AssertPropertyValue target="sparkTileGroupTests.btn5" propertyName="x" value="80" />
+ <AssertPropertyValue target="sparkTileGroupTests.btn5" propertyName="y" value="31" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml Wed May 2 22:44:38 2012
@@ -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="SetupSparkTitleWindowTest">
+ <body>
+ <SetProperty target="" propertyName="currentState" value="sparkTitleWindowTest"
+ waitEvent="updateComplete" />
+ <AssertPropertyValue target="sparkTitleWindowTests.pua" propertyName="displayPopUp" value="false" />
+ </body>
+ </TestCase>
+ <TestCase testID="sparkTitleWindowTest1">
+ <body>
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUpButton" type="rollOver" waitEvent="rollOver" localX="3" localY="3" />
+ <DispatchMouseClickEvent target="sparkTitleWindowTests.popUpButton" waitEvent="creationComplete" waitTarget="sparkTitleWindowTests.popUp" localX="3" localY="3" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.titleWindowButton" type="rollOver" waitEvent="rollOver" localX="3" localY="3" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUp" type="mouseDown" waitEvent="mouseDown" localX="10" localY="10" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUp" type="mouseMove" buttonDown="true" waitEvent="windowMoveStart" localX="20" localY="10" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUp" type="mouseMove" buttonDown="true" waitEvent="windowMove" localX="20" localY="10" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUp" type="mouseMove" buttonDown="true" waitEvent="windowMove" localX="10" localY="20" />
+ <DispatchMouseEvent target="sparkTitleWindowTests.popUp" type="mouseUp" waitEvent="windowMoveEnd" localX="10" localY="10" />
+ <DispatchMouseClickEvent target="sparkTitleWindowTests.popUp" waitEvent="close" localX="140" localY="10" />
+ <AssertPropertyValue target="sparkTitleWindowTests.pua" propertyName="displayPopUp" value="false" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
\ No newline at end of file
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.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.
+
+-->
+<s:Group
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:styleTest="spark.views.styleTest.*" >
+
+ <fx:Style>
+
+ </fx:Style>
+
+ <fx:Script>
+ <![CDATA[
+
+ public function setCompStyle():void
+ {
+ componentADV.setStyle("teststyle_1_string_noinh","testsetStr");
+ componentADV.setStyle("teststyle_3_uint_inh",56);
+ }
+
+ ]]>
+ </fx:Script>
+
+ <fx:Declarations>
+ <!-- Place non-visual elements (e.g., services, value objects) here -->
+ <styleTest:ADVStyleTestClass id="componentADV" />
+ <styleTest:ADVStyleTestClass id="componentADVInline" teststyle_2_number_noinh = "12"/>
+ </fx:Declarations>
+
+
+
+
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AnimateConstraintsTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AnimateConstraintsTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AnimateConstraintsTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/AnimateConstraintsTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:SkinnableContainer
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ width="930" height="800">
+ <s:states>
+ <s:State name="s1"/>
+ <s:State name="s2"/>
+ </s:states>
+ <s:transitions>
+ <s:Transition>
+ <s:Parallel duration="250">
+ <s:Animate targets="{[b1,b2,b3]}">
+ <s:SimpleMotionPath property="left"/>
+ <s:SimpleMotionPath property="right"/>
+ </s:Animate>
+ <s:Animate targets="{[b3a]}">
+ <s:SimpleMotionPath property="left"/>
+ </s:Animate>
+ <s:Animate targets="{[b3b]}">
+ <s:SimpleMotionPath property="right"/>
+ </s:Animate>
+ <s:Animate targets="{[b4,b5,b6]}">
+ <s:SimpleMotionPath property="top"/>
+ <s:SimpleMotionPath property="bottom"/>
+ </s:Animate>
+ <s:Animate targets="{[b6a]}">
+ <s:SimpleMotionPath property="top"/>
+ </s:Animate>
+ <s:Animate targets="{[b6b]}">
+ <s:SimpleMotionPath property="bottom"/>
+ </s:Animate>
+ <s:Animate targets="{[b7,b8,b9]}">
+ <s:SimpleMotionPath property="left"/>
+ <s:SimpleMotionPath property="horizontalCenter"/>
+ </s:Animate>
+ <s:Animate targets="{[b10,b11]}">
+ <s:SimpleMotionPath property="verticalCenter"/>
+ </s:Animate>
+ <s:Animate targets="{[b12]}">
+ <s:SimpleMotionPath property="verticalCenter"/>
+ <s:SimpleMotionPath property="bottom"/>
+ </s:Animate>
+ <s:Animate targets="{[b13,b14]}">
+ <s:SimpleMotionPath property="percentWidth"/>
+ </s:Animate>
+ <s:Animate targets="{[b15]}">
+ <s:SimpleMotionPath property="percentWidth"/>
+ <s:SimpleMotionPath property="width"/>
+ </s:Animate>
+ <s:Animate targets="{[b16,b17]}">
+ <s:SimpleMotionPath property="height"/>
+ </s:Animate>
+ <s:Animate targets="{[b18]}">
+ <s:SimpleMotionPath property="height"/>
+ </s:Animate>
+ </s:Parallel>
+ </s:Transition>
+ </s:transitions>
+ <s:VGroup top="50" width="100%">
+ <s:HGroup width="100%" height="380">
+ <!-- left/right -->
+ <s:Group width="300" height="100%">
+ <s:Rect left="0" right="0" top="0" bottom="0">
+ <s:stroke>
+ <s:SolidColorStroke color="black"/>
+ </s:stroke>
+ </s:Rect>
+ <s:Button id="b1" y="100" left="10" left.s2="{NaN}" right.s2="10" label="Left->Right"/>
+ <s:Button id="b2" y="150" right="10" right.s2="{NaN}" left.s2="10" label="Right->Left"/>
+ <s:Button id="b3" y="200" left="10" left.s2="{NaN}" right="10" right.s2="{NaN}" label="LeftRight"/>
+ <s:Button id="b3a" y="250" left="10" left.s2="100" label="Left"/>
+ <s:Button id="b3b" y="300" right="10" right.s2="100" label="Right"/>
+ </s:Group>
+ <!-- top/bottom -->
+ <s:Group width="300" height="100%">
+ <s:Rect left="0" right="0" top="0" bottom="0">
+ <s:stroke>
+ <s:SolidColorStroke color="black"/>
+ </s:stroke>
+ </s:Rect>
+ <s:Button id="b4" x="0" top="100" top.s2="{NaN}" bottom.s2="100" label="Top->Bottom"/>
+ <s:Button id="b5" x="100" bottom="100" bottom.s2="{NaN}" top.s2="100" label="Bottom->Top"/>
+ <s:Button id="b6" x="200" top="100" top.s2="{NaN}" bottom="100" bottom.s2="{NaN}" label="TopBottom"/>
+ <s:Button id="b6a" x="200" top="0" top.s2="50" label="Top"/>
+ <s:Button id="b6b" x="200" bottom="0" bottom.s2="50" label="Bottom"/>
+ </s:Group>
+ <!-- horizontalCenter -->
+ <s:Group width="300" height="100%">
+ <s:Rect left="0" right="0" top="0" bottom="0">
+ <s:stroke>
+ <s:SolidColorStroke color="black"/>
+ </s:stroke>
+ </s:Rect>
+ <s:Button id="b7" top="50" horizontalCenter="0" horizontalCenter.s2="50" label="HorCtr"/>
+ <s:Button id="b8" top="80" horizontalCenter="0" horizontalCenter.s2="-50" label="HorCtr"/>
+ <s:Button id="b9" top="110" horizontalCenter="0" horizontalCenter.s2="{NaN}" left.s2="10" label="Hor->Left"/>
+ <s:Button id="b10" left="0" verticalCenter="0" verticalCenter.s2="50" label="VertCtr"/>
+ <s:Button id="b11" left="100" verticalCenter="0" verticalCenter.s2="-50" label="VertCtr"/>
+ <s:Button id="b12" left="200" verticalCenter="0" verticalCenter.s2="{NaN}" bottom.s2="100" label="Vert->Bottom"/>
+ </s:Group>
+ </s:HGroup>
+ <s:HGroup width="100%" height="370">
+ <s:Group width="300" height="100%">
+ <s:Rect left="0" right="0" top="0" bottom="0">
+ <s:stroke>
+ <s:SolidColorStroke color="black"/>
+ </s:stroke>
+ </s:Rect>
+ <s:Button id="b13" top="50" width="50%" width.s2="100%" label="%Width"/>
+ <s:Button id="b14" top="80" width="100%" width.s2="50%" horizontalCenter="0" label="%Width"/>
+ <s:Button id="b15" top="110" width="50%" width.s2="200" label="%Width->width"/>
+ </s:Group>
+ <s:Group width="300" height="100%">
+ <s:Rect left="0" right="0" top="0" bottom="0">
+ <s:stroke>
+ <s:SolidColorStroke color="black"/>
+ </s:stroke>
+ </s:Rect>
+ <s:Button id="b16" height="10%" height.s2="50%" label="%Height"/>
+ <s:Button id="b17" left="80" height="100%" height.s2="50%" verticalCenter="0" label="%Height"/>
+ <s:Button id="b18" left="160" height="50%" height.s2="300" label="%Height->height"/>
+ </s:Group>
+ </s:HGroup>
+ </s:VGroup>
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/BorderContainerTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/BorderContainerTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/BorderContainerTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/BorderContainerTests.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.
+
+-->
+<s:SkinnableContainer
+ 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>
+
+ <s:BorderContainer id="testBorder" width="300" height="200">
+ <s:Button label="Center" horizontalCenter="0" verticalCenter="0"/>
+ </s:BorderContainer>
+
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonBarTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonBarTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonBarTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonBarTests.mxml Wed May 2 22:44:38 2012
@@ -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.
+
+-->
+<s:Group
+ 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>
+
+ <s:ButtonBar id="testButtonBar" dataProvider="{testViewStack}" labelField="label" requireSelection="true" />
+
+ <mx:ViewStack id="testViewStack" >
+ <mx:VBox label="foo" width="100" height="100" >
+ </mx:VBox>
+ <mx:VBox label="bar" width="100" height="100" >
+ </mx:VBox>
+ </mx:ViewStack>
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ButtonTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/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>
+
+ <s: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/spark/views/CheckBoxTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CheckBoxTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CheckBoxTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/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.
+
+-->
+<s:SkinnableContainer
+ 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>
+
+ <s:CheckBox id="testCheckBox" label="test CheckBox" />
+
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CollatorTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CollatorTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CollatorTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CollatorTests.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.
+
+-->
+<s:Group
+ 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:Declarations>
+ <s:MatchingCollator id="matchingCollatorNoLocaleInline" />
+ <s:MatchingCollator id="matchingCollator" locale="fr"/>
+ <s:SortingCollator id="sortingCollatorNoLocaleInline" />
+ <s:SortingCollator id="sortingCollator" locale="xx"/>
+ </fx:Declarations>
+ <fx:Script>
+ <![CDATA[
+ ]]>
+ </fx:Script>
+
+ <s:Label id="getLocale" text="{getStyle('locale')}" />
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ComboBoxTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ComboBoxTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ComboBoxTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/ComboBoxTests.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.
+
+-->
+<s:SkinnableContainer
+ 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.*;
+
+ [Bindable]
+ public var simpleDP:ArrayCollection = new ArrayCollection(
+ ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "Tennessee", "Texas", "Wisconsin", "Wyoming"]
+ );
+ ]]>
+ </fx:Script>
+
+ <s:ComboBox id="testCombo" dataProvider="{simpleDP}" selectedIndex="0"/>
+
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Group
+ 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:Declarations>
+ <s:CurrencyFormatter id="cfFormatterNoLocaleInline" errorText="#####"/>
+ <s:CurrencyFormatter id="cfFormatter" locale="xx" negativeCurrencyFormat="1"/>
+ <s:CurrencyFormatter id="cfFormatterDecimalSeparator" locale="en-US" decimalSeparator="." currencySymbol="@" currencyISOCode="INR" />
+ <s:CurrencyFormatter id="cfFormatterDigitsType" locale="en-US" digitsType="{NationalDigitsType.CHAM}"/>
+ <s:CurrencyFormatter id="cfFormatterFractionalDigits" locale="en-US" fractionalDigits="{1}" trailingZeros="true" useGrouping="true" groupingSeparator="," groupingPattern='*'/>
+ </fx:Declarations>
+ <fx:Script>
+ <![CDATA[
+ import flash.globalization.NationalDigitsType;
+ ]]>
+ </fx:Script>
+
+ <s:Label id="cfLabel" text="{cfFormatterDigitsType.digitsType}" />
+ <s:Label id="getLocale" text="{getStyle('locale')}" />
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyValidatorTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyValidatorTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyValidatorTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/CurrencyValidatorTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Group
+ 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:Declarations>
+ <s:CurrencyValidator id="cv" source="{tb1}" property="text" />
+ </fx:Declarations>
+ <fx:Script>
+ <![CDATA[
+ ]]>
+ </fx:Script>
+
+ <s:Label text="Input Currency"/>
+ <s:TextInput id="tb1"/>
+
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DataGridTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DataGridTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DataGridTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DataGridTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Group
+ 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.*;
+
+ import spark.components.DataGrid;
+ import spark.components.gridClasses.GridColumn;
+ ]]>
+ </fx:Script>
+
+ <fx:Declarations>
+ <s:ArrayCollection id="dp">
+ <fx:Object country="USA" firstName="Jerry" lastName="Altinegra" position="FW" club="Club16" number="00"/>
+ <fx:Object country="USA" firstName="Carl" lastName="Bocadore" position="DF" club="Club13" number="01"/>
+ <fx:Object country="USA" firstName="Tom" lastName="How" position="GK" club="Club5" number="02"/>
+ <fx:Object country="USA" firstName="Calvin" lastName="Dempley" position="MF" club="Club6" number="03"/>
+ <fx:Object country="USA" firstName="Robert" lastName="Findsey" position="FW" club="Club12" number="04"/>
+ <fx:Object country="USA" firstName="Herz" lastName="Gomvan" position="FW" club="Club11" number="05"/>
+ <fx:Object country="USA" firstName="Lon" lastName="Donovez" position="MF" club="Club8" number="06"/>
+ <fx:Object country="USA" firstName="Oger" lastName="Once" position="DF" club="Club9" number="07"/>
+ <fx:Object country="USA" firstName="Benson" lastName="Feller" position="MF" club="Club0" number="08"/>
+ <fx:Object country="USA" firstName="Ed" lastName="Bundle" position="FW" club="Club8" number="09"/>
+ <fx:Object country="USA" firstName="Mivel" lastName="Brady" position="MF" club="Club4" number="10"/>
+ <fx:Object country="USA" firstName="Stere" lastName="Cherry" position="DF" club="Club7" number="11"/>
+ <fx:Object country="USA" firstName="Jack" lastName="Demit" position="DF" club="Club15" number="12"/>
+ <fx:Object country="USA" firstName="Jerry" lastName="Altinegra" position="FW" club="Club16" number="13"/>
+ <fx:Object country="ENG" firstName="Robin" lastName="Grain" position="GK" club="Club3" number="14"/>
+ <fx:Object country="ENG" firstName="Joseph" lastName="Hartman" position="GK" club="Club10" number="15"/>
+ <fx:Object country="ENG" firstName="Gran" lastName="Johnsen" position="DF" club="Club9" number="16"/>
+ <fx:Object country="ENG" firstName="Ashton" lastName="Colvin" position="DF" club="Club2" number="17"/>
+ <fx:Object country="ENG" firstName="Mim" lastName="Dawon" position="DF" club="Club14" number="18"/>
+ <fx:Object country="ENG" firstName="Jon" lastName="Terren" position="DF" club="Club2" number="19"/>
+ <fx:Object country="ENG" firstName="Steven" lastName="Warren" position="DF" club="Club1" number="20"/>
+ <fx:Object country="ENG" firstName="Mark" lastName="Upton" position="DF" club="Club17" number="21"/>
+ <fx:Object country="ENG" firstName="James" lastName="Carrer" position="DF" club="Club10" number="22"/>
+ <fx:Object country="ENG" firstName="Len" lastName="Kingman" position="DF" club="Club14" number="23"/>
+ </s:ArrayCollection>
+
+ <fx:Object id="obj1" country="ENG" firstName="len" lastName="Kingman" position="DF" club="Club14" number="23"/>
+ <fx:Object id="obj2" country="USA" firstName="Jack" lastName="Demit" position="DF" club="Club15" number="12"/>
+
+ <s:ArrayCollection id="columns">
+ <s:GridColumn id="col1" dataField="country" />
+ <s:GridColumn id="col2" dataField="firstName" visible="false" />
+ <s:GridColumn id="col3" dataField="lastName" />
+ <s:GridColumn id="col5" dataField="club" />
+ <s:GridColumn id="col6" dataField="number" />
+ </s:ArrayCollection>
+
+ <s:GridColumn id="col4" dataField="position"/>
+ </fx:Declarations>
+
+ <s:DataGrid id="testdg" />
+
+</s:Group>
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DataGridTests.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.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.
+
+-->
+<s:Group
+ 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:Declarations>
+ <s:DateTimeFormatter id="dtFormatterNoLocaleInline" errorText="#####"/>
+ <s:DateTimeFormatter id="dtFormatter" locale="xx"/>
+ <s:DateTimeFormatter id="dtFormatterShortDate" dateStyle="short"/>
+ <s:DateTimeFormatter id="dtFormatterShortTime" timeStyle="short"/>
+ <s:DateTimeFormatter id="dtFormatterPattern" dateTimePattern="EEEE, MMMM. d, yyyy 'at' h:mm a"/>
+ </fx:Declarations>
+ <fx:Script>
+ <![CDATA[
+ [Bindable]
+ private var aDate:Date = new Date(2000,0,1);
+
+
+ ]]>
+ </fx:Script>
+ <mx:Form width="370" x="0" y="0" height="59">
+ <s:Label text="format - dateStyle and timeStyle:" x="9" y="110"/>
+ <s:Label id="getLocale" text="{getStyle('locale')}" />
+ <mx:FormItem label="dateShort">
+ <s:TextInput id="dateShort" text="{dtFormatterShortDate.format(aDate)}" width="210"/>
+ </mx:FormItem>
+ <mx:FormItem label="timeShort">
+ <s:TextInput id="timeShort" text="{dtFormatterShortTime.format(aDate)}" width="200"/>
+ </mx:FormItem>
+ </mx:Form>
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DeferredInstantiationTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DeferredInstantiationTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DeferredInstantiationTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DeferredInstantiationTests.mxml Wed May 2 22:44:38 2012
@@ -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.
+
+-->
+<s:Group
+ 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>
+
+ <s:SkinnableContainer id="deferredContent" creationPolicy="none">
+ <s:layout>
+ <s:VerticalLayout/>
+ </s:layout>
+ <s:Button id="button1" label="Button 1" />
+ <s:Button id="button2" label="Button 2" />
+ </s:SkinnableContainer>
+
+</s:Group>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Group
+ 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:DesignLayer id="myLayer" visible="false" alpha=".5">
+ <fx:DesignLayer id="myInnerLayer">
+ <s:Button id="testDLButton" />
+ </fx:DesignLayer>
+</fx:DesignLayer>
+
+</s:Group>
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DropDownListTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DropDownListTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DropDownListTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/DropDownListTests.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.
+
+-->
+<s:SkinnableContainer
+ 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>
+
+ <s:DropDownList id="testCombo" requireSelection="true" initialize="testCombo.dataProvider = new ArrayCollection(comboDP)" />
+
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/EasingTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/EasingTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/EasingTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/EasingTests.mxml Wed May 2 22:44:38 2012
@@ -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.
+
+-->
+<s:SkinnableContainer
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ width="600" height="600"
+ backgroundColor="0x000000">
+ <s:layout>
+ <s:BasicLayout/>
+ </s:layout>
+
+ <fx:Declarations>
+ <s:Parallel id="bd">
+ <s:Move id="m1" duration="200" target="{bl}" yFrom="100" yTo="575">
+ <s:easer>
+ <s:Bounce/>
+ </s:easer>
+ </s:Move>
+ <s:Move id="m2" duration="200" target="{rl}" yFrom="100" yTo="575">
+ <s:easer>
+ <s:Elastic/>
+ </s:easer>
+ </s:Move>
+ </s:Parallel>
+ </fx:Declarations>
+
+ <s:Line xFrom="{bl.x + (bl.width/2)}" yFrom="{bl.y + (bl.height/2)}" xTo="{rl.x + (rl.width/2)}" yTo="{rl.y + (rl.height/2)}">
+ <s:stroke>
+ <s:SolidColorStroke color="0xFFFFFF" weight="3"/>
+ </s:stroke>
+ </s:Line>
+
+ <s:Group id="bl" left="200" y="100">
+ <s:Ellipse width="25" height="25">
+ <s:fill>
+ <s:SolidColor color="white"/>
+ </s:fill>
+ </s:Ellipse>
+ </s:Group>
+
+ <s:Group id="rl" right="200" y="100">
+ <s:Ellipse width="25" height="25">
+ <s:fill>
+ <s:SolidColor color="white"/>
+ </s:fill>
+ </s:Ellipse>
+ </s:Group>
+
+</s:SkinnableContainer>
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FXG2RuntimeTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FXG2RuntimeTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FXG2RuntimeTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FXG2RuntimeTests.mxml Wed May 2 22:44:38 2012
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Group
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx" >
+
+<s:layout>
+ <s:TileLayout />
+</s:layout>
+
+<fx:Script>
+<![CDATA[
+
+]]>
+</fx:Script>
+
+ <s:Graphic id="graphic1" width="200" height="200" maskType="clip">
+ <s:mask>
+ <s:Group>
+ <s:Ellipse width="85" height="85" >
+ <s:fill>
+ <s:SolidColor color="#2D1FFF"/>
+ </s:fill>
+ </s:Ellipse>
+ </s:Group>
+ </s:mask>
+ <s:Rect id="rect1" width="100" height="100" >
+ <s:fill>
+ <mx:SolidColor color="0xFF0000" />
+ </s:fill>
+ </s:Rect>
+ </s:Graphic>
+ <s:Group id="bitmapGroup" width="200" height="200">
+ <s:BitmapImage id="image1" source="@Embed('../../basicImage.JPG')" x="10" y="10" />
+ </s:Group>
+</s:Group>
Propchange: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FXG2RuntimeTests.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FormTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FormTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FormTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/spark/views/FormTests.mxml Wed May 2 22:44:38 2012
@@ -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.
+
+-->
+<s:SkinnableContainer
+ 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.ArrayCollection;
+ [Bindable]
+ public var statesDP:ArrayCollection = new ArrayCollection(["Arizona","California","Kansas","New Mexico","Texas","Wyoming"]);
+ ]]>
+ </fx:Script>
+
+ <s:Form id="form1">
+ <s:FormHeading label="Horizontal"/>
+
+ <s:FormItem label="Address" sequenceLabel="1."
+ required="true" id="formItem1">
+ <s:TextInput width="100%"/>
+ <s:TextInput width="100%"/>
+ <s:TextInput width="100%"/>
+ <s:helpContent>
+ <s:Label text="(ex. 123 Main Street)" baseline="14" />
+ <s:Button label="?" width="30" baseline="14" x="120"/>
+ </s:helpContent>
+ </s:FormItem>
+ <s:FormItem label="City" sequenceLabel="2." required="true"
+ id="formItem2">
+ <s:Button label="Hollywood!" fontSize="20"/>
+ </s:FormItem>
+ <s:FormItem label="State" sequenceLabel="3." >
+ <s:ComboBox dataProvider="{statesDP}" width="100%"/>
+ </s:FormItem>
+ <s:FormItem label="ZipCode" sequenceLabel="4." required="true">
+ <s:TextInput widthInChars="4" restrict="0123456789"/>
+ <s:helpContent>
+ <s:Label text="Will appear in your profile" left="0" right="0"/>
+ </s:helpContent>
+ </s:FormItem>
+ </s:Form>
+</s:SkinnableContainer>