You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/12/04 20:58:29 UTC
svn commit: r1417139 [3/4] - in
/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid:
./ Assets/ Properties/ Properties/Assets/ Properties/Baselines/ SWFs/
SWFs/Assets/ Styles/ Styles/Baselines/
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,728 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester testDir="components/AdvancedDataGrid/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AdvancedDataGridMain.mxml">
+
+ <!-- this set of lines form a template that must be in each unit test -->
+ <mx:Script>
+ <![CDATA[
+ public static function init(o:DisplayObject):void
+ {
+ }
+ ]]>
+ </mx:Script>
+ <mx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </mx:Metadata>
+ <!-- end of set of lines that must be in each unit test -->
+
+ <mx:Script>
+ <![CDATA[
+ import mx.controls.DateChooser;
+ import mx.controls.AdvancedDataGrid;
+ import mx.containers.Canvas;
+ import mx.styles.StyleManager;
+ import mx.managers.SystemManager;
+ public var mydatagrid:AdvancedDataGrid
+ public var mybox:Canvas;
+ public function genericCleanUp():void
+ {
+ mydatagrid= stringToObject ("mydatagrid") as AdvancedDataGrid;
+ mybox = stringToObject ("box") as Canvas;
+ mybox = new Canvas();
+ mydatagrid = new AdvancedDataGrid();
+
+ application.startIt();
+
+ }
+ public function addItems():void
+ {
+ for(var i:int=0;i<15;i++)
+ {
+ var obj:Object={col1:'one'+i,col2:i,col3:'three'+i}
+ application.mydatagrid.dataProvider.addItem(obj);
+ }
+
+ }
+ public function addBigItems():void
+ {
+ application.mydatagrid.height=250;
+ application.mydatagrid.dataProvider.removeAll()
+ var str1:String=" "
+ var str2:String="two two "
+ var str3:String=" "
+ var dummytext:String ="The Quick Brown Fox Jumped over the lazy dog"
+ for(var i:int=0;i<25;i++)
+ {
+ for(var j:int=0;j<5;j++)
+ {
+ str1+=dummytext;
+ str3+=dummytext;
+ }
+ var obj:Object = {col1:str1,col2:str2+i,col3:str3}
+ application.mydatagrid.dataProvider.addItem(obj);
+ }
+
+ }
+ public function startApp():void
+ {
+ application.startIt();
+ }
+
+ private function getFocusManager():void
+ {
+
+ application.ti.text=application.mydatagrid.focusManager.toString();
+ }
+ private function getFocusPane():void
+ {
+ application.ti.text=application.mydatagrid.focusPane.toString();
+ }
+ ]]>
+ </mx:Script>
+
+ <testCases>
+ <!-- -->
+ <TestCase testID="propert_enabled" keywords="['enabled']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="enabled" value="false" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="enabled" value="false"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_enabled_withdisabledcolor" keywords="['enabled']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetStyle styleName="disabledColor" value="#FFCC00" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <SetProperty propertyName="enabled" value="false" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_enabled2.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_explicitheight_400" keywords="['explicitheight']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="explicitHeight" value="400" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="height" value="400"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_explicitheight_200" keywords="['explicitheight_200']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="explicitHeight" value="200" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="height" value="200"/>
+ </body>
+ </TestCase>
+ <TestCase testID="property_explicitwidth_500" keywords="['explicitheight_500']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="explicitWidth" value="500" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="500"/>
+ </body>
+ </TestCase>
+ <TestCase testID="property_explicitwidth_200" keywords="['explicitwidth_200']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="explicitWidth" value="200" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="200"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_explicitmaxwidth_300" keywords="['explicitmaxwidth_300']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="explicitMaxWidth" value="300" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="300"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_maxwidth_300" keywords="['maxwidth_300']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="maxWidth" value="300" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="300"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_maxheight" keywords="['maxheight_500']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <!--<Pause timeout="5000" /> -->
+ <SetProperty propertyName="maxHeight" value="500" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <!-- <Pause timeout="5000" /> -->
+ <AssertPropertyValue target="mydatagrid" propertyName="maxHeight" value="500"/>
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_width" keywords="['width_700']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="width" value="700" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="700"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_width_700.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_width_200" keywords="['width_200']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="width" value="200" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="200"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_width_200.png"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_width_30" keywords="['width_30']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="width" value="30" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="width" value="30"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_width_30.png"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_height" keywords="['height_120']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="height" value="120" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="height" value="120"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_height_120.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_height_200" keywords="['height_200']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="height" value="200" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="height" value="200"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_height_200.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_height_30" keywords="['height_30']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="height" value="30" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="height" value="30"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_height_30.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_scalex_3" keywords="['scalex_3']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ <SetProperty propertyName="scaleX" value="3" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+
+ <WaitForEffectsToEnd/>
+
+ </setup>
+ <body>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleX" value="3"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_scalex_7" keywords="['scalex_7']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="scaleX" value="7" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleX" value="7"/>
+ <WaitForEffectsToEnd/>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleX" value="7"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_scalex_05" keywords="['scalex_0_5']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="scaleX" value="0.5" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleX" value="0.5"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_scaley_05" keywords="['scaley_0_5']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="scaleY" value="0.5" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleY" value="0.5"/>
+ <WaitForEffectsToEnd/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_scaley_1" keywords="['scaley_1']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="scaleY" value="1" target="mydatagrid"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="scaleY" value="1"/>
+ <WaitForEffectsToEnd/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_visible_true" keywords="['visible_true']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="visible" value="true" target="mydatagrid"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="visible" value="true"/>
+ <WaitForEffectsToEnd/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_visible_false" keywords="['visible_false']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="visible" value="false" target="mydatagrid" waitEvent="updateComplete" waitTarget="mydatagrid" />
+
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="mydatagrid" propertyName="visible" value="false"/>
+
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_visible_false.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_x_50" keywords="['x_50']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="x" value="50" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="x" value="50"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="mydatagrid" url="../Properties/Baselines/datagrid_x_50.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_x_minus10" keywords="['x_minus_10']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="x" value="-10" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="box" url="../Properties/Baselines/datagrid_x_minus10.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_y_50" keywords="['y_50']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="y" value="50" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <AssertPropertyValue target="mydatagrid" propertyName="y" value="50"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="box" url="../Properties/Baselines/datagrid_y_50.png"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_y_minus10" keywords="['y_minus_10']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <WaitForEffectsToEnd/>
+ </setup>
+ <body>
+ <SetProperty propertyName="y" value="-10" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="box" url="../Properties/Baselines/datagrid_y_minus10.png"/>
+ </body>
+ </TestCase>
+
+
+ <TestCase testID="propert_focusEnabled_true" keywords="['focusEnabled_true']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ </setup>
+ <body>
+ <SetProperty propertyName="focusEnabled" value="true" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <DispatchKeyEvent key="TAB"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="box" url="../Properties/Baselines/datagrid_focusenabledtrue.png"/>
+
+ </body>
+ </TestCase>
+ <TestCase testID="propert_focusEnabled_false" keywords="['focusEnabled_false']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ </setup>
+ <body>
+ <SetProperty propertyName="focusEnabled" value="false" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <DispatchKeyEvent key="TAB"/>
+ <WaitForEffectsToEnd/>
+ <WaitForEffectsToEnd />
+ <CompareBitmap timeout="5000" target="box" url="../Properties/Baselines/datagrid_focusenabledfalse.png"/>
+
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_focusManager" keywords="['focusManager']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ </setup>
+ <body>
+ <RunCode code="getFocusManager()"/>
+ <AssertPropertyValue target="ti" propertyName="text" value="AdvancedDataGridMain0.focusManager"/>
+ </body>
+ </TestCase>
+
+
+
+ <TestCase testID="propert_includeInLayout_default" keywords="['includeInLayout_default']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="includeInLayout" value="true"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_includeInLayout_default" keywords="['includeInLayout_true']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="includeInLayout" value="true" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="includeInLayout" value="true"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_includeInLayout_default" keywords="['includeInLayout_true']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="includeInLayout" value="false" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="includeInLayout" value="false"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_measuredHeight" keywords="['measuredHeight']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="measuredHeight" value="142"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_measuredWidth" keywords="['measuredWidth']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="measuredWidth" value="160"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_measuredMinWidth" keywords="['measuredMinWidth']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="measuredMinWidth" value="40"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_measuredMinHeight" keywords="['measuredMinHeight']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="measuredMinHeight" value="42"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_minWidth_default" keywords="['minWidth']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="minWidth" value="40"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_minHeight_default" keywords="['minHeight']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="minHeight" value="42"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_minWidth" keywords="['minWidth']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="minWidth" value="100" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="minWidth" value="100"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_minHeight" keywords="['minHeight']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="minHeight" value="100" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="minHeight" value="100"/>
+ </body>
+ </TestCase>
+ <TestCase testID="propert_owner" keywords="['owner']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="owner" value="AdvancedDataGridMain0.box"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_parent" keywords="['parent']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="minHeight" value="100" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="parent" value="AdvancedDataGridMain0.box"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_parentApplication" keywords="['parentApplication']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="minHeight" value="100" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="parentApplication" value="AdvancedDataGridMain0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_parentDocument" keywords="['parentDocument']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="minHeight" value="100" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="parentDocument" value="AdvancedDataGridMain0"/>
+ </body>
+ </TestCase>
+
+ <TestCase testID="propert_styleDeclaration" keywords="['styleDeclaration']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+
+ </setup>
+ <body>
+
+ <AssertPropertyValue target="mydatagrid" propertyName="styleDeclaration" value="null"/>
+ </body>
+ </TestCase>
+
+ <!--
+ <TestCase testID="propert_focusPane" keywords="['focusEnabled_true']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ </setup>
+ <body>
+ <SetProperty propertyName="focusEnabled" value="true" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <DispatchKeyEvent key="TAB"/>
+ <Pause timeout="100"/>
+ <RunCode code="getFocusPane()"/>
+
+ </body>
+ </TestCase>
+ <TestCase testID="propert_toolTip" keywords="['toolTip']">
+ <setup>
+ <ResetComponent target="mydatagrid" className="mx.controls.AdvancedDataGrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ <RunCode code="startApp()"/>
+ <RunCode code="addItems()"/>
+ <SetProperty propertyName="toolTip" value="tip" target="mydatagrid" waitTarget="mydatagrid" waitEvent="updateComplete"/>
+ </setup>
+ <body>
+ <DispatchMouseEvent target="mydatagrid" type="mouseOver" localX="100" localY="100"/>
+ <WaitForEffectsToEnd/>
+ <CompareBitmap timeout="5000" target="application" url="../Properties/Baselines/datagrid_tooltip.png"/>
+
+ </ body>
+ </TestCase>
+ -->
+ </testCases>
+
+</UnitTester>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/advanceddatagrid_properties_uicomponent.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,379 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester testDir="components/AdvancedDataGrid/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_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 mx.controls.AdvancedDataGrid;
+ import mx.controls.advancedDataGridClasses.*;
+ import mx.collections.*;
+ import mx.styles.StyleManager;
+ import mx.formatters.*;
+ import mx.managers.SystemManager;
+
+public function myStyleFunction1(data:Object,col:AdvancedDataGridColumn):Object {
+ return { color:0xFF0000};
+}
+
+
+public function myStyleFunction2(data:Object,col:AdvancedDataGridColumn):Object {
+ var regExp:RegExp = new RegExp("321456789");
+ var regExp2:RegExp = new RegExp("21344321")
+ if (regExp.test(data["col3"]))
+ return { color:0xFF0000};
+ if (regExp2.test(data["col2"]))
+ return { color:0xFFCC99};
+ return null;
+ }
+public function myStyleFunction3(data:Object,col:AdvancedDataGridColumn):Object {
+ var regExp:RegExp = new RegExp("321456789");
+ var regExp2:RegExp = new RegExp("21344321")
+ if (regExp.test(data["col3"]))
+ return {alpha:0.5, color:0xFFFF00};
+ if (regExp2.test(data["col2"]))
+ return {alpha:0.2, color:0xBBEE99};
+
+ return null;
+
+}
+ public function applymystyle1():void {
+
+ application.myCustomADG.mydatagrid.styleFunction = myStyleFunction1;
+ application.myCustomADG.mydata.refresh();
+
+ }
+public function applymystyle2():void {
+
+application.myCustomADG.mydatagrid.styleFunction = myStyleFunction2;
+application.myCustomADG.mydata.refresh();
+ }
+
+public function applymystyle3():void {
+
+application.myCustomADG.mydatagrid.styleFunction = myStyleFunction3;
+application.myCustomADG.mydata.refresh();
+
+
+}
+
+public function run():void
+{
+ trace("formatter="+application.col1.formatter);
+ trace("MD= " + application.mydatagrid);
+ application.myCustomADG.mydatagrid.invalidateDisplayList();
+}
+
+
+
+//Function for currency formatter
+
+
+public function setcurrencyformatter():void {
+
+ var forms:CurrencyFormatter = new CurrencyFormatter();
+ forms.currencySymbol = "$";
+ application.myCustomADG.col1.formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ }
+
+//Function for col2 Number Formatter
+
+public function setnumberformatter():void {
+
+ var forms:NumberFormatter = new NumberFormatter();
+ forms.rounding = "up";
+ forms.thousandsSeparatorTo = ",";
+ forms.useThousandsSeparator = true;
+ application.myCustomADG.col2.formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ }
+
+
+public function setphoneformatter():void {
+
+ var forms:PhoneFormatter = new PhoneFormatter();
+ forms.areaCode=-1;
+ forms.areaCodeFormat="(###)";
+ forms.formatString="####-####";
+ application.myCustomADG.col2.formatter = forms;
+ application.myCustomADG.mydata.refresh();
+
+ }
+
+public function setdateformatter():void {
+
+ var forms:DateFormatter = new DateFormatter();
+ var today:Date = new Date(2000, 0, 1, 0, 0, 0, 0);
+ forms.formatString = "YYYY.MM.DD at HH:NN:SS ";
+ for (var i:int =0; i <5;i++)
+ {
+ application.myCustomADG.mydata.getItemAt(i)["col1"] = today;
+ }
+ application.myCustomADG.mydatagrid.dataProvider = application.myCustomADG.mydata;
+ application.myCustomADG.col1.formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ }
+
+public function setzipcodeformatter():void {
+
+ var forms:ZipCodeFormatter = new ZipCodeFormatter();
+ forms.formatString = "#####-####";
+ application.myCustomADG.col3.formatter = forms;
+ application.myCustomADG.mydata.refresh();
+
+ }
+
+ private function applytreeview():void
+ {
+ var fs2:Object =
+
+ {fileName:"mxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmx", Summary:"true", children: [
+
+ {fileName: "utils", children: [
+
+ {fileName: "StringUtil.as", Summary:"true", size:"5563 bytes", lastModified:"October 6, 2006", type:"File", attributes:"Read Only"},
+
+ {fileName: "ArrayUtil.as", size:"2509 bytes", lastModified:"June 12, 2006", type:"File", attributes:"Read Only"}]},
+
+ {fileName:"accessibility", size:"1724 bytes", lastModified:"October 6, 2006", Summary:"false", children: [
+
+ {fileName:"DataGridAccImpl.as DataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.asDataGridAccImpl.as", size:"17045 bytes", lastModified:"November 2, 2006", type:"File", attributes:"Read Only"},
+
+ {fileName:"AccImpl.as", Summary:"true", size:"7263 bytes", lastModified:"June 1, 2006", type:"File", attributes:"Read Only"}]},
+
+ {fileName: "controls", children: [
+
+ {fileName: "DataGrid.as", size:"169825 bytes", lastModified:"December 6, 2006", type:"File", attributes:"Read Only"},
+
+ {fileName: "dataGridClasses", children: [
+
+ {fileName: "DataGridItemRenderer.as", size:"18587 bytes", lastModified:"November 20, 2006", type:"File", attributes:"Read Only"},
+
+ {fileName: "DataGridBase.as", size:"36419 bytes", lastModified:"December 6, 2006", type:"File", attributes:"Read Only"}]}]}
+
+
+
+ ]};
+ var hc:HierarchicalData = new HierarchicalData(fs2)
+ application.myCustomADG.mydatagrid.columns[0].dataField = "fileName"
+ application.myCustomADG.mydatagrid.columns[1].dataField = "size"
+ application.myCustomADG.mydatagrid.columns[2].dataField = "lastModified"
+ //Force dataField change
+ application.myCustomADG.mydatagrid.dataProvider.refresh();
+ application.myCustomADG.mydatagrid.dataProvider= hc;
+ var forms:CurrencyFormatter = new CurrencyFormatter();
+ forms.currencySymbol = "$";
+ application.myCustomADG.mydatagrid.columns[1].formatter = forms;
+ application.myCustomADG.mydatagrid.columns[0].formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ application.myCustomADG.mydatagrid.expandAll();
+
+ }
+
+ public function groupit():void {
+ var mygroup:GroupingCollection=new GroupingCollection;
+ //mygroup.groupLabelField = "Venom";
+ mygroup.source = application.myCustomADG.mydata;
+ var group:Grouping = new Grouping();
+ group.fields = [new GroupingField("col2"), new GroupingField("col3")];
+ group.label = "Venom";
+ mygroup.grouping = group;
+ mygroup.refresh();
+
+ application.myCustomADG.mydatagrid.dataProvider = mygroup;
+ application.myCustomADG.mydatagrid.validateNow();
+
+ var forms:CurrencyFormatter = new CurrencyFormatter();
+ forms.currencySymbol = "$";
+ application.myCustomADG.mydatagrid.columns[1].formatter = forms;
+ application.myCustomADG.mydatagrid.columns[0].formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ application.myCustomADG.mydatagrid.expandAll();
+
+ }
+
+ public function setsimplecolumnspan():void {
+ var renders:AdvancedDataGridRendererProvider = new AdvancedDataGridRendererProvider();
+ renders.column = application.myCustomADG.col1;
+ var renderarr:Array = new Array();
+ renders.dataField = "col1";
+ renders.columnSpan = 2;
+ renders.renderer = new ClassFactory(mx.controls.NumericStepper);
+ renderarr.push(renders);
+ application.myCustomADG.mydatagrid.rendererProviders = renderarr;
+ var forms:CurrencyFormatter = new CurrencyFormatter();
+ forms.currencySymbol = "$";
+ application.myCustomADG.mydatagrid.columns[2].formatter = forms;
+ application.myCustomADG.mydatagrid.columns[0].formatter = forms;
+ application.myCustomADG.mydata.refresh();
+ application.myCustomADG.mydatagrid.expandAll();
+
+ }
+
+
+ ]]>
+ </mx:Script>
+
+<testCases>
+<TestCase testID="use_style_function1" keywords="[Style function application]">
+ <setup>
+
+ <RunCode code="applymystyle1()" />
+
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/style1.png" timeout="5000" />
+</body>
+
+ </TestCase>
+ <TestCase testID="use_style_function2" keywords="[Style function application2]">
+ <setup>
+
+ <RunCode code="applymystyle2()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+ <WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/style2.png" timeout="5000" />
+</body>
+
+ </TestCase>
+ <TestCase testID="use_style_function3" keywords="[Style function application3]" >
+ <setup>
+
+ <RunCode code="applymystyle3()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/style3.png" timeout="5000" />
+</body>
+
+ </TestCase>
+
+ <TestCase testID="use_currency_formatter" keywords="[Currency formatter test]" >
+ <setup>
+ <ResetComponent waitTarget="myCustomADG" waitEvent="updateComplete" target="myCustomADG" className="CustomADG" />
+
+ <RunCode code="setcurrencyformatter()" />
+ <Pause timeout="1000"/>
+ </setup>
+ <body>
+ <WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/currency.png" timeout="5000" />
+</body>
+ </TestCase>
+<TestCase testID="use_number_formatter" keywords="[Number formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="setnumberformatter()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/number.png" timeout="5000" />
+</body>
+</TestCase>
+<TestCase testID="use_phone_formatter" keywords="[Phone formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="setphoneformatter()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/phone.png" timeout="5000" />
+</body>
+
+</TestCase>
+<TestCase testID="use_date_formatter" keywords="[Date formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="setdateformatter()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/date.png" timeout="5000" />
+</body>
+
+</TestCase>
+<TestCase testID="use_zipcode_formatter" keywords="[ZipCode formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="setzipcodeformatter()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/zipcode.png" timeout="5000" />
+</body>
+
+</TestCase>
+<!--
+<TestCase testID="use_tree_view" keywords="[Tree view with formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="applytreeview()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/treeview.png" timeout="5000" />
+</body>
+
+</TestCase>
+
+-->
+<TestCase testID="use_grouped_view" keywords="[grouped view with formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="groupit()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/groupview.png" timeout="5000" />
+</body>
+
+</TestCase>
+
+<TestCase testID="use_columnspan" keywords="[ColumnSpan with formatter test]" >
+ <setup>
+ <ResetComponent target="myCustomADG" className="CustomADG" waitEvent="updateComplete" waitTarget="myCustomADG"/>
+ <RunCode code="setsimplecolumnspan()" />
+ <Pause timeout="1000"/>
+
+ </setup>
+<body>
+<WaitForEffectsToEnd />
+ <CompareBitmap target="myCustomADG.mydatagrid" url="../Properties/Baselines/columnspan.png" timeout="5000" />
+</body>
+
+</TestCase>
+
+</testCases>
+</UnitTester>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Properties/formatters.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,25 @@
+<mx:AdvancedDataGrid xmlns:mx="http://www.adobe.com/2006/mxml" height="800" width="900" initialize="this.dataProvider = dataGridData" horizontalLockedSeparatorSkin="{dg_h_s_skin}" lockedRowCount="3" verticalLockedSeparatorSkin="{dg_v_s_skin}" lockedColumnCount="1" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true">
+ <mx:Style source="../../../../Assets/Fonts/MyStyles.css" />
+
+ <mx:Script source="assets/data.as"/>
+ <mx:Script>
+ <![CDATA[
+ [Bindable]
+ [Embed(source="assets/horizontal_Separator_Skin.gif")]
+ private var dg_h_s_skin:Class;
+
+ [Bindable]
+ [Embed(source="assets/vertical_Separator_Skin.gif")]
+ private var dg_v_s_skin:Class;
+ ]]>
+ </mx:Script>
+
+ <mx:columns>
+ <mx:Array>
+ <mx:AdvancedDataGridColumn dataField="EmpName" headerText="Employee Name" width="180"/>
+ <mx:AdvancedDataGridColumn dataField="Department" headerText="Department Name" width="180"/>
+ <mx:AdvancedDataGridColumn dataField="EmpCode" headerText="Employee Code" width="180"/>
+ <mx:AdvancedDataGridColumn dataField="Rating" headerText="Rating" width="180"/>
+ </mx:Array>
+ </mx:columns>
+</mx:AdvancedDataGrid>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/ADG_component.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" height="700" width="850" >
+
+ <mx:Style source="../../../../Assets/Fonts/MyStyles.css" />
+
+ <mx:XMLList id="comps" xmlns="">
+ <companylist>
+ <Company>AalishaanSoft</Company>
+ <Quarter> 1 </Quarter>
+ <India>34 million</India>
+ <Veeranistan>1.5 million</Veeranistan>
+ <Pareestan>5 million</Pareestan>
+ <Licenses>321475987</Licenses>
+ </companylist>
+ <companylist>
+ <Company>MughaleAzamSoft</Company>
+ <Quarter> 1 </Quarter>
+ <India>3.4 million</India>
+ <Veeranistan>2 million</Veeranistan>
+ <Pareestan>5.4 million</Pareestan>
+ <Licenses>321475987</Licenses>
+ </companylist>
+ <companylist>
+ <Company>SheeshMahalSoft</Company>
+ <Quarter> 1 </Quarter>
+ <India>45 million</India>
+ <Veeranistan>15 million</Veeranistan>
+ <Pareestan>5.1 million</Pareestan>
+ <Licenses>321745987</Licenses>
+ </companylist>
+ <companylist>
+ <Company>AjnabeeSoft</Company>
+ <Quarter> 1 </Quarter>
+ <India>14 million</India>
+ <Veeranistan>11 million</Veeranistan>
+ <Pareestan>5.7 million</Pareestan>
+ <Licenses>321479587</Licenses>
+ </companylist>
+ </mx:XMLList>
+
+ <mx:Canvas id="box" width="100%" height="100%">
+ <mx:AdvancedDataGrid id="mydatagrid" />
+ </mx:Canvas>
+ <mx:TextInput id="ti"/>
+</mx:Application>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridColumnGroupMain.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" >
+
+ <mx:Style source="../../../../Assets/Fonts/MyStyles.css" />
+
+ <mx:Style>
+ @namespace s "library://ns.adobe.com/flex/spark";
+ @namespace mx "library://ns.adobe.com/flex/mx";
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myArial;
+ embedAsCFF: true;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myArial;
+ embedAsCFF: true;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myArial;
+ embedAsCFF: true;
+ }
+ </mx:Style>
+
+ <mx:Script>
+ <![CDATA[
+ import mx.collections.*;
+ [Bindable]public var mydata:ArrayCollection;
+ public function startIt():void
+ {
+ mydata= new ArrayCollection([
+ {col1:111, col2:04716723103, col3:433},
+ {col1:546, col2:08056781372, col3:409},
+ {col1:123, col2:08543217703, col3:769},
+ {col1:511, col2:04562341444, col3:209},
+ {col1:444322, col2:09873452144, col3:555} ]);
+ }
+ ]]>
+ </mx:Script>
+
+ <mx:Canvas id="box" width="100%" height="100%">
+ <mx:AdvancedDataGrid id="mydatagrid" dataProvider="{mydata}">
+ <mx:columns>
+ <mx:AdvancedDataGridColumn headerText="Column 1" id="col1" dataField="col1"/>
+ <mx:AdvancedDataGridColumn headerText="Column 2" id="col2" dataField="col2"/>
+ <mx:AdvancedDataGridColumn headerText="Column 3" id="col3" dataField="col3"/>
+ </mx:columns>
+ </mx:AdvancedDataGrid>
+ </mx:Canvas>
+ <mx:TextInput id="ti"/>
+</mx:Application>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/AdvancedDataGridMain.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as Tue Dec 4 19:58:21 2012
@@ -0,0 +1,102 @@
+public var dataGridData:Array = [
+ { EmpName:'E1', Department:'D1', EmpCode:1, Rating:'1' },
+ { EmpName:'E2', Department:'D1', EmpCode:2, Rating:'4' },
+ { EmpName:'E3', Department:'D1', EmpCode:3, Rating:'3' },
+ { EmpName:'E4', Department:'D1', EmpCode:4, Rating:'5' },
+ { EmpName:'E4', Department:'D1', EmpCode:5, Rating:'2' },
+ { EmpName:'E3', Department:'D1', EmpCode:6, Rating:'3' },
+ { EmpName:'E2', Department:'D1', EmpCode:7, Rating:'2' },
+ { EmpName:'E1', Department:'D1', EmpCode:8, Rating:'4' },
+ { EmpName:'E1', Department:'D1', EmpCode:9, Rating:'3' },
+ { EmpName:'E2', Department:'D1', EmpCode:10, Rating:'4' },
+ { EmpName:'E3', Department:'D1', EmpCode:11, Rating:'2' },
+ { EmpName:'E4', Department:'D1', EmpCode:12, Rating:'4' },
+ { EmpName:'E4', Department:'D1', EmpCode:13, Rating:'3' },
+ { EmpName:'E3', Department:'D1', EmpCode:14, Rating:'3' },
+ { EmpName:'E2', Department:'D1', EmpCode:15, Rating:'1' },
+ { EmpName:'E1', Department:'D1', EmpCode:16, Rating:'2' },
+ { EmpName:'E1', Department:'D1', EmpCode:17, Rating:'2' },
+ { EmpName:'E2', Department:'D1', EmpCode:18, Rating:'1' },
+ { EmpName:'E3', Department:'D1', EmpCode:19, Rating:'1' },
+ { EmpName:'E4', Department:'D2', EmpCode:20, Rating:'3' },
+ { EmpName:'E4', Department:'D2', EmpCode:21, Rating:'1' },
+ { EmpName:'E3', Department:'D2', EmpCode:22, Rating:'2' },
+ { EmpName:'E2', Department:'D2', EmpCode:23, Rating:'1' },
+ { EmpName:'E1', Department:'D2', EmpCode:24, Rating:'1' },
+ { EmpName:'E1', Department:'D2', EmpCode:25, Rating:'4' },
+ { EmpName:'E2', Department:'D2', EmpCode:26, Rating:'4' },
+ { EmpName:'E3', Department:'D2', EmpCode:27, Rating:'3' },
+ { EmpName:'E4', Department:'D2', EmpCode:28, Rating:'3' },
+ { EmpName:'E4', Department:'D2', EmpCode:29, Rating:'1' },
+ { EmpName:'E3', Department:'D3', EmpCode:30, Rating:'1' },
+ { EmpName:'E2', Department:'D3', EmpCode:31, Rating:'1' },
+ { EmpName:'E1', Department:'D3', EmpCode:32, Rating:'2' },
+ { EmpName:'E5', Department:'D3', EmpCode:33, Rating:'2' },
+ { EmpName:'E1', Department:'D3', EmpCode:34, Rating:'2' },
+ { EmpName:'E2', Department:'D3', EmpCode:35, Rating:'1' },
+ { EmpName:'E3', Department:'D3', EmpCode:36, Rating:'4' },
+ { EmpName:'E4', Department:'D3', EmpCode:37, Rating:'3' },
+ { EmpName:'E4', Department:'D3', EmpCode:38, Rating:'4' },
+ { EmpName:'E3', Department:'D3', EmpCode:39, Rating:'1' },
+ { EmpName:'E2', Department:'D4', EmpCode:40, Rating:'1' },
+ { EmpName:'E1', Department:'D4', EmpCode:41, Rating:'1' },
+ { EmpName:'E1', Department:'D4', EmpCode:42, Rating:'3' },
+ { EmpName:'E2', Department:'D4', EmpCode:43, Rating:'1' },
+ { EmpName:'E3', Department:'D4', EmpCode:44, Rating:'3' },
+ { EmpName:'E4', Department:'D4', EmpCode:45, Rating:'4' },
+ { EmpName:'E4', Department:'D4', EmpCode:46, Rating:'4' },
+ { EmpName:'E3', Department:'D4', EmpCode:47, Rating:'2' },
+ { EmpName:'E2', Department:'D4', EmpCode:48, Rating:'1' },
+ { EmpName:'E1', Department:'D4', EmpCode:49, Rating:'1' },
+ { EmpName:'E1', Department:'D5', EmpCode:50, Rating:'3' },
+ { EmpName:'E2', Department:'D5', EmpCode:51, Rating:'3' },
+ { EmpName:'E3', Department:'D5', EmpCode:52, Rating:'3' },
+ { EmpName:'E4', Department:'D5', EmpCode:53, Rating:'3' },
+ { EmpName:'E4', Department:'D5', EmpCode:54, Rating:'1' },
+ { EmpName:'E3', Department:'D5', EmpCode:55, Rating:'4' },
+ { EmpName:'E2', Department:'D5', EmpCode:56, Rating:'4' },
+ { EmpName:'E1', Department:'D5', EmpCode:57, Rating:'3' },
+ { EmpName:'E1', Department:'D5', EmpCode:58, Rating:'4' },
+ { EmpName:'E2', Department:'D5', EmpCode:59, Rating:'1' },
+ { EmpName:'E3', Department:'D6', EmpCode:60, Rating:'2' },
+ { EmpName:'E4', Department:'D6', EmpCode:61, Rating:'2' },
+ { EmpName:'E4', Department:'D6', EmpCode:62, Rating:'2' },
+ { EmpName:'E3', Department:'D6', EmpCode:63, Rating:'1' },
+ { EmpName:'E2', Department:'D6', EmpCode:64, Rating:'4' },
+ { EmpName:'E1', Department:'D6', EmpCode:65, Rating:'3' },
+ { EmpName:'E1', Department:'D6', EmpCode:66, Rating:'3' },
+ { EmpName:'E2', Department:'D6', EmpCode:67, Rating:'4' },
+ { EmpName:'E3', Department:'D6', EmpCode:68, Rating:'4' },
+ { EmpName:'E4', Department:'D6', EmpCode:69, Rating:'1' },
+ { EmpName:'E4', Department:'D7', EmpCode:70, Rating:'2' },
+ { EmpName:'E3', Department:'D7', EmpCode:71, Rating:'2' },
+ { EmpName:'E2', Department:'D7', EmpCode:72, Rating:'4' },
+ { EmpName:'E1', Department:'D7', EmpCode:73, Rating:'1' },
+ { EmpName:'E1', Department:'D7', EmpCode:74, Rating:'3' },
+ { EmpName:'E2', Department:'D7', EmpCode:75, Rating:'3' },
+ { EmpName:'E3', Department:'D7', EmpCode:76, Rating:'1' },
+ { EmpName:'E4', Department:'D7', EmpCode:77, Rating:'1' },
+ { EmpName:'E4', Department:'D7', EmpCode:78, Rating:'1' },
+ { EmpName:'E3', Department:'D7', EmpCode:79, Rating:'4' },
+ { EmpName:'E2', Department:'D8', EmpCode:80, Rating:'4' },
+ { EmpName:'E1', Department:'D8', EmpCode:81, Rating:'4' },
+ { EmpName:'E1', Department:'D8', EmpCode:82, Rating:'4' },
+ { EmpName:'E2', Department:'D8', EmpCode:83, Rating:'4' },
+ { EmpName:'E3', Department:'D8', EmpCode:84, Rating:'1' },
+ { EmpName:'E4', Department:'D8', EmpCode:85, Rating:'1' },
+ { EmpName:'E4', Department:'D8', EmpCode:86, Rating:'1' },
+ { EmpName:'E3', Department:'D8', EmpCode:87, Rating:'2' },
+ { EmpName:'E2', Department:'D8', EmpCode:88, Rating:'2' },
+ { EmpName:'E1', Department:'D8', EmpCode:89, Rating:'1' },
+ { EmpName:'E1', Department:'D9', EmpCode:90, Rating:'4' },
+ { EmpName:'E2', Department:'D9', EmpCode:91, Rating:'4' },
+ { EmpName:'E3', Department:'D9', EmpCode:92, Rating:'1' },
+ { EmpName:'E4', Department:'D9', EmpCode:93, Rating:'3' },
+ { EmpName:'E4', Department:'D9', EmpCode:94, Rating:'3' },
+ { EmpName:'E3', Department:'D9', EmpCode:95, Rating:'3' },
+ { EmpName:'E2', Department:'D9', EmpCode:96, Rating:'1' },
+ { EmpName:'E1', Department:'D9', EmpCode:97, Rating:'1' },
+ { EmpName:'E2', Department:'D9', EmpCode:98, Rating:'4' },
+ { EmpName:'E3', Department:'D9', EmpCode:99, Rating:'1' },
+ { EmpName:'E4', Department:'D9', EmpCode:100, Rating:'2' }
+ ]
\ No newline at end of file
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/data.as
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/horizontal_Separator_Skin.gif
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/horizontal_Separator_Skin.gif?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/horizontal_Separator_Skin.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/vertical_Separator_Skin.gif
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/vertical_Separator_Skin.gif?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Assets/vertical_Separator_Skin.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+ <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" >
+ <mx:Script>
+ <![CDATA[
+
+ import mx.collections.*;
+ import mx.formatters.DateFormatter;
+ [Bindable]
+ public var mydata:ArrayCollection = new ArrayCollection([
+ {col1:111, col2:98765432, col3:433764538},
+ {col1:546, col2:34567890, col3:456789002},
+ {col1:123, col2:32145678, col3:456712340},
+ {col1:511, col2:21344321, col3:456782313},
+ {col1:444322, col2:67854367, col3:321456789} ]);
+ ]]>
+ </mx:Script>
+
+ <mx:AdvancedDataGrid id="mydatagrid" dataProvider="{mydata}" resizableColumns="true" editable="true" >
+ <mx:columns>
+ <mx:AdvancedDataGridColumn headerText="Column 1" id="col1" dataField="col1"/>
+ <mx:AdvancedDataGridColumn headerText="Column 2" id="col2" dataField="col2"/>
+ <mx:AdvancedDataGridColumn headerText="Column 3" id="col3" dataField="col3"/>
+ </mx:columns>
+ </mx:AdvancedDataGrid>
+</mx:VBox>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/CustomADG.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" >
+
+ <mx:Style source="../../../../Assets/Fonts/MyStyles.css" />
+
+ <mx:Script>
+ <![CDATA[
+
+ ]]>
+ </mx:Script>
+ <mx:Canvas id="box" width="100%" height="100%">
+ <CustomADG id="myCustomADG"/>
+ </mx:Canvas>
+ <mx:TextInput id="ti"/>
+</mx:Application>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/Formatters_Main.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml?rev=1417139&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml (added)
+++ incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml Tue Dec 4 19:58:21 2012
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
+ <mx:Style source="../../../../Assets/Fonts/MyStyles.css" />
+ <mx:Script>
+ <![CDATA[
+ override public function set data(value:Object):void
+ {
+ str = "Kaashif";
+ super.data = value;
+ }
+
+ [Bindable]
+ private var str:String = "";
+ ]]>
+ </mx:Script>
+ <mx:TextArea id="klabel" text="{str}"/>
+</mx:Canvas>
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/SWFs/myheads.mxml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_alternatingitemcolors.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_alternatingitemcolors.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_alternatingitemcolors.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_all.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_all.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_all.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_lr.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_lr.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_bordersides_lr.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_inset.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_inset.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_inset.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_outset.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_outset.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_borderstyle_outset.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_dropShadowEnabled_true.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_dropShadowEnabled_true.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_dropShadowEnabled_true.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontfamily_arial.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontfamily_arial.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontfamily_arial.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontsize_16.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontsize_16.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontsize_16.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontstyle_italic.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontstyle_italic.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontstyle_italic.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontweight_bold.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontweight_bold.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_fontweight_bold.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_headercolors.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_headercolors.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_headercolors.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingLeft.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingLeft.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingLeft.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingRight.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingRight.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingRight.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingTop.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingTop.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingTop.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingbottom.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingbottom.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_paddingbottom.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdirection_right.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdirection_right.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdirection_right.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdistance_8.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdistance_8.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_shadowdistance_8.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_textdecoration_underline.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_textdecoration_underline.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_textdecoration_underline.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_userollover.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_userollover.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_userollover.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_bottom.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_bottom.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_bottom.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_top.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_top.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalalign_top.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalgridlinestrue.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/components/AdvancedDataGrid/Styles/Baselines/datagrid_verticalgridlinestrue.png?rev=1417139&view=auto
==============================================================================
Binary file - no diff available.