flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1333232 [2/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

Modified: incubator/flex/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/build.xml?rev=1333232&r1=1333231&r2=1333232&view=diff
==============================================================================
--- incubator/flex/trunk/build.xml (original)
+++ incubator/flex/trunk/build.xml Wed May  2 22:44:38 2012
@@ -1007,11 +1007,9 @@
 
     <target name="oldcheckintests" depends="dependencychecker-framework,checkintests-mustella" description="Run these tests before every checkin"/>
     
-    <!-- pending mustella and framework/tests/basicTests and airBasicTests to Apache -->
-    <!--target name="checkintests" depends="dependencychecker-framework,basictests-mustella,checkintests-mobile" description="Run these tests before every checkin"/-->
-    <target name="checkintests">
-        <echo message="FixMe: pending mustella and framework/tests donation to Apache"/>
-    </target>
+    <!-- FixMe: add dependency checker and mobile tests -->
+    <target name="checkintests" depends="basictests-mustella" description="Run these tests before every checkin" />
+    <!--<target name="checkintests" depends="dependencychecker-framework,basictests-mustella,checkintests-mobile" description="Run these tests before every checkin"/-->
     
     <target name="checkintests-mobile" depends="airmobile-basictests-mustella" description="Run these tests before every checkin to mobile SDK code"/>
 

Added: incubator/flex/trunk/frameworks/tests/basicTests/BasicTests-config.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/BasicTests-config.xml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/BasicTests-config.xml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/BasicTests-config.xml Wed May  2 22:44:38 2012
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<flex-config>
+    <compiler>
+	    <debug>true</debug>
+    </compiler>
+    <includes>
+    <!--
+    -->
+        <symbol>halo.scripts.ButtonTestScript</symbol>
+        <symbol>halo.scripts.CheckBoxTestScript</symbol>
+        <symbol>halo.scripts.RadioButtonTestScript</symbol>
+        <symbol>halo.scripts.TextInputTestScript</symbol>
+        <symbol>halo.scripts.TextAreaTestScript</symbol>
+        <symbol>halo.scripts.ComboBoxTestScript</symbol>
+        <symbol>halo.scripts.ColorPickerTestScript</symbol>
+        <symbol>halo.scripts.NumericStepperTestScript</symbol>
+        <symbol>halo.scripts.DateFieldTestScript</symbol>
+        <symbol>halo.scripts.MenuTestScript</symbol>
+        <symbol>halo.scripts.MenuBarTestScript</symbol>
+        <symbol>halo.scripts.FocusManagerTestScript</symbol>
+        <symbol>halo.scripts.ListAndDataGridTestScript</symbol>
+        <symbol>halo.scripts.TreeTestScript</symbol>
+        <symbol>halo.scripts.ImageTestScript</symbol>
+        <symbol>halo.scripts.SWFLoaderTestScript</symbol>
+        <symbol>halo.scripts.TextTestScript</symbol>
+        <symbol>halo.scripts.FTETextTestScript</symbol>
+        <symbol>halo.scripts.ProgressBarTestScript</symbol>
+        <symbol>halo.scripts.SliderTestScript</symbol>
+        <symbol>halo.scripts.AlertTestScript</symbol>
+        <symbol>halo.scripts.TabNavigatorTestScript</symbol>
+        <symbol>halo.scripts.AccordionTestScript</symbol>
+        <symbol>halo.scripts.RPCDataBindingTestScript</symbol>
+        <symbol>halo.scripts.CollectionTestScript</symbol>
+        <symbol>spark.scripts.ListDragDropTestScript</symbol>
+        <symbol>halo.scripts.MXItemRendererTestScript</symbol>
+        <symbol>spark.scripts.BorderContainerTestScript</symbol>
+        <symbol>spark.scripts.ButtonTestScript</symbol>
+        <symbol>spark.scripts.CheckBoxTestScript</symbol>
+        <symbol>spark.scripts.EasingTestScript</symbol>
+        <symbol>spark.scripts.RadioButtonTestScript</symbol>
+        <symbol>spark.scripts.TextInputTestScript</symbol>
+        <symbol>spark.scripts.TextAreaTestScript</symbol>
+        <symbol>spark.scripts.DesignLayerTestScript</symbol>
+        <symbol>spark.scripts.ComboBoxTestScript</symbol>
+        <symbol>spark.scripts.DropDownListTestScript</symbol>
+        <symbol>spark.scripts.FormTestScript</symbol>
+        <symbol>spark.scripts.NumericStepperTestScript</symbol>
+        <symbol>spark.scripts.SliderTestScript</symbol>
+        <symbol>spark.scripts.ScrollBarTestScript</symbol>
+        <symbol>spark.scripts.DeferredInstantiationTestScript</symbol>
+        <symbol>spark.scripts.LayoutDirectionTestScript</symbol>
+        <symbol>spark.scripts.LayoutTestScript</symbol>
+        <symbol>spark.scripts.PanelControlBarTestScript</symbol>
+        <symbol>spark.scripts.ButtonBarTestScript</symbol>
+        <symbol>spark.scripts.TileGroupTestScript</symbol>
+        <symbol>spark.scripts.TitleWindowTestScript</symbol>
+        <symbol>graphics.scripts.GraphicsTagsTestScript</symbol>
+        <symbol>fxg.scripts.FXGCompileTestScript</symbol>
+        <symbol>fxg.scripts.FXG2CompileTestScript</symbol>
+        <symbol>spark.scripts.StyleManagerTestScript</symbol>
+	    <symbol>spark.scripts.FXG2RuntimeTestScript</symbol>
+	    <symbol>dmv.scripts.ADGTestScript</symbol>
+	    <symbol>dmv.scripts.ODGTestScript</symbol>
+	    <symbol>dmv.scripts.ChartsTestScript</symbol>	
+        <symbol>spark.scripts.AnimateConstraintsTestScript</symbol>
+        <symbol>spark.scripts.ImageTestScript</symbol>
+        <symbol>spark.scripts.DateTimeFormatterTestScript</symbol> 
+        <symbol>spark.scripts.AdvancedStyleClientTestScript</symbol>
+        <symbol>spark.scripts.NumberFormatterTestScript</symbol>
+        <symbol>spark.scripts.StringToolsTestScript</symbol>
+        <symbol>spark.scripts.CollatorTestScript</symbol>
+        <symbol>spark.scripts.CurrencyFormatterTestScript</symbol>
+        <symbol>spark.scripts.DataGridTestScript</symbol>
+		<symbol>spark.scripts.CurrencyValidatorTestScript</symbol>
+        <symbol>spark.scripts.NumberValidatorTestScript</symbol>
+	<symbol>spark.scripts.SortTestScript</symbol>
+    <!--
+    -->
+        <symbol>ExitWhenDone</symbol>
+        <symbol>SendFormattedResultsToLog</symbol>
+    </includes>
+</flex-config>

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/BasicTests-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.css?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.css (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.css Wed May  2 22:44:38 2012
@@ -0,0 +1,157 @@
+/*
+ *
+ *  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.
+ *
+ */
+
+@namespace "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+
+.global {
+    font-family:"Tahoma";
+    font-size:11px;
+    color:#222222;
+}
+
+.appTitle {
+    font-weight:bold;
+    font-size:16px;
+}
+
+mx|Application {
+/*	background-image: "";
+    theme-color:#CC6600;   */
+    selection-color:#D0DFE6;
+    roll-over-color:#E6F0F3;
+    background-color:#FFFFFF;
+    font-family: Verdana;
+}
+
+
+
+mx|Panel {
+/*    header-colors: #FAEED1, #E3C38D;
+    footer-colors: #F4DBB0, #E3C38D;  */
+    corner-radius:10;
+/*    drop-shadow: true;
+    shadow-distance:6;  */
+    margin-top:0;
+    margin-left:0;
+    margin-right:0;
+    margin-bottom:0;
+}
+
+
+
+mx|Button {
+    color: #FFFFFF;
+    disabled-color: #999999;
+    text-roll-over-color: #FFFFFF;
+    font-family:"Verdana";
+    font-size: 9px;
+    font-weight: "bold";
+/*    fill-colors: #C86336, #763322;  */
+    corner-radius:8;
+/*    border-color: #854230;
+    border-thickness:3;  */
+	foo: 42;  /* This should not cause a warning or error. */
+}
+
+
+mx|CheckBox {
+    color: #000000;
+    font-size: 10px;
+    font-weight: "normal";
+}
+
+mx|RadioButton {
+    color: #000000;
+    font-size: 10px;
+    font-weight: "normal";
+}
+
+
+
+mx|DataGrid {
+    alternating-row-colors:#FFFCEC,#FFF6E2;
+    border-style:"solid";
+    border-color:#CCCCCC;
+    header-color:#FAEED1;
+    v-grid-line-color:#CCCCCC;
+    color:#111111;
+    font-size:9px;
+    text-indent:4;
+}
+
+
+
+
+mx|ComboBox {
+    color: #111111;
+    text-roll-over-color: #111111;
+    font-size:9px;
+    font-weight: "bold";
+/*    fill-colors: #FFFFFF, #C2CCCF;  */
+    background-color: #FFFCEC;
+    corner-radius: 7;
+/*    border-thickness: 1;
+    border-color: #854230;  */
+    margin-left: 6;
+    selection-color:#f5dcb2;
+    roll-over-color:#faeed1;
+
+}
+
+
+mx|HSlider {
+/*    fill-colors: #FFFFFF, #C2CCCF;
+    track-colors: #FAEED1, #E3C38D;
+    border-color: #666666;  */
+    tick-color: #666666;
+    label-offset: -3;
+    tick-offset: -3;
+    track-highlight: true;
+}
+
+mx|Menu {
+	openDuration: 250;
+}
+
+/*
+Apache Flex: requires rideau.jar which is not open-source 
+
+@font-face {
+	src: url("BickhamScriptPro-Regular.otf");
+	fontFamily: "TestFont";
+	embedAsCFF: true;
+}
+
+*/
+
+TextInput {
+/*    font-family:"TestFont";  */
+    paddingTop: 5;
+
+}
+
+@media (os-platform: "Android") and (application-dpi: 160)
+{
+    mx|ComboBox 
+    {
+        color: #111111;
+        fontSize:9px;
+    }
+}

Added: incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/BasicTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,199 @@
+<?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:Application 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:haloviews="halo.views.*"
+    xmlns:sparkviews="spark.views.*"
+    xmlns:graphicsviews="graphics.views.*"
+    xmlns:fxgviews="fxg.views.*"
+    xmlns:dmvviews="dmv.views.*"
+    preloader="BasicTestsPreloader"
+    height="800" width="1000"
+    paddingTop="8" verticalGap="0"
+    >
+
+    <!-- Style sheet used in this application -->
+    <fx:Style source="BasicTests.css"/>
+
+    <!--  STEP 1: Add a state for your test here -->
+    <mx:states>
+        <mx:State name="basicTest" />
+        <mx:State name="haloButtonTest" />
+        <mx:State name="haloCheckBoxTest" />
+        <mx:State name="haloRadioButtonTest" />
+        <mx:State name="haloTextInputTest" />
+        <mx:State name="haloTextAreaTest" />
+        <mx:State name="haloComboBoxTest" />
+        <mx:State name="haloColorPickerTest" />
+        <mx:State name="haloNumericStepperTest" />
+        <mx:State name="haloDateFieldTest" />
+        <mx:State name="haloMenuTest" />
+        <mx:State name="haloMenuBarTest" />
+        <mx:State name="haloFocusManagerTest" />
+        <mx:State name="haloListAndDataGridTest" />
+        <mx:State name="haloTreeTest" />
+        <mx:State name="haloImageTest" />
+        <mx:State name="haloSWFLoaderTest" />
+        <mx:State name="haloTextTest" />
+        <mx:State name="haloFTETextTest" />
+        <mx:State name="haloProgressBarTest" />
+        <mx:State name="haloSliderTest" />
+        <mx:State name="haloTabNavigatorTest" />
+        <mx:State name="haloAccordionTest" />
+        <mx:State name="haloAlertTest" />
+        <mx:State name="haloRPCDataBindingTest" />
+        <mx:State name="haloCollectionTest" />
+        <mx:State name="dmvADGTest" />
+        <mx:State name="dmvODGTest" />
+        <mx:State name="dmvChartsTest" />        
+        <mx:State name="sparkListDragDropTest" />
+        <mx:State name="sparkBorderContainerTest" />
+        <mx:State name="sparkButtonTest" />
+        <mx:State name="sparkCheckBoxTest" />
+        <mx:State name="sparkAnimateConstraintsTest" />
+        <mx:State name="sparkEasingTest" />
+        <mx:State name="sparkRadioButtonTest" />
+        <mx:State name="sparkTextInputTest" />
+        <mx:State name="sparkTextAreaTest" />
+        <mx:State name="sparkComboBoxTest" />
+        <mx:State name="sparkDropDownListTest" />
+        <mx:State name="sparkFormTest" />
+        <mx:State name="sparkLayoutDirectionTest" />
+        <mx:State name="sparkNumericStepperTest" />
+        <mx:State name="sparkSliderTest" />
+        <mx:State name="sparkScrollBarTest" />
+        <mx:State name="sparkDeferredInstantiationTest" />
+        <mx:State name="sparkLayoutTest" />
+        <mx:State name="sparkPanelControlBarTest" />
+        <mx:State name="sparkButtonBarTest" />
+        <mx:State name="sparkTileGroupTest" />
+        <mx:State name="sparkTitleWindowTest" />
+        <mx:State name="sparkVideoPlayerTest" />
+        <mx:State name="mxItemRendererTest" />
+        <mx:State name="graphicsTagsTest" />
+        <mx:State name="fxgCompileTest" />
+        <mx:State name="fxg2CompileTest" />
+        <mx:State name="designLayerTest" />
+        <mx:State name="styleManagerTest" />
+        <mx:State name="fxg2RuntimeTest" />
+        <mx:State name="imageTest" />
+        <mx:State name="sparkDateTimeFormatterTest" />
+        <mx:State name="sparkAdvancedStyleClientTest" />
+        <mx:State name="sparkNumberFormatterTest" />
+        <mx:State name="sparkStringToolsTest" />
+        <mx:State name="sparkCollatorTest" />
+        <mx:State name="sparkCurrencyFormatterTest" />
+        <mx:State name="sparkDataGridTest" />
+		<mx:State name="sparkCurrencyValidatorTest" />
+        <mx:State name="sparkNumberValidatorTest" />
+        <mx:State name="sparkSortTest" /> 
+    </mx:states>
+    
+    <!--  STEP 2: Add an mxml component with the widgets for your test here -->
+    <haloviews:ButtonTests id="haloButtonTests" includeIn="haloButtonTest" />    
+    <haloviews:CheckBoxTests id="haloCheckBoxTests" includeIn="haloCheckBoxTest" />    
+    <haloviews:RadioButtonTests id="haloRadioButtonTests" includeIn="haloRadioButtonTest" />    
+    <haloviews:TextInputTests id="haloTextInputTests" includeIn="haloTextInputTest" />    
+    <haloviews:TextAreaTests id="haloTextAreaTests" includeIn="haloTextAreaTest" />    
+    <haloviews:ComboBoxTests id="haloComboBoxTests" includeIn="haloComboBoxTest" />    
+    <haloviews:ColorPickerTests id="haloColorPickerTests" includeIn="haloColorPickerTest" />    
+    <haloviews:NumericStepperTests id="haloNumericStepperTests" includeIn="haloNumericStepperTest" />    
+    <haloviews:DateFieldTests id="haloDateFieldTests" includeIn="haloDateFieldTest" />    
+    <haloviews:MenuTests id="haloMenuTests" includeIn="haloMenuTest" />    
+    <haloviews:MenuBarTests id="haloMenuBarTests" includeIn="haloMenuBarTest" />    
+    <haloviews:FocusManagerTests id="haloFocusManagerTests" includeIn="haloFocusManagerTest" />    
+    <haloviews:ListAndDataGridTests id="haloListAndDataGridTests" includeIn="haloListAndDataGridTest" />    
+    <haloviews:TreeTests id="haloTreeTests" includeIn="haloTreeTest" />    
+    <haloviews:ImageTests id="haloImageTests" includeIn="haloImageTest" />    
+    <haloviews:SWFLoaderTests id="haloSWFLoaderTests" includeIn="haloSWFLoaderTest" />    
+    <haloviews:TextTests id="haloTextTests" includeIn="haloTextTest" />    
+    <haloviews:FTETextTests id="haloFTETextTests" includeIn="haloFTETextTest" />    
+    <haloviews:ProgressBarTests id="haloProgressBarTests" includeIn="haloProgressBarTest" />    
+    <haloviews:SliderTests id="haloSliderTests" includeIn="haloSliderTest" />    
+    <haloviews:TabNavigatorTests id="haloTabNavigatorTests" includeIn="haloTabNavigatorTest" />    
+    <haloviews:AccordionTests id="haloAccordionTests" includeIn="haloAccordionTest" />    
+    <haloviews:AlertTests id="haloAlertTests" includeIn="haloAlertTest" />    
+    <haloviews:RPCDataBindingTests id="haloRPCDataBindingTests" includeIn="haloRPCDataBindingTest" />    
+    <haloviews:CollectionTests id="haloCollectionTests" includeIn="haloCollectionTest" />
+    <sparkviews:ListDragDropTests id="sparkListDragDropTests" includeIn="sparkListDragDropTest" />
+    <haloviews:MXItemRendererTests id="mxItemRendererTests" includeIn="mxItemRendererTest" /> 
+    <sparkviews:BorderContainerTests id="sparkBorderContainerTests" includeIn="sparkBorderContainerTest" />    
+    <sparkviews:ButtonTests id="sparkButtonTests" includeIn="sparkButtonTest" />    
+    <sparkviews:CheckBoxTests id="sparkCheckBoxTests" includeIn="sparkCheckBoxTest" />    
+    <sparkviews:EasingTests id="sparkEasingTests" includeIn="sparkEasingTest" />    
+    <sparkviews:AnimateConstraintsTests id="sparkAnimateConstraintsTests" includeIn="sparkAnimateConstraintsTest" />    
+    <sparkviews:RadioButtonTests id="sparkRadioButtonTests" includeIn="sparkRadioButtonTest" />    
+    <sparkviews:TextInputTests id="sparkTextInputTests" includeIn="sparkTextInputTest" />    
+    <sparkviews:TextAreaTests id="sparkTextAreaTests" includeIn="sparkTextAreaTest" />    
+    <sparkviews:ComboBoxTests id="sparkComboBoxTests" includeIn="sparkComboBoxTest" />
+    <sparkviews:DropDownListTests id="sparkDropDownListTests" includeIn="sparkDropDownListTest" />    
+    <sparkviews:FormTests id="sparkFormTests" includeIn="sparkFormTest" />
+    <sparkviews:LayoutDirectionTests id="sparkLayoutDirectionTests" includeIn="sparkLayoutDirectionTest" />    
+    <sparkviews:NumericStepperTests id="sparkNumericStepperTests" includeIn="sparkNumericStepperTest" />    
+    <sparkviews:SliderTests id="sparkSliderTests" includeIn="sparkSliderTest" />    
+    <sparkviews:ScrollBarTests id="sparkScrollBarTests" includeIn="sparkScrollBarTest" />    
+    <sparkviews:DeferredInstantiationTests id="sparkDeferredInstantiationTests" includeIn="sparkDeferredInstantiationTest" />    
+    <sparkviews:DesignLayerTests id="designLayerTests" includeIn="designLayerTest" />    
+    <sparkviews:TileGroupTests id="sparkTileGroupTests" includeIn="sparkTileGroupTest" />    
+    <sparkviews:LayoutTests id="sparkLayoutTests" includeIn="sparkLayoutTest" />    
+    <sparkviews:PanelControlBarTests id="sparkPanelControlBarTests" includeIn="sparkPanelControlBarTest" />    
+    <sparkviews:ButtonBarTests id="sparkButtonBarTests" includeIn="sparkButtonBarTest" />    
+    <sparkviews:TitleWindowTests id="sparkTitleWindowTests" includeIn="sparkTitleWindowTest" />
+    <graphicsviews:GraphicsTagsTests id="graphicsTagsTests" includeIn="graphicsTagsTest" />    
+    <fxgviews:FXGCompileTests id="fxgCompileTests" includeIn="fxgCompileTest" />
+    <fxgviews:FXG2CompileTests id="fxg2CompileTests" includeIn="fxg2CompileTest" />    
+    <sparkviews:StyleManagerTests id="styleManagerTests" includeIn="styleManagerTest" />
+    <sparkviews:FXG2RuntimeTests id="fxg2RuntimeTests" includeIn="fxg2RuntimeTest" />
+    <dmvviews:ADGTests id="dmvADGTests" includeIn="dmvADGTest" />
+    <dmvviews:ODGTests id="dmvODGTests" includeIn="dmvODGTest" />
+    <dmvviews:ChartsTests id="dmvChartsTests" includeIn="dmvChartsTest" />
+    <sparkviews:ImageTests id="imageTests" includeIn="imageTest" />
+    <sparkviews:DateTimeFormatterTests id="sparkDateTimeFormatterTests" includeIn="sparkDateTimeFormatterTest" />
+    <sparkviews:AdvancedStyleClientTests id="sparkAdvancedStyleClientTests" includeIn="sparkAdvancedStyleClientTest" />
+    <sparkviews:NumberFormatterTests id="sparkNumberFormatterTests" includeIn="sparkNumberFormatterTest" />
+    <sparkviews:StringToolsTests id="sparkStringToolsTests" includeIn="sparkStringToolsTest" />
+    <sparkviews:CollatorTests id="sparkCollatorTests" includeIn="sparkCollatorTest" />
+    <sparkviews:CurrencyFormatterTests id="sparkCurrencyFormatterTests" includeIn="sparkCurrencyFormatterTest" />
+    <sparkviews:DataGridTests id="sparkDataGridTests" includeIn="sparkDataGridTest" />
+	<sparkviews:CurrencyValidatorTests id="sparkCurrencyValidatorTests" includeIn="sparkCurrencyValidatorTest" />
+    <sparkviews:NumberValidatorTests id="sparkNumberValidatorTests" includeIn="sparkNumberValidatorTest" />
+    <sparkviews:SortTests id="sparkSortTests" includeIn="sparkSortTest" />
+	
+
+    <!--  STEP 3: Add the testscript to BasicTests-config.xml -->
+    
+    <!--  STEP 4 (Optional): Debug your state without running tests.
+          a. Rename BasicTests-config.xml to BasicTests-config.sav
+          b. Uncomment the block of components below.
+          c. Re-run basic tests or compile BasicTests.mxml at the command line and run BasicTests.swf.
+          d. Enter the name of the state you want to debug.
+    -->
+
+    <!--
+    <s:Group >
+        <s:layout>
+            <s:HorizontalLayout paddingTop="10" />
+        </s:layout>
+        <mx:Label text="Enter the new state:" />
+        <mx:TextInput id="newStateInput" text="" enter="{currentState=newStateInput.text}" />
+    </s:Group>    
+    -->    
+</mx:Application>

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

Added: incubator/flex/trunk/frameworks/tests/basicTests/BasicTestsPreloader.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/BasicTestsPreloader.as?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/BasicTestsPreloader.as (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/BasicTestsPreloader.as Wed May  2 22:44:38 2012
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package 
+{
+import flash.system.ApplicationDomain;
+import mx.preloaders.DownloadProgressBar;
+
+public class BasicTestsPreloader extends DownloadProgressBar
+{
+	public function BasicTestsPreloader()
+	{
+		super();
+		if (ApplicationDomain.currentDomain.hasDefinition("mx.core::UIComponent"))
+		{
+			throw new Error("UIComponent found in frame 1");
+		}
+	}
+}
+
+}
+

Added: incubator/flex/trunk/frameworks/tests/basicTests/BasicTests_testScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/BasicTests_testScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/BasicTests_testScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/BasicTests_testScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,348 @@
+<?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="ButtonTest1">
+			<body>
+				<DispatchMouseEvent target="testButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testButton" localX="10" localY="10" />
+				<AssertPropertyValue target="testLabel" propertyName="text" value="This is a test" />
+			</body>
+		</TestCase>
+		<TestCase testID="CheckBoxTest1">
+			<body>
+				<DispatchMouseEvent target="testCheckBox" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testCheckBox" localX="10" localY="10" />
+				<AssertPropertyValue target="testCheckBox" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="RadioButtonTest1">
+			<body>
+				<DispatchMouseEvent target="testRadio1" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testRadio1" localX="10" localY="10" />
+				<AssertPropertyValue target="testRadio1" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="RadioButtonTest2">
+			<body>
+				<DispatchMouseEvent target="testRadio2" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testRadio2" localX="10" localY="10" />
+				<AssertPropertyValue target="testRadio1" propertyName="selected" value="false" />
+				<AssertPropertyValue target="testRadio2" propertyName="selected" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextInputTest1">
+			<body>
+				<DispatchMouseClickEvent target="testTextInput" localX="10" localY="10" />
+				<DispatchKeyEvent char="This is another test." />
+				<AssertPropertyValue target="testTextInput" propertyName="text" value="This is another test." />
+				<AssertPropertyValue target="testTextInput.getChildAt(1)" propertyName="text" value="This is another test." />
+			</body>
+		</TestCase>
+		<TestCase testID="TextAreaTest1">
+			<body>
+				<SetProperty target="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="testTextArea" eventName="updateComplete" eventClass="mx.events::FlexEvent" numExpectedEvents="1" />
+				<AssertPropertyValue target="testTextArea" propertyName="numChildren" value="4" />
+				<AssertPropertyValue target="testTextArea.getChildAt(3)" propertyName="className" value="VScrollBar" />
+			</body>
+		</TestCase>
+		<TestCase testID="ComboBoxTest1">
+			<body>
+				<DispatchMouseEvent target="testCombo" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testCombo" localX="10" localY="10" />
+				<AssertEvent target="testCombo" eventName="open" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testCombo.dropdown" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="ComboBoxTest2">
+			<body>
+				<DispatchMouseEvent target="testCombo.dropdown" type="mouseOver" localX="10" localY="30" />
+				<DispatchMouseClickEvent target="testCombo.dropdown" localX="10" localY="30" />
+				<AssertEvent target="testCombo" eventName="close" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testCombo" propertyName="text" value="Barney" />
+			</body>
+		</TestCase>
+		<TestCase testID="ColorPickerTest1">
+			<body>
+				<DispatchMouseEvent target="testColorPicker" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testColorPicker" localX="10" localY="10" />
+				<AssertEvent target="testColorPicker" eventName="open" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testColorPicker.mx_internal:dropdown" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="ColorPickerTest2">
+			<body>
+				<DispatchMouseEvent target="testColorPicker.mx_internal:dropdown" type="mouseMove" localX="87" localY="77" />
+				<DispatchMouseEvent target="testColorPicker.mx_internal:dropdown" type="mouseOver" localX="87" localY="77" />
+				<DispatchMouseClickEvent target="testColorPicker.mx_internal:dropdown" localX="87" localY="77" />
+				<AssertEvent target="testColorPicker" eventName="close" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testColorPicker" propertyName="selectedColor" value="0x00FFCC" />
+				<AssertPixelValue target="testColorPicker" x="10" y="10" value="0x00FFCC" />
+			</body>
+		</TestCase>
+		<TestCase testID="NumericStepperTest1">
+			<body>
+				<DispatchMouseEvent target="testNumStep.mx_internal:nextButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="testNumStep.mx_internal:nextButton" localX="2" localY="2" />
+				<AssertEvent target="testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="testNumStep" propertyName="value" value="1" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="testNumStep.mx_internal:nextButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+		<TestCase testID="NumericStepperTest2">
+			<body>
+				<DispatchMouseEvent target="testNumStep.mx_internal:nextButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="testNumStep.mx_internal:nextButton" localX="2" localY="2" />
+				<AssertEvent target="testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="testNumStep" propertyName="value" value="2" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="testNumStep.mx_internal:nextButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+		<TestCase testID="NumericStepperTest3">
+			<body>
+				<DispatchMouseEvent target="testNumStep.mx_internal:prevButton" type="mouseOver" localX="2" localY="2" />
+				<DispatchMouseClickEvent target="testNumStep.mx_internal:prevButton" localX="2" localY="2" />
+				<AssertEvent target="testNumStep" eventName="change" eventClass="mx.events::NumericStepperEvent" />
+				<AssertPropertyValue target="testNumStep" propertyName="value" value="1" />
+			</body>
+			<cleanup>
+				<DispatchMouseEvent target="testNumStep.mx_internal:prevButton" type="mouseOut" localX="2" localY="2" />
+			</cleanup>
+		</TestCase>
+		<TestCase testID="DateFieldTest1">
+			<setup>
+				<SetProperty target="testDateField" propertyName="selectedDate" valueExpression="value = new Date(2005, 4, 1)" />
+			</setup>
+			<body>
+				<DispatchMouseEvent target="testDateField" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testDateField" localX="10" localY="10" />
+				<AssertEvent target="testDateField" eventName="open" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testDateField.dropdown" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="DateFieldTest2">
+			<body>
+				<DispatchMouseEvent target="testDateField.dropdown" type="mouseOver" localX="89" localY="67" />
+				<DispatchMouseClickEvent target="testDateField.dropdown" localX="89" localY="67" />
+				<AssertEvent target="testDateField" eventName="close" eventClass="mx.events::DropdownEvent" />
+				<AssertPropertyValue target="testDateField" propertyName="selectedDate" valueExpression="value = new Date(2005, 4, 4)" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest1">
+			<body>
+				<DispatchMouseEvent target="testMenuButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testMenuButton" localX="10" localY="10" />
+				<AssertEvent target="testMenu.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="testMenu" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest2">
+			<body>
+				<DispatchMouseEvent target="testMenu" type="mouseOver" localX="20" localY="10" />
+				<AssertEvent target="testMenu" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="testMenu.mx_internal:subMenus.0.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="testMenu.mx_internal:subMenus.0" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest3">
+			<body>
+				<DispatchMouseEvent target="testMenu" type="mouseOver" localX="20" localY="30" />
+				<AssertEvent target="testMenu" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="testMenu.mx_internal:subMenus.0" propertyName="visible" value="false" />
+				<AssertEvent target="testMenu" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="testMenu.mx_internal:subMenus.1.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="testMenu.mx_internal:subMenus.1" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuTest4">
+			<body>
+				<DispatchMouseEvent target="testMenu.mx_internal:subMenus.1" type="mouseOver" localX="20" localY="10" />
+				<DispatchMouseEvent target="testMenu.mx_internal:subMenus.1" type="mouseDown" localX="20" localY="10" />
+				<DispatchMouseEvent target="testMenu.mx_internal:subMenus.1" type="mouseUp" localX="20" localY="10" />
+				<AssertEvent target="testMenu" eventName="itemClick" eventClass="mx.events::MenuEvent" />
+				<AssertEventPropertyValue propertyName="label" value="Copy" />
+				<AssertEvent target="testMenu" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="testMenuLabel" propertyName="text" value="Copy" />
+				<AssertPropertyValue target="testMenu" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest1">
+			<body>
+				<DispatchMouseEvent target="testMenuBar.menuBarItems.0" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testMenuBar.menuBarItems.0" localX="10" localY="10" />
+				<AssertEvent target="testMenuBar" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="testMenuBar.menus.0.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="testMenuBar.menus.0" propertyName="visible" value="true" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest2">
+			<body>
+				<DispatchMouseEvent target="testMenuBar.menuBarItems.0" type="mouseOut" localX="10" localY="10" />
+				<DispatchMouseEvent target="testMenuBar.menuBarItems.1" type="mouseOver" localX="10" localY="10" />
+				<AssertEvent target="testMenuBar" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="testMenuBar" eventName="menuShow" eventClass="mx.events::MenuEvent" />
+				<AssertEvent target="testMenuBar.menus.1.mx_internal:popupTween" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+				<AssertPropertyValue target="testMenuBar.menus.1" propertyName="visible" value="true" />
+				<AssertPropertyValue target="testMenuBar.menus.0" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+		<TestCase testID="MenuBarTest3">
+			<body>
+				<DispatchMouseEvent target="testMenuBar.menus.1" type="mouseOver" localX="20" localY="30" />
+				<DispatchMouseEvent target="testMenuBar.menus.1" type="mouseDown" localX="20" localY="30" />
+				<DispatchMouseEvent target="testMenuBar.menus.1" type="mouseUp" localX="20" localY="30" />
+				<AssertEvent target="testMenuBar" eventName="itemClick" eventClass="mx.events::MenuEvent" />
+				<AssertEventPropertyValue propertyName="label" value="Paste" />
+				<AssertEvent target="testMenuBar" eventName="menuHide" eventClass="mx.events::MenuEvent" />
+				<AssertPropertyValue target="testMenuLabel" propertyName="text" value="Paste" />
+				<AssertPropertyValue target="testMenuBar.menus.1" propertyName="visible" value="false" />
+			</body>
+		</TestCase>
+		<TestCase testID="TabFocusTest1">
+			<body>
+				<DispatchMouseEvent target="testButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="testButton" localX="10" localY="10" />
+				<AssertPropertyValue target="stage" propertyName="focus" valueExpression="value=application.testButton" />
+			</body>
+		</TestCase>
+		<TestCase testID="TabFocusTest2">
+			<body>
+				<DispatchKeyEvent key="TAB" />
+				<AssertPropertyValue target="stage" propertyName="focus" valueExpression="value=application.testCheckBox" />
+			</body>
+		</TestCase>
+		<TestCase testID="TabFocusTest3">
+			<body>
+				<DispatchKeyEvent key="TAB" />
+				<AssertPropertyValue target="stage" propertyName="focus" valueExpression="value=application.testRadio2" />
+			</body>
+		</TestCase>
+		<TestCase testID="ListTest1">
+			<body>
+				<DispatchMouseEvent target="testList" type="mouseOver" localX="10" localY="55" />
+				<DispatchMouseClickEvent target="testList" localX="10" localY="55" waitEvent="change" waitTarget="testList" />
+				<AssertPropertyValue target="testList" propertyName="selectedIndex" value="2" />
+			</body>
+		</TestCase>
+		<TestCase testID="DragDropTest1">
+			<body>
+				<DispatchMouseEvent target="testList" type="mouseOver" localX="10" localY="55" />
+				<DispatchMouseEvent target="testList" type="mouseDown" localX="10" localY="55" buttonDown="true" />
+ 				<DispatchMouseEvent target="testList" type="mouseMove" buttonDown="true" localX="2" localY="55" waitTarget="testList" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="130"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="230"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="270"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="300"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="330"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="360"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="430" stageY="390"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="470" stageY="410" waitTarget="testDataGrid" waitEvent="dragEnter" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="470" stageY="430"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="470" stageY="450"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="480" stageY="450" />
+ 				<DispatchMouseEvent target="stage" type="mouseUp" stageX="480" stageY="450" waitTarget="testDataGrid" waitEvent="dragDrop" />
+				<AssertEvent target="testList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="testDataGrid.dataProvider" propertyName="length" value="7" />
+			</body>
+		</TestCase>
+		<TestCase testID="TreeTest1">
+			<body>
+				<DispatchMouseEvent target="addNodeButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="addNodeButton"  localX="10" localY="10" waitEvent="updateComplete" waitTarget="testTree" />
+				<AssertPropertyValue target="testTree.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+		<TestCase testID="TreeTest2">
+			<body>
+				<DispatchMouseEvent target="testTree" type="mouseOver" localX="10" localY="56" />
+				<DispatchMouseClickEvent target="testTree" localX="10" localY="56" />
+				<AssertEvent target="testTree" eventName="itemOpen" eventClass="mx.events::TreeEvent" />
+				<AssertPropertyValue target="testTree.mx_internal:wrappedCollection" propertyName="length" value="8" />
+			</body>
+		</TestCase>
+		<TestCase testID="ImageTest1">
+			<body>
+				<AssertPropertyValue target="testImage" propertyName="measuredWidth" value="143" />
+				<AssertPropertyValue target="testImage" propertyName="measuredHeight" value="43" />
+			</body>
+		</TestCase>
+		<TestCase testID="LoaderTest1">
+			<body>
+				<AssertPixelValue target="testLoader" x="10" y="10" value="0x0066CC" />
+			</body>
+		</TestCase>
+		<TestCase testID="TextTest1">
+			<body>
+				<AssertPropertyValue target="testText.getChildAt(0)" propertyName="length" value="86" />
+			</body>
+		</TestCase>
+		<TestCase testID="SliderTest1">
+			<body>
+				<DispatchMouseEvent target="testSlider" type="mouseOver" localX="3" localY="24" />
+				<DispatchMouseEvent target="testSlider" type="mouseDown" localX="3" localY="24" />
+				<DispatchMouseEvent target="testSlider" type="mouseMove" localX="13" localY="24" />
+				<DispatchMouseEvent target="testSlider" type="mouseMove" localX="23" localY="24" />
+				<DispatchMouseEvent target="testSlider" type="mouseMove" localX="33" localY="24" />
+				<DispatchMouseEvent target="testSlider" type="mouseUp" localX="33" localY="24" />
+				<AssertPropertyValue target="testImage" propertyName="alpha" value="0.21875" />
+				<AssertPixelValue target="testImage" x="58" y="27" value="0xC8C8C8" />
+				<AssertPropertyValue target="testProgress" propertyName="value" value="21" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/basicImage.jpg
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/basicImage.jpg?rev=1333232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/basicImage.jpg
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/basicImage.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/frameworks/tests/basicTests/basicLoader.swf
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/basicLoader.swf?rev=1333232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/basicLoader.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ADGTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ADGTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ADGTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ADGTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,108 @@
+<?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="SetupADGTest1">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="dmvADGTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="dmvADGTests.testADG.dataProvider" propertyName="length" value="6" />
+				<AssertPropertyValue target="dmvADGTests.testADG2.dataProvider" propertyName="length" value="5" />
+				<AssertPropertyValue target="dmvADGTests.testADG3.dataProvider" propertyName="length" value="9" />
+			</body>
+		</TestCase>
+		<TestCase testID="DragDropADGTest1">
+			<body>
+				<DispatchMouseEvent target="dmvADGTests.testList" type="mouseOver" localX="10" localY="55" />
+				<DispatchMouseEvent target="dmvADGTests.testList" type="mouseDown" localX="10" localY="55" buttonDown="true" />
+ 				<DispatchMouseEvent target="dmvADGTests.testList" type="mouseMove" buttonDown="true" localX="2" localY="55" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="60"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="80"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="100"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="120"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="140"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="180"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="0" localY="210"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="10" localY="210" waitTarget="dmvADGTests.testADG" waitEvent="dragEnter" />
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="20" localY="230"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="30" localY="230"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseMove" buttonDown="true" localX="40" localY="230" />
+ 				<DispatchMouseEvent target="dmvADGTests" type="mouseUp" localX="40" localY="210" waitTarget="dmvADGTests.testADG" waitEvent="dragDrop" />
+				<AssertEvent target="dmvADGTests.testList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="dmvADGTests.testADG.dataProvider" propertyName="length" value="7" />
+			</body>
+		</TestCase>
+		<TestCase testID="ADGAddItemTest">
+			<body>
+				<DispatchMouseEvent target="dmvADGTests.addNodeButton" type="mouseOver" localX="10" localY="10" />
+				<DispatchMouseClickEvent target="dmvADGTests.addNodeButton"  localX="10" localY="10" waitEvent="updateComplete" waitTarget="dmvADGTests.testADG2" />
+				<AssertPropertyValue target="dmvADGTests.testADG2.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+		<TestCase testID="ADGItemOpenTest">
+			<body>
+				<DispatchMouseEvent target="dmvADGTests.testADG2" type="mouseOver" localX="10" localY="78" />
+				<DispatchMouseClickEvent target="dmvADGTests.testADG2" localX="10" localY="78" />
+				<AssertEvent target="dmvADGTests.testADG2" eventName="itemOpen" eventClass="mx.events::AdvancedDataGridEvent" />
+				<AssertPropertyValue target="dmvADGTests.testADG2.dataProvider" propertyName="length" value="8" />
+			</body>
+		</TestCase>
+		<TestCase testID="ADGItemCloseTest">
+			<body>
+				<DispatchMouseEvent target="dmvADGTests.testADG3" type="mouseOver" localX="10" localY="78" />
+				<DispatchMouseClickEvent target="dmvADGTests.testADG3" localX="10" localY="78" />
+				<AssertEvent target="dmvADGTests.testADG3" eventName="itemClose" eventClass="mx.events::AdvancedDataGridEvent" />
+				<AssertPropertyValue target="dmvADGTests.testADG3.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ChartsTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ChartsTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ChartsTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ChartsTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,89 @@
+<?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="SetupChartTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="dmvChartsTest" 
+                    waitEvent="updateComplete" />
+				<SetProperty target="dmvChartsTests.testColumnChart" propertyName="dataProvider"
+							 valueExpression="value=application.dmvChartsTests.cChartDP()" 
+							 waitEvent="updateComplete" />
+				<SetProperty target="dmvChartsTests.testBarChart" propertyName="dataProvider"
+							 valueExpression="value=application.dmvChartsTests.bChartDP()" 
+							 waitEvent="updateComplete" />
+				<SetProperty target="dmvChartsTests.testPieChart" propertyName="dataProvider"
+							 valueExpression="value=application.dmvChartsTests.pChartDP()" 
+							 waitEvent="updateComplete" />
+
+				<AssertPropertyValue target="dmvChartsTests.testColumnChart.dataProvider" propertyName="length" value="10" />
+				<AssertPropertyValue target="dmvChartsTests.testBarChart.dataProvider" propertyName="length" value="5" />
+				<AssertPropertyValue target="dmvChartsTests.testPieChart.dataProvider" propertyName="length" value="4" />	
+			</body>
+		</TestCase>
+
+		<TestCase testID="TestMinMax">
+			<body>
+				<AssertPropertyValue target="dmvChartsTests.testBarChart.horizontalAxis" propertyName="maximum" value="24" />
+				<AssertPropertyValue target="dmvChartsTests.testColumnChart.verticalAxis" propertyName="maximum" value="28" />
+			</body>
+		</TestCase>
+	
+		<TestCase testID="DragDropChartTest">
+			<body>
+				
+				<DispatchMouseEvent target="dmvChartsTests.testColumnChart" type="mouseOver" localX="95" localY="258" />
+				<DispatchMouseEvent target="dmvChartsTests.testColumnChart" type="mouseDown" localX="95" localY="258" buttonDown="true" />
+ 				<DispatchMouseEvent target="dmvChartsTests.testColumnChart" type="mouseMove" buttonDown="true" localX="98" localY="270"/>
+
+ 				<DispatchMouseEvent target="dmvChartsTests.testPieChart" type="mouseMove" buttonDown="true" localX="192" localY="181"/>
+ 				<DispatchMouseEvent target="dmvChartsTests.testPieChart" type="mouseUp" localX="192" localY="183" 
+									waitEvent="dragDrop" />
+				<AssertPropertyValue target="dmvChartsTests.testColumnChart.dataProvider" propertyName="length" value="10" />
+				<AssertPropertyValue target="dmvChartsTests.testPieChart.dataProvider" propertyName="length" value="5" />
+				<AssertPropertyValue target="dmvChartsTests.testBarChart.dataProvider" propertyName="length" value="5" />
+
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ODGTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ODGTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ODGTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/scripts/ODGTestScript.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.
+
+-->
+<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="ODGTest1">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="dmvODGTest" 
+                    waitEvent="updateComplete" />
+				 <AssertPropertyValue target="dmvODGTests.testODG" propertyName="numChildren" value="3" />
+
+			</body>
+		</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ADGTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ADGTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ADGTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ADGTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,119 @@
+<?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 adgDP: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 var treeDP:Array = [ { label: "Inbox", children: [
+                                                    { label: "Personal", data: "personal"},
+                                                    { label: "Marketing", data: "mktg"},
+                                                    { label: "To do", data: "todo"} ]},
+                                                    { label: "Calendar", children: [
+                                                                 { label: "Appointments", data: "appointments"},
+                                                                 { label: "Meetings", data: "meetings"} ]}, 
+                                                    { label: "Sent", data: "sent" },
+                                                    { label: "Deleted Items", data: "deleted" },
+                                                    { label: "Spam", data: "spam" } ];
+
+
+    public function initListComponents():void
+    {
+            testList.dataProvider = listDP;
+            testADG.dataProvider = adgDP;
+            testADG2.dataProvider = new HierarchicalData(treeDP);
+            
+            var gc:GroupingCollection2 = new GroupingCollection2();
+			gc.source = adgDP;
+			var grouping:Grouping = new Grouping();
+			grouping.fields = [new GroupingField("Rating")];
+			gc.grouping = grouping;
+			gc.refresh();
+			
+			testADG3.dataProvider = gc;
+
+    }
+    
+    public function insertItemInADG():void
+    {
+            var c:ICollectionView = ICollectionView(testADG2.dataProvider);
+            var cursor:IViewCursor = c.createCursor();
+            cursor.seek(CursorBookmark.FIRST, 1);
+            cursor.insert({label:'Archive', data:'archive'});
+    }
+
+]]>
+</fx:Script>
+
+    <mx:List id="testList" labelField="Album" dragEnabled="true" dragMoveEnabled="false" />
+
+    <mx:AdvancedDataGrid id="testADG" dropEnabled="true">
+            <mx:columns>
+                        <mx:AdvancedDataGridColumn dataField="Album" headerText="Record" />
+                        <mx:AdvancedDataGridColumn dataField="Price" />
+            </mx:columns>
+    </mx:AdvancedDataGrid>
+    
+    <mx:AdvancedDataGrid id="testADG2">
+            <mx:columns>
+                        <mx:AdvancedDataGridColumn dataField="label" headerText="Label" />
+                        <mx:AdvancedDataGridColumn dataField="data" />
+            </mx:columns>
+    </mx:AdvancedDataGrid>
+
+    <mx:Button id="addNodeButton" label="addNodeAt" click="insertItemInADG()" />
+    
+    <mx:AdvancedDataGrid id="testADG3" displayItemsExpanded="true">
+		<mx:columns>
+			<mx:AdvancedDataGridColumn dataField="Rating" headerText="Rating" />
+			<mx:AdvancedDataGridColumn dataField="Album" />
+		</mx:columns>
+	</mx:AdvancedDataGrid>
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ChartsTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ChartsTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ChartsTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ChartsTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,138 @@
+<?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.events.DragEvent;
+      import mx.managers.DragManager;
+      import mx.core.DragSource;
+      import mx.charts.chartClasses.ChartBase;
+
+
+
+      public function cChartDP():ArrayCollection
+	{
+		var dp:ArrayCollection = new ArrayCollection( [
+            { Date: "25-Jul", open: 18.50,  high: 19, close:18.86},
+            { Date: "26-Jul", open: 19.56,  high: 19.98,  close:11.69},                       
+            { Date: "27-Jul", open: 20.81,  high: 20.99,  close:20.12}, 
+            { Date: "28-Jul", open: 20.70,  high: 21.00,  close:23.84}, 
+            { Date: "29-Jul", open: 21.7,  high: 21.79, close:15.6}, 
+            { Date: "1-Aug", open: 22.45,  high: 22.65, close:21.95},
+            { Date: "2-Aug", open: 22.56,  high: 22.6, close:12.98},
+            { Date: "3-Aug", open: 22.42,  high: 22.70, close:23.63},
+            { Date: "4-Aug", open: 21.67,  high: 22.82, close:26.34},
+            { Date: "5-Aug", open: 22.44,  high: 22.85, close:16.31} ]);
+		return dp;
+	}
+
+	public function bChartDP():ArrayCollection
+	{
+		var dp:ArrayCollection = new ArrayCollection( [
+            { Date: "21-Jul", open: 18.50,  high: 19, close:18.86},
+            { Date: "22-Jul", open: 19.56,  high: 19.98,  close:11.69},                       
+            { Date: "23-Jul", open: 20.81,  high: 20.99,  close:20.12}, 
+            { Date: "24-Jul", open: 20.70,  high: 21.00,  close:23.84}, 
+            { Date: "25-Jul", open: 21.7,  high: 21.79, close:15.6} ]);
+		return dp;
+	}
+ 	
+	public function pChartDP():ArrayCollection
+	{
+		var dp:ArrayCollection = new ArrayCollection( [
+            { Date: "6-Aug", open: 22.45,  high: 22.65, close:21.95},
+            { Date: "7-Aug", open: 22.56,  high: 22.6, close:12.98},
+            { Date: "8-Aug", open: 22.42,  high: 22.70, close:23.63},
+            { Date: "9-Aug", open: 21.67,  high: 22.82, close:26.34} ]);
+		return dp;
+	}
+
+    
+      private function doDragEnter(event:DragEvent):void {
+            var dragInitiator:ChartBase=ChartBase(event.currentTarget);
+            DragManager.acceptDragDrop(dragInitiator);
+      }
+
+      private function doDragOver(event:DragEvent):void {
+            if (event.ctrlKey)
+                DragManager.showFeedback(DragManager.COPY);
+            else if (event.shiftKey)
+                DragManager.showFeedback(DragManager.LINK);
+            else
+                DragManager.showFeedback(DragManager.MOVE);
+      }
+
+      private function doDragDrop(event:DragEvent):void {
+            // Get drop target.
+            var dropTarget:ChartBase=ChartBase(event.currentTarget);
+           
+           // Hide drop feedback.
+           //  doDragExit(event);
+              
+           // Get the dragged items from the drag initiator.
+           var items:Array = event.dragSource.dataForFormat("chartitems") as Array;
+               
+               
+           // Add each item to the drop target.
+           for(var i:uint=0; i < items.length; i++)
+           {
+	           dropTarget.dataProvider.addItem(items[i].item);
+           }
+      }
+
+			
+]]>
+</fx:Script>
+<mx:HBox>
+    <mx:ColumnChart id="testColumnChart" dropEnabled="true" dragEnabled="true" selectionMode="single" dragOver="doDragOver(event)">
+		<mx:horizontalAxis>
+			<mx:CategoryAxis categoryField="Date" />
+		</mx:horizontalAxis>
+            <mx:series>
+                        <mx:ColumnSeries id="series1" yField="open"/>
+                        <mx:ColumnSeries id="series2" yField="close" />
+            </mx:series>
+    </mx:ColumnChart>
+
+	 <mx:BarChart id="testBarChart" dropEnabled="true" dragEnabled="true" selectionMode="single" 
+		dragEnter="doDragEnter(event)" dragDrop="doDragDrop(event)" dragOver="doDragOver(event)">
+		<mx:verticalAxis>
+			<mx:CategoryAxis categoryField="Date" />
+		</mx:verticalAxis>
+            <mx:series>
+                        <mx:BarSeries id="bSeries1" xField="open"/>
+                        <mx:BarSeries id="bSeries2" xField="close" />
+            </mx:series>
+    </mx:BarChart>
+
+</mx:HBox>
+	 <mx:PieChart id="testPieChart" dropEnabled="true" dragEnter="doDragEnter(event)" dragDrop="doDragDrop(event)" dragOver="doDragOver(event)">
+            <mx:series>
+                        <mx:PieSeries field="open"/>
+            </mx:series>
+    </mx:PieChart>
+</mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/DataIntro.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/DataIntro.as?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/DataIntro.as (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/DataIntro.as Wed May  2 22:44:38 2012
@@ -0,0 +1,83 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+[Bindable]
+private var flatData:ArrayCollection = new ArrayCollection(
+[
+  {customer:"AAA", product:"ColdFusion", quarter:"Q1", revenue:210, cost:25},
+  {customer:"AAA", product:"Flex", quarter:"Q2", revenue:210, cost:25},
+  {customer:"AAA", product:"Dreamweaver", quarter:"Q3", revenue:250, cost:125},
+  {customer:"AAA", product:"Flash", quarter:"Q4", revenue:430, cost:75},
+  
+  {customer:"BBB", product:"ColdFusion", quarter:"Q2", revenue:125, cost:20},
+  {customer:"BBB", product:"Flex", quarter:"Q3", revenue:210, cost:20},
+  {customer:"BBB", product:"Dreamweaver", quarter:"Q4", revenue:320, cost:120},
+  {customer:"BBB", product:"Flash", quarter:"Q1", revenue:280, cost:70},
+  
+  {customer:"CCC", product:"ColdFusion", quarter:"Q3", revenue:375, cost:120},
+  {customer:"CCC", product:"Flex", quarter:"Q4", revenue:430, cost:120},
+  {customer:"CCC", product:"Dreamweaver", quarter:"Q1", revenue:470, cost:220},
+  {customer:"CCC", product:"Flash", quarter:"Q2", revenue:570, cost:170},
+  
+  {customer:"AAA", product:"ColdFusion", quarter:"Q4", revenue:215, cost:90},
+  {customer:"AAA", product:"Flex", quarter:"Q1", revenue:210, cost:90},
+  {customer:"AAA", product:"Dreamweaver", quarter:"Q2", revenue:175, cost:190},
+  {customer:"AAA", product:"Flash", quarter:"Q3", revenue:670, cost:75},
+  
+  {customer:"BBB", product:"ColdFusion", quarter:"Q1", revenue:175, cost:20},
+  {customer:"BBB", product:"Flex", quarter:"Q2", revenue:210, cost:20},
+  {customer:"BBB", product:"Dreamweaver",quarter:"Q3", revenue:120, cost:120},
+  {customer:"BBB", product:"Flash", quarter:"Q4", revenue:310, cost:70},
+  
+  {customer:"CCC", product:"ColdFusion", quarter:"Q1", revenue:385, cost:120},
+  {customer:"CCC", product:"Flex", quarter:"Q2", revenue:340, cost:120},
+  {customer:"CCC", product:"Dreamweaver", quarter:"Q3", revenue:470, cost:220},
+  {customer:"CCC", product:"Flash", quarter:"Q4", revenue:270, cost:170},
+  
+  
+  {customer:"AAA", product:"ColdFusion", quarter:"Q1", revenue:100, cost:25},
+  {customer:"AAA", product:"Flex", quarter:"Q2", revenue:150, cost:25},
+  {customer:"AAA", product:"Dreamweaver", quarter:"Q3", revenue:200, cost:125},
+  {customer:"AAA", product:"Flash", quarter:"Q4", revenue:300, cost:75},
+  
+  {customer:"BBB", product:"ColdFusion", quarter:"Q2", revenue:175, cost:20},
+  {customer:"BBB", product:"Flex", quarter:"Q3", revenue:100, cost:20},
+  {customer:"BBB", product:"Dreamweaver", quarter:"Q4", revenue:270, cost:120},
+  {customer:"BBB", product:"Flash", quarter:"Q1", revenue:370, cost:70},
+  
+  {customer:"CCC", product:"ColdFusion", quarter:"Q3", revenue:410, cost:120},
+  {customer:"CCC", product:"Flex", quarter:"Q4", revenue:300, cost:320},
+  {customer:"CCC", product:"Dreamweaver", quarter:"Q1", revenue:510, cost:220},
+  {customer:"CCC", product:"Flash", quarter:"Q2", revenue:620, cost:170},
+  
+  {customer:"AAA", product:"ColdFusion", quarter:"Q4", revenue:215, cost:90},
+  {customer:"AAA", product:"Flex", quarter:"Q1", revenue:210, cost:90},
+  {customer:"AAA", product:"Dreamweaver", quarter:"Q2", revenue:175, cost:190},
+  {customer:"AAA", product:"Flash", quarter:"Q3", revenue:420, cost:75},
+  
+  {customer:"BBB", product:"ColdFusion", quarter:"Q1", revenue:240, cost:20},
+  {customer:"BBB", product:"Flex", quarter:"Q2", revenue:100, cost:20},
+  {customer:"BBB", product:"Dreamweaver", quarter:"Q3", revenue:270, cost:120},
+  {customer:"BBB", product:"Flash", quarter:"Q4", revenue:370, cost:70},
+  
+  {customer:"CCC", product:"ColdFusion", quarter:"Q1", revenue:375, cost:120},
+  {customer:"CCC", product:"Flex", quarter:"Q2", revenue:420, cost:120},
+  {customer:"CCC", product:"Dreamweaver", quarter:"Q3", revenue:680, cost:220},
+  {customer:"CCC", product:"Flash", quarter:"Q4", revenue:570, cost:170}
+          
+]);

Added: incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ODGTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ODGTests.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ODGTests.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/dmv/views/ODGTests.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,152 @@
+<?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="creationCompleteHandler()"
+    >
+	<fx:Script>
+		<![CDATA[
+			import mx.olap.OLAPMember;
+			import mx.rpc.AsyncResponder;
+			import mx.rpc.AsyncToken;
+			import mx.messaging.messages.ErrorMessage;
+			import mx.olap.OLAPQuery;
+			import mx.olap.OLAPSet;
+			import mx.olap.IOLAPQuery;
+			import mx.olap.IOLAPQueryAxis;
+			import mx.olap.IOLAPCube;
+			import mx.olap.OLAPResult;
+			import mx.events.CubeEvent;
+			import mx.controls.Alert;
+			import mx.collections.ArrayCollection;
+			
+			include "DataIntro.as"
+			
+			private function creationCompleteHandler():void {
+				myMXMLCube.refresh();
+			}
+			private function getQuery(cube:IOLAPCube):IOLAPQuery {
+				var query:OLAPQuery = new OLAPQuery;
+				var om:OLAPMember;
+				
+				var rowQueryAxis:IOLAPQueryAxis = query.getAxis(OLAPQuery.ROW_AXIS);
+				var productSet:OLAPSet = new OLAPSet;
+				productSet.addElement(
+					cube.findDimension("ProductDim").findAttribute("Product").findMember("ColdFusion"));
+				productSet.addElement(
+					cube.findDimension("ProductDim").findAttribute("Product").findMember("Flex"));
+				
+				om = OLAPMember(cube.findDimension("ProductDim").findAttribute("Product").defaultMember); 
+				om.displayName = "Total";
+				productSet.addElement(om);
+				
+				rowQueryAxis.addSet(productSet);
+				
+				var colQueryAxis:IOLAPQueryAxis = query.getAxis(OLAPQuery.COLUMN_AXIS);         
+				var quarterSet:OLAPSet= new OLAPSet;
+				quarterSet.addElement(
+					cube.findDimension("TimeDim").findAttribute("Quarter").findMember("Q1"));
+				quarterSet.addElement(
+					cube.findDimension("TimeDim").findAttribute("Quarter").findMember("Q2"));
+				
+				om = OLAPMember(cube.findDimension("TimeDim").findAttribute("Quarter").defaultMember); 
+				om.displayName = "Total";
+				quarterSet.addElement(om);
+				
+				colQueryAxis.addSet(quarterSet);
+				
+				return query;       
+			}
+
+			private function runQuery():void {
+				var cube:IOLAPCube = myMXMLCube;
+				var query:IOLAPQuery = getQuery(cube);
+				var token:AsyncToken = cube.execute(query);
+				token.addResponder(new AsyncResponder(showResult, showFault));
+			}
+			
+			private function showFault(error:ErrorMessage, token:Object):void {
+				Alert.show(error.faultString);
+			}
+			
+			private function showResult(result:Object, token:Object):void {
+				if (!result) {
+					Alert.show("No results from query.");
+					return;
+				}
+				testODG.dataProvider= result as OLAPResult;            
+			}        
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<mx:OLAPCube name="FlatSchemaCube" dataProvider="{flatData}" id="myMXMLCube" complete="runQuery()">
+		<mx:OLAPDimension name="CustomerDim">
+			<mx:OLAPAttribute name="Customer" dataField="customer"/>
+			<mx:OLAPHierarchy name="CustomerHier" 
+							  hasAll="true">
+				<mx:OLAPLevel attributeName="Customer"/>
+			</mx:OLAPHierarchy>
+		</mx:OLAPDimension>
+		
+		<mx:OLAPDimension name="ProductDim">
+			<mx:OLAPAttribute name="Product" dataField="product"/>
+			<mx:OLAPHierarchy name="ProductHier" 
+							  hasAll="true">
+				<mx:OLAPLevel attributeName="Product"/>
+			</mx:OLAPHierarchy>
+		</mx:OLAPDimension>
+		
+		<mx:OLAPDimension name="TimeDim">
+			<mx:OLAPAttribute name="Year" dataField="year"/>
+			<mx:OLAPAttribute name="Quarter" dataField="quarter"/>
+			<mx:OLAPAttribute name="Month" dataField="month"/>
+			<mx:OLAPHierarchy name="Time-Period" 
+							  hasAll="true">
+				<mx:OLAPLevel attributeName="Year"/>
+				<mx:OLAPLevel attributeName="Quarter"/>
+				<mx:OLAPLevel attributeName="Month"/>
+			</mx:OLAPHierarchy> 
+		</mx:OLAPDimension>
+		
+		<mx:OLAPDimension name="GeographyDim">  
+			<mx:OLAPAttribute name="Country" dataField="country"/>
+			<mx:OLAPAttribute name="Region" dataField="region"/>
+			<mx:OLAPAttribute name="State" dataField="state"/>
+			<mx:OLAPHierarchy name="Country-Region-State" 
+							  hasAll="true">
+				<mx:OLAPLevel attributeName="Country"/>
+				<mx:OLAPLevel attributeName="Region"/>
+				<mx:OLAPLevel attributeName="State"/>
+			</mx:OLAPHierarchy> 
+		</mx:OLAPDimension>
+		
+		<mx:OLAPMeasure name="Revenue" dataField="revenue" aggregator="SUM"/>
+		<mx:OLAPMeasure name="Cost" dataField="cost" aggregator="SUM"/>
+	</mx:OLAPCube>		
+	</fx:Declarations>	
+
+	<mx:OLAPDataGrid id="testODG"/>
+
+
+
+</mx:VBox>

Added: incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXG2CompileTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXG2CompileTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXG2CompileTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXG2CompileTestScript.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.
+
+-->
+<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="SetupFXG2Test">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="fxg2CompileTest" waitEvent="updateComplete" />
+				<AssertPropertyValue target="fxg2CompileTests" propertyName="width" value="325" />
+				<AssertPropertyValue target="fxg2CompileTests" propertyName="height" value="375" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Propchange: incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXG2CompileTestScript.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXGCompileTestScript.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXGCompileTestScript.mxml?rev=1333232&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXGCompileTestScript.mxml (added)
+++ incubator/flex/trunk/frameworks/tests/basicTests/fxg/scripts/FXGCompileTestScript.mxml Wed May  2 22:44:38 2012
@@ -0,0 +1,52 @@
+<?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="SetupFXGTest">
+			<body>
+				<SetProperty target="" propertyName="currentState" value="fxgCompileTest" 
+                    waitEvent="updateComplete" />
+				<AssertPropertyValue target="fxgCompileTests" propertyName="width" value="189" />
+				<AssertPropertyValue target="fxgCompileTests" propertyName="height" value="143" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>



Mime
View raw message