incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370323 [8/12] - in /incubator/flex/trunk/mustella/tests/itemRenderers: ./ Assets/ Halo/ Halo/DataGrid/ Halo/DataGrid/SWFs/ Halo/DataGrid/SWFs/assets/ Halo/DataGrid/SWFs/comps/ Halo/DataGrid/SWFs/view/ Halo/DataGrid/baselines/ Halo/DataGri...
Date Tue, 07 Aug 2012 15:39:45 GMT
Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_customRenderers_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_customRenderers_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_customRenderers_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_customRenderers_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,408 @@
+<?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 testDir="itemRenderers/Spark/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataGrid_customTests_spark.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+		import mx.controls.*;
+	    import mx.core.*;
+		import comps.MyHeader;
+		import comps.SimpleComp2;
+		import comps.LabelCheckComp;
+		import comps.LabelCheckComp2;
+		import data.AlbumDataAS;
+		import data.DaysDataAS;
+		import data.NameDataAS;
+
+        public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:DataGrid): void
+		{
+			var newDP:AlbumDataAS = new AlbumDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData2(dgTarget:DataGrid): void
+		{
+			var newDP:DaysDataAS = new DaysDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData3(dgTarget:DataGrid): void
+		{
+			var newDP:NameDataAS = new NameDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+    <!--custom headerRenderer-->
+        <TestCase testID="CustomHeaderRenderer_VisualCheck" description="DataGrid with a custom headerRenderer set in mxml" keywords="[headerRenderer, DataGrid]">
+			<body>
+			   <!--AssertEvent target="dataGrid_custom.mx_internal:rendererArray.0.0.getChildAt(0)" eventName="complete" eventClass="flash.events::Event" /-->
+			   <!--Pause timeout="200" /-->
+			    <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/custom_headerRenderer.png" target="dataGrid_custom.mx_internal:rendererArray.0.0" />
+			</body>
+		</TestCase>
+	 <!-- Text headerRenderer-->
+	        <TestCase testID="TextHeaderRenderer_VisualCheck" description="DataGrid with a Text headerRenderer set in mxml" keywords="[headerRenderer, Text, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/text_headerRenderer.png" target="dataGrid_text.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+	 <!-- TextInput headerRenderer-->
+	        <TestCase testID="TextInputHeaderRenderer_VisualCheck" description="DataGrid with a TextInput headerRenderer set in mxml" keywords="[headerRenderer, TextInput, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/textinput_headerRenderer.png" target="dataGrid_textinput.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+	 <!-- Label headerRenderer-->
+	    <TestCase testID="LabelHeaderRenderer_VisualCheck" description="DataGrid with a Label headerRenderer set in mxml" keywords="[headerRenderer, Label, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/label_headerRenderer.png" target="dataGrid_label.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+     <!--custom headerRenderer in AS -->
+	         <TestCase testID="CustomHeaderRenderer_AS" description="DataGrid with a custom headerRenderer set in mxml" keywords="[headerRenderer, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <SetProperty target="dataGrid_basic" propertyName="dataProvider" valueExpression="value=application.contacts1"  waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic.columns.0" propertyName="headerRenderer" valueExpression="value=new ClassFactory(MyHeader)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <!--AssertEvent eventName="complete" target="dataGrid_basic.mx_internal:rendererArray.0.0.getChildAt(0)" eventClass="flash.events::Event" /-->
+	 			   <CompareBitmap url="../baselines/custom_headerRendererAS.png" target="dataGrid_basic.mx_internal:rendererArray.0.0" />
+	 			</body>
+		</TestCase>
+     <!-- createEditor test -->
+	         <TestCase testID="method_createEditor" description="Call createEditor in the itemEditBegin function for a DataGridColumn" keywords="[createEditor, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(CheckBox)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="selected"  />
+	 			   <RunCode code="application.dataGrid_basic.addEventListener('itemEditBegin', application.doTest)"   />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="Available" value="false" />
+	 			</body>
+		</TestCase>
+<!-- destroyEditor test -->
+	         <TestCase testID="method_destroyEditor" description="Call destroyEditor in the itemEditEnd function for a DataGridColumn" keywords="[destroyEditor, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData2(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="value"  />
+	 			   <RunCode code="application.dataGrid_basic.addEventListener('itemEditEnd', application.finishEdit)"   />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(2)" localX="3" localY="3" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(2)" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="Tuesday" value="3" />
+	 			</body>
+		</TestCase>
+<!-- editedItemRenderer test -->
+	         <TestCase testID="property_editedItemRendererCustom" description="Property: editedItemRenderer for a custom itemRenderer" keywords="[editedItemRenderer, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(SimpleComp2)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="selectedProp"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="labelFunction" valueExpression="value=application.changeLabel" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(1)" localX="8" localY="8" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(1)" />
+	 			   <AssertPropertyValue target="dataGrid_basic.editedItemRenderer.data" propertyName="Available" value="true" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   </body>
+		</TestCase>
+<!-- editorHeightOffset test -->
+	         <TestCase testID="property_editorHeightOffset_Positive" description="Property: Set editorHeightOffset to a positive number" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="100" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorHeightOffset_Zero" description="Property: Set editorHeightOffset to zero" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="60" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorHeightOffset_Negative" description="Property: Set editorHeightOffset to a negative number" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="40" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorWidthOffset test -->
+	         <TestCase testID="property_editorWidthOffset_Positive" description="Property: Set editorWidthOffset to a positive number" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="140" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorWidthOffset_Zero" description="Property: Set editorWidthOffset to zero" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="100" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorWidthOffset_Negative" description="Property: Set editorWidthOffset to a negative number" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="80" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorXOffset test -->
+	         <TestCase testID="property_editorXOffset_Positive" description="Property: Set editorXOffset to a positive number" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="41" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="239" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Zero" description="Property: Set editorXOffset to zero" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="198" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Negative" description="Property: Set editorXOffset to a negative number" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="-19" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="179" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorYOffset test -->
+	         <TestCase testID="property_editorYOffset_Positive" description="Property: Set editorYOffset to a positive number" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="40" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Zero" description="Property: Set editorYOffset to zero" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="0" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Negative" description="Property: Set editorYOffset to a negative number" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="-20" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+		<TestCase testID="itemEditors_customComponent" description="Property: itemEditor is set to a custom component" keywords="[itemEditor, Custom Component, DataGrid]">
+			 	<setup>
+			 		<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<SetProperty propertyName="width" target="dataGrid_basic.columns.0" value="120" />
+			 	</setup>
+			 	<body>
+			 		<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 		<SetProperty target="dataGrid_basic.columns.0" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp2)"  />
+			 		<SetProperty target="dataGrid_basic.columns.0" propertyName="editorDataField" value="mySelected"  />
+			 		<SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.0" localX="10" localY="10" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			        <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(1)" localX="8" localY="8" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(1)" />
+			 		<DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+			        <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+			        <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="cdata" value="false" />
+				 </body>
+		</TestCase>
+		<TestCase testID="DateField_nullItemRenderer" description="This is a test to cover bug SDK-11277 which uses null DateField itemRenderers"
+		    keywords="[DateField, itemRenderer, scroll, DataGrid]" >
+		         <setup>
+		    		<RunCode code="FlexGlobals.topLevelApplication.ac.setItemAt({col1:'col1-2',col2:'col2-2',col3:'col3-2',col4:new Date(2005, 2, 5),col5:'col5-2',col6:'col6-2'}, 1)" waitEvent="updateComplete" waitTarget="dataGrid_null"/>
+		         </setup>
+		         <body>
+		            <DispatchMouseClickEvent target="dataGrid_null.mx_internal:vScrollBar" localX="4" localY="109" waitEvent="scroll" waitTarget="dataGrid_null" />
+		            <DispatchMouseClickEvent target="dataGrid_null.mx_internal:vScrollBar" localX="4" localY="25" waitEvent="scroll" waitTarget="dataGrid_null" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.1.1.getChildAt(2)" value="" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.2.1.getChildAt(2)" value="03/05/2005" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.4.1.getChildAt(2)" value="" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.3.1.getChildAt(2)" value="" propertyName="text" />
+		         </body>
+		 </TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_events_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_events_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_events_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_events_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,162 @@
+<?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 testDir="itemRenderers/Spark/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataGrid_customTests_spark.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+		import mx.controls.DataGrid;
+		import data.ListDataAS;
+		import mx.controls.CheckBox;
+		import mx.controls.NumericStepper;
+
+        public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:DataGrid): void
+		{
+			var newDP:ListDataAS = new ListDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+
+<!-- itemEditBegin test -->
+	         <TestCase testID="itemEditors_event_itemEditBegin" description="Ensure that itemBeginEdit is triggered for cells with custom itemEditors" keywords="[itemEditBegin, Events, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.2.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditBegin" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertEventPropertyValue propertyName="columnIndex" value="3" />
+	 			   <!--AssertEventPropertyValue propertyName="dataField" value="quantity" /-->
+	 			   <AssertEventPropertyValue propertyName="rowIndex" value="1" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	            </body>
+		</TestCase>
+<!-- itemEditBeginning test -->
+	         <TestCase testID="itemEditors_event_itemEditBeginning" description="Ensure that itemEditBeginning is triggered for cells with custom itemEditors" keywords="[itemEditBeginning, Events, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.2.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditBegin" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertEventPropertyValue propertyName="columnIndex" value="3" />
+	 			   <!--AssertEventPropertyValue propertyName="dataField" value="quantity" /-->
+	 			   <AssertEventPropertyValue propertyName="rowIndex" value="1" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	            </body>
+		</TestCase>
+<!-- itemFocusIn test -->
+		<TestCase testID="itemEditors_event_itemFocusIn" description="Ensure that itemFocusIn is triggered for cells with custom itemEditors" keywords="[itemFocusIn , Events, DataGrid]">
+			 <setup>
+			 	<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	<RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 </setup>
+			 <body>
+			 	<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 	<SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	<SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+			 	<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.2.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			    <AssertEvent eventName="itemFocusIn" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				<AssertEventPropertyValue propertyName="columnIndex" value="3" />
+			 	<!--AssertEventPropertyValue propertyName="dataField" value="quantity" /-->
+			 	<AssertEventPropertyValue propertyName="rowIndex" value="1" />
+			 	<DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+			 </body>
+		</TestCase>
+<!-- itemFocusOut test -->
+		<TestCase testID="itemEditors_event_itemFocusOut" description="Ensure that itemFocusOut is triggered for cells with custom itemEditors" keywords="[itemFocusOut, Events, DataGrid]">
+			<setup>
+			 	<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	<RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			</setup>
+			<body>
+			 	<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 	<SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	<SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+			 	<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.4.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			    <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+			    <AssertEvent eventName="itemFocusOut" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				<AssertEventPropertyValue propertyName="columnIndex" value="3" />
+			 	<!--AssertEventPropertyValue propertyName="dataField" value="quantity" /-->
+			 	<AssertEventPropertyValue propertyName="rowIndex" value="3" />
+			</body>
+		</TestCase>
+<!-- itemEndEdit test -->
+	    <TestCase testID="itemEditors_event_itemEditEnd_mouse" description="Ensure that itemEditEnd is triggered for cells with custom itemEditors" keywords="[itemEditEnd, Events, DataGrid]">
+			 	<setup>
+			 	 	<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	 	<RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	</setup>
+			 	<body>
+			 	 	<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 	 	<SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	 	<SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+			 	 	<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.2.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	    <DispatchKeyEvent char="4" waitEvent="keyUp" waitTarget="dataGrid_basic" />
+			 	    <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+			 		<AssertEventPropertyValue propertyName="columnIndex" value="3" />
+			 	 	<AssertEventPropertyValue propertyName="dataField" value="quantity" />
+			 	 	<AssertEventPropertyValue propertyName="rowIndex" value="1" />
+			 </body>
+	    </TestCase>
+	    <TestCase testID="itemEditors_event_itemEditEnd_TAB" description="Ensure that itemEditEnd is triggered for cells with custom itemEditors when you tab" keywords="[itemEditEnd, Events, DataGrid]">
+			 	<setup>
+			 	 	<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	 	<RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	</setup>
+			 	<body>
+			 	 	<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 	 	<SetProperty target="dataGrid_basic.columns.3" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	 	<SetProperty target="dataGrid_basic.columns.3" propertyName="editorDataField" value="value"  />
+			 	 	<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.3.3" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 	    <DispatchKeyEvent char="2" waitEvent="keyUp" waitTarget="dataGrid_basic" />
+			 	    <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+			 	    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+			 		<AssertEventPropertyValue propertyName="columnIndex" value="3" />
+			 	 	<AssertEventPropertyValue propertyName="dataField" value="quantity" />
+			 	 	<AssertEventPropertyValue propertyName="rowIndex" value="2" />
+			 </body>
+	    </TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemEditor_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemEditor_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemEditor_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemEditor_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,224 @@
+<?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 testDir="itemRenderers/Spark/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataGrid_itemEditorTests_spark.mxml">
+<!-- NOTE: There are some Pauses in this test before a bitmap compare because the highlight of an itemRenderer seems
+  to take some time to show up and there is no event for me to listen for. Without the Pause, the tests fail intermitently.-->
+    <mx:Script>
+	<![CDATA[
+
+		import data.ListDataAS;
+        import mx.controls.DataGrid;
+
+        private static var dateValue:Date = new Date(2007,4,24);
+		public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:DataGrid): void
+		{
+			var newDP:ListDataAS = new ListDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+        <!--CheckBox renderer -->
+        <TestCase testID="CheckBoxItemEditor_Basic" description="Edit data in a DataGrid with a CheckBox itemEditor" keywords="[CheckBox, itemEditor]">
+			<setup>
+			    <RunCode code="createData(application.checkDataGrid2);" waitTarget="checkDataGrid2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="checkDataGrid2" localX="170" localY="50" waitEvent="itemFocusIn" waitTarget="checkDataGrid2" />
+	            <!--Pause timeout="200" /-->
+	            <!--DispatchKeyEvent key="SPACE" waitEvent="keyUp" waitTarget="checkDataGrid2" /-->
+	            <DispatchMouseClickEvent target="checkDataGrid2.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="checkDataGrid2.itemEditorInstance" />
+	            <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemEditEnd" waitTarget="checkDataGrid2" />
+			    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="checkDataGrid2"/>
+			    <AssertPropertyValue target="checkDataGrid2.dataProvider.0" propertyName="available" value="true" />
+			</body>
+		</TestCase>
+        <TestCase testID="CheckBoxItemEditor_Scrolling" description="Edit data in a DataGrid with a CheckBox editor and then scroll" keywords="[Scrolling, CheckBox, itemEditors]">
+			<setup>
+			    <ResetComponent target="checkDataGrid2" className="comps.EditorDataGridCheckBox" waitEvent="updateComplete" waitTarget="checkDataGrid2" />
+			    <RunCode code="createData(application.checkDataGrid2);" waitTarget="checkDataGrid2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="checkDataGrid2" localX="150" localY="50" waitEvent="itemFocusIn" waitTarget="checkDataGrid2" />
+	            <DispatchMouseClickEvent target="checkDataGrid2.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="checkDataGrid2.itemEditorInstance" />
+	            <DispatchMouseClickEvent target="checkDataGrid2.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="updateComplete" waitTarget="checkDataGrid2" />
+                <DispatchMouseClickEvent target="checkDataGrid2.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="checkDataGrid2" />
+                <AssertPropertyValue target="checkDataGrid2.dataProvider.0" propertyName="available" value="true" />
+			</body>
+		</TestCase>
+		 <TestCase testID="CheckBoxItemEditor_VisualCheck" description="Visual Check of a CheckBox CellItemEditor" keywords="[CheckBox, itemEditors]">
+			<setup>
+			   <ResetComponent target="checkDataGrid2" className="comps.EditorDataGridCheckBox"  waitTarget="checkDataGrid2" />
+			   <RunCode code="createData(application.checkDataGrid2);" waitTarget="checkDataGrid2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			   <DispatchMouseClickEvent target="checkDataGrid2" localX="150" localY="60" waitEvent="itemFocusIn" waitTarget="checkDataGrid2" />
+			   <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/checkBoxItemEditor.png" target="checkDataGrid2.mx_internal:rendererArray.2.1" />
+			</body>
+		</TestCase>
+        <!--NumericStepper renderer-->
+        <TestCase testID="NumericStepperItemEditor_Basic" description="Edit data in a DataGrid with a NumericStepper Editor" keywords="[NumericStepper, itemEditors]">
+            <setup>
+                <RunCode code="createData(application.nsDataGrid2);" waitTarget="nsDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsDataGrid2" />
+                <DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemEditEnd" waitTarget="nsDataGrid2" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="nsDataGrid2"/>
+                <AssertPropertyValue target="nsDataGrid2.dataProvider.0" propertyName="quantity" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="NumericStepperItemEditor_Scrolling" description="Edit data in a DataGrid with a NumericStepper editor and then scroll" keywords="[Scrolling, NumericStepper, itemEditors]">
+            <setup>
+                <ResetComponent target="nsDataGrid2" className="comps.EditorDataGridNumericStepper" waitEvent="updateComplete" waitTarget="nsDataGrid2" />
+                <RunCode code="createData(application.nsDataGrid2);" waitTarget="nsDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsDataGrid2" />
+                <DispatchKeyEvent keys="[UP, UP, UP]" />
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="updateComplete" waitTarget="nsDataGrid2" />
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="nsDataGrid2" />
+                <AssertPropertyValue target="nsDataGrid2.dataProvider.0" propertyName="quantity" value="3" />
+            </body>
+        </TestCase>
+         <TestCase testID="NumericStepperItemEditor_VisualCheck" description="Visual Check of a NumericStepper CellItemEditor" keywords="[NumericStepper, itemEditors]">
+            <setup>
+               <ResetComponent target="nsDataGrid2" className="comps.EditorDataGridNumericStepper"  waitTarget="nsDataGrid2" />
+               <RunCode code="createData(application.nsDataGrid2);" waitTarget="nsDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsDataGrid2" />
+                <!--Pause timeout="200" /-->
+                <WaitForEffectsToEnd />
+               <CompareBitmap url="../baselines/numStepperItemEditor.png" target="nsDataGrid2.mx_internal:rendererArray.1.1" />
+            </body>
+        </TestCase>
+        <TestCase testID="AIRNumericStepperItemEditor_VisualCheck" description="Visual Check of a NumericStepper CellItemEditor" keywords="[NumericStepper, itemEditors]">
+            <setup>
+               <ResetComponent target="nsDataGrid2" className="comps.EditorDataGridNumericStepper"  waitTarget="nsDataGrid2" />
+               <RunCode code="createData(application.nsDataGrid2);" waitTarget="nsDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsDataGrid2" />
+                <!--Pause timeout="200" /-->
+                <WaitForEffectsToEnd />
+               <CompareBitmap url="../baselines/AIRnumStepperItemEditor.png" target="nsDataGrid2.mx_internal:rendererArray.1.1" />
+            </body>
+        </TestCase>
+        <!--DateField renderer-->
+        <TestCase testID="DateFieldItemEditor_Basic" description="Edit data in a DataGrid with a DateField renderer" keywords="[DateField, itemEditors]">
+            <setup>
+                <RunCode code="createData(application.dateDataGrid2);" waitTarget="dateDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="dateDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4"  waitEvent="updateComplete" waitTarget="dateDataGrid2"/>
+                <DispatchMouseClickEvent target="dateDataGrid2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="dateDataGrid2.itemEditorInstance" />
+                <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]"  waitEvent="itemFocusIn" waitTarget="dateDataGrid2"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemFocusIn" waitTarget="dateDataGrid2" />
+               	<AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dateDataGrid2"/>
+                <AssertPropertyValue target="dateDataGrid2.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+            </body>
+        </TestCase>
+        <TestCase testID="DateFieldItemEditor_Scrolling" description="Edit data in a DataGrid with a DateField renderer and then scroll" keywords="[Scrolling, DateField, itemEditors]">
+            <setup>
+                <ResetComponent target="dateDataGrid2" className="comps.EditorDataGridDateField" waitEvent="updateComplete" waitTarget="dateDataGrid2" />
+                <RunCode code="createData(application.dateDataGrid2);" waitTarget="dateDataGrid2"  waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="dateDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="dateDataGrid2"/>
+                <DispatchMouseClickEvent target="dateDataGrid2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="dateDataGrid2.itemEditorInstance" />
+                <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]" waitEvent="itemFocusIn" waitTarget="dateDataGrid2"/>
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="dateDataGrid2" />
+                <DispatchMouseClickEvent target="dateDataGrid2.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateDataGrid2" />
+                <DispatchMouseClickEvent target="dateDataGrid2.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateDataGrid2" />
+                <AssertPropertyValue target="dateDataGrid2.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+            </body>
+        </TestCase>
+         <TestCase testID="DateFieldItemEditor_VisualCheck" description="Visual Check of a DateField CellItemEditor" keywords="[DateField, itemEditors]">
+            <setup>
+               <ResetComponent target="dateDataGrid2" className="comps.EditorDataGridDateField"  waitTarget="dateDataGrid2" />
+               <RunCode code="createData(application.dateDataGrid2);" waitTarget="dateDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <DispatchMouseClickEvent target="dateDataGrid2.mx_internal:rendererArray.3.1" localX="4" localY="4" waitEvent="itemEditBegin" waitTarget="dateDataGrid2" />
+               <!--Pause timeout="200" /-->
+               <WaitForEffectsToEnd />
+               <CompareBitmap url="../baselines/dateFieldItemEditor.png" target="dateDataGrid2.mx_internal:rendererArray.3.1" />
+            </body>
+        </TestCase>
+        <!--ComboBox renderer-->
+        <TestCase testID="ComboBoxItemEditor_Basic" description="Edit data in a DataGrid with a ComboBox renderer" keywords="[ComboBox, itemEditors]">
+            <setup>
+                <RunCode code="createData(application.comboDataGrid2);" waitTarget="comboDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="comboDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboDataGrid2" />
+                <DispatchMouseClickEvent target="comboDataGrid2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="comboDataGrid2.itemEditorInstance" />
+                <DispatchMouseClickEvent target="comboDataGrid2.itemEditorInstance.dropdown" localX="10" localY="52" waitEvent="close" waitTarget="comboDataGrid2.itemEditorInstance" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemEditEnd" waitTarget="comboDataGrid2" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="comboDataGrid2"/>
+                <AssertPropertyValue target="comboDataGrid2.dataProvider.0" propertyName="color" value="Blue" />
+            </body>
+        </TestCase>
+        <TestCase testID="ComboBoxItemEditor_Scrolling" description="Edit data in a DataGrid with a ComboBox renderer and then scroll" keywords="[Scrolling, ComboBox, itemEditors]">
+            <setup>
+                <ResetComponent target="comboDataGrid2" className="comps.EditorDataGridComboBox" waitEvent="updateComplete" waitTarget="comboDataGrid2" />
+                <RunCode code="createData(application.comboDataGrid2);" waitTarget="comboDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="comboDataGrid2.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboDataGrid2" />
+                <DispatchMouseClickEvent target="comboDataGrid2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="comboDataGrid2.itemEditorInstance" />
+                <DispatchMouseClickEvent target="comboDataGrid2.itemEditorInstance.dropdown" localX="10" localY="25" waitEvent="close" waitTarget="comboDataGrid2.itemEditorInstance" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="comboDataGrid2" />
+                <DispatchMouseClickEvent target="comboDataGrid2.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboDataGrid2" />
+                <DispatchMouseClickEvent target="comboDataGrid2.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboDataGrid2" />
+                <AssertPropertyValue target="comboDataGrid2.dataProvider.0" propertyName="color" value="Green" />
+            </body>
+        </TestCase>
+         <TestCase testID="ComboBoxItemEditor_VisualCheck" description="Visual Check of a ComboBox CellItemEditor" keywords="[ComboBox, itemEditors]">
+            <setup>
+               <ResetComponent target="comboDataGrid2" className="comps.EditorDataGridComboBox"  waitTarget="comboDataGrid2" />
+               <RunCode code="createData(application.comboDataGrid2);" waitTarget="comboDataGrid2" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <DispatchMouseClickEvent target="comboDataGrid2.mx_internal:rendererArray.2.1" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboDataGrid2" />
+               <!--Pause timeout="200" /-->
+               <WaitForEffectsToEnd />
+               <CompareBitmap url="../baselines/comboBoxItemEditor.png" target="comboDataGrid2.mx_internal:rendererArray.2.1" />
+            </body>
+        </TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemRenderer_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemRenderer_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemRenderer_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/DataGrid_itemRenderer_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,260 @@
+<?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 testDir="itemRenderers/Spark/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataGrid_itemRendererTests_spark.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+        import data.ListDataAS;
+        import mx.controls.DataGrid;
+
+        private static var dateValue:Date = new Date(2007,4,24);
+        public static function init(o:DisplayObject):void
+        {
+
+        }
+
+        private function createData(dgTarget:DataGrid): void
+        {
+            var newDP:ListDataAS = new ListDataAS();
+            dgTarget.dataProvider = newDP.myData;
+        }
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+    <!--CheckBox renderer-->
+        <TestCase testID="CheckBoxRenderer_Basic" description="Edit data in a DataGrid with a CheckBox renderer" keywords="[CheckBox, itemRenderers]">
+            <setup>
+                <RunCode code="createData(application.checkDataGrid);" waitTarget="checkDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="checkDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="checkDataGrid" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="checkDataGrid" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="checkDataGrid"/>
+                <AssertPropertyValue target="checkDataGrid.dataProvider.0" propertyName="available" value="true" />
+            </body>
+        </TestCase>
+        <TestCase testID="CheckBoxRenderer_Scrolling" description="Edit data in a DataGrid with a CheckBox renderer and then scroll" keywords="[Scrolling, CheckBox, itemRenderers]">
+            <setup>
+                <ResetComponent target="checkDataGrid" className="comps.DataGridCheckBox" waitEvent="updateComplete" waitTarget="checkDataGrid" />
+                <RunCode code="createData(application.checkDataGrid);" waitTarget="checkDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="checkDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="checkDataGrid" />
+                <!--DispatchMouseEvent target="checkDataGrid.mx_internal:vScrollBar.getChildAt(3)" type="mouseOver" localX="5" localY="8" />
+                <DispatchMouseEvent target="checkDataGrid.mx_internal:vScrollBar.getChildAt(3)" type="mouseDown" localX="5" localY="8" />
+                <DispatchMouseEvent target="checkDataGrid.mx_internal:vScrollBar.getChildAt(3)" type="mouseUp" localX="5" localY="8" waitEvent="scroll" waitTarget="checkDataGrid" /-->
+                <DispatchMouseClickEvent target="checkDataGrid.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="updateComplete" waitTarget="checkDataGrid" />
+                <DispatchMouseClickEvent target="checkDataGrid.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="checkDataGrid" />
+                <AssertPropertyValue target="checkDataGrid.dataProvider.0" propertyName="available" value="true" />
+            </body>
+        </TestCase>
+         <TestCase testID="CheckBoxRenderer_VisualCheck" description="Visual Check of a CheckBox CellRenderer" keywords="[CheckBox, itemRenderers]">
+            <setup>
+               <ResetComponent target="checkDataGrid" className="comps.DataGridCheckBox"  waitTarget="checkDataGrid" />
+               <RunCode code="createData(application.checkDataGrid);" waitTarget="checkDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/checkBoxRenderer.png" target="checkDataGrid.mx_internal:rendererArray.4.1" />
+            </body>
+        </TestCase>
+<!--Button renderer-->
+        <TestCase testID="ButtonRenderer_Basic" description="Edit data in a DataGrid with a Button renderer" keywords="[Button, itemRenderers]">
+            <setup>
+                <RunCode code="createData(application.buttonDataGrid);" waitTarget="buttonDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="buttonDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="buttonDataGrid" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="buttonDataGrid" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="buttonDataGrid"/>
+                <AssertPropertyValue target="buttonDataGrid.dataProvider.0" propertyName="available" value="true" />
+            </body>
+        </TestCase>
+        <TestCase testID="ButtonRenderer_Scrolling" description="Edit data in a DataGrid with a Button renderer and then scroll" keywords="[Scrolling, Button, itemRenderers]">
+            <setup>
+                <ResetComponent target="buttonDataGrid" className="comps.DataGridButton" waitEvent="updateComplete" waitTarget="buttonDataGrid" />
+                <RunCode code="createData(application.buttonDataGrid);" waitTarget="buttonDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="buttonDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="buttonDataGrid" />
+                <DispatchMouseClickEvent target="buttonDataGrid.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="updateComplete" waitTarget="buttonDataGrid" />
+                <DispatchMouseClickEvent target="buttonDataGrid.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="buttonDataGrid" />
+                <AssertPropertyValue target="buttonDataGrid.dataProvider.0" propertyName="available" value="true" />
+            </body>
+        </TestCase>
+         <TestCase testID="ButtonRenderer_VisualCheck" description="Visual Check of a Button CellRenderer" keywords="[Button, itemRenderers]">
+            <setup>
+               <ResetComponent target="buttonDataGrid" className="comps.DataGridButton"  waitTarget="buttonDataGrid" />
+               <RunCode code="createData(application.buttonDataGrid);" waitTarget="buttonDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/buttonRenderer.png" target="buttonDataGrid.mx_internal:rendererArray.4.1" />
+            </body>
+        </TestCase>
+<!--NumericStepper renderer-->
+        <TestCase testID="NumericStepperRenderer_Basic" description="Edit data in a DataGrid with a NumericStepper renderer" keywords="[NumericStepper, itemRenderers]">
+            <setup>
+                <RunCode code="createData(application.nsDataGrid);" waitTarget="nsDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="nsDataGrid" />
+                <DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="nsDataGrid" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="nsDataGrid"/>
+                <AssertPropertyValue target="nsDataGrid.dataProvider.0" propertyName="quantity" value="2" />
+            </body>
+        </TestCase>
+        <TestCase testID="NumericStepperRenderer_Scrolling" description="Edit data in a DataGrid with a NumericStepper renderer and then scroll" keywords="[Scrolling, NumericStepper, itemRenderers]">
+            <setup>
+                <ResetComponent target="nsDataGrid" className="comps.DataGridNumericStepper" waitEvent="updateComplete" waitTarget="nsDataGrid" />
+                <RunCode code="createData(application.nsDataGrid);" waitTarget="nsDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="nsDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="nsDataGrid" />
+                <DispatchKeyEvent keys="[UP, UP]" />
+                <DispatchMouseClickEvent target="nsDataGrid.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="updateComplete" waitTarget="nsDataGrid" />
+                <DispatchMouseClickEvent target="nsDataGrid.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="nsDataGrid" />
+                <AssertPropertyValue target="nsDataGrid.dataProvider.0" propertyName="quantity" value="2" />
+            </body>
+        </TestCase>
+         <TestCase testID="NumericStepperRenderer_VisualCheck" description="Visual Check of a NumericStepper CellRenderer" keywords="[NumericStepper, itemRenderers]">
+            <setup>
+               <ResetComponent target="nsDataGrid" className="comps.DataGridNumericStepper"  waitTarget="nsDataGrid" />
+               <RunCode code="createData(application.nsDataGrid);" waitTarget="nsDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/numStepperRenderer.png" target="nsDataGrid.mx_internal:rendererArray.2.1" />
+            </body>
+        </TestCase>
+<!--Label renderer-->
+         <TestCase testID="LabelRenderer_VisualCheck" description="Visual Check of a Label CellRenderer" keywords="[Label, itemRenderers]">
+            <setup>
+               <ResetComponent target="labelDataGrid" className="comps.DataGridLabel"  waitTarget="labelDataGrid" />
+               <RunCode code="createData(application.labelDataGrid);" waitTarget="labelDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/labelRenderer.png" target="labelDataGrid.mx_internal:rendererArray.2.0" />
+            </body>
+        </TestCase>
+<!--Text renderer-->
+         <TestCase testID="TextRenderer_VisualCheck" description="Visual Check of a Text CellRenderer" keywords="[Text, itemRenderers]">
+            <setup>
+               <ResetComponent target="textDataGrid" className="comps.DataGridText"  waitTarget="textDataGrid" />
+               <RunCode code="createData(application.textDataGrid);" waitTarget="textDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/textRenderer.png" target="textDataGrid.mx_internal:rendererArray.2.0" />
+            </body>
+        </TestCase>
+<!--ComboBox renderer-->
+        <TestCase testID="ComboBoxRenderer_Basic" description="Edit data in a DataGrid with a ComboBox renderer" keywords="[ComboBox, itemRenderers]">
+            <setup>
+                <RunCode code="createData(application.comboDataGrid);" waitTarget="comboDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="comboDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="comboDataGrid" />
+                <DispatchKeyEvent keys="[DOWN, ENTER]" waitEvent="itemFocusIn" waitTarget="comboDataGrid"/>
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="comboDataGrid" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="comboDataGrid"/>
+                <AssertPropertyValue target="comboDataGrid.dataProvider.0" propertyName="color" value="Green" />
+            </body>
+        </TestCase>
+        <TestCase testID="ComboBoxRenderer_Scrolling" description="Edit data in a DataGrid with a ComboBox renderer and then scroll" keywords="[Scrolling, ComboBox, itemRenderers]">
+            <setup>
+                <ResetComponent target="comboDataGrid" className="comps.DataGridComboBox" waitEvent="updateComplete" waitTarget="comboDataGrid" />
+                <RunCode code="createData(application.comboDataGrid);" waitTarget="comboDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="comboDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="comboDataGrid" />
+                <DispatchKeyEvent keys="[DOWN, ENTER]" waitEvent="itemFocusIn" waitTarget="comboDataGrid"/>
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="comboDataGrid" />
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent target="comboDataGrid.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboDataGrid" />
+                <DispatchMouseClickEvent target="comboDataGrid.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboDataGrid" />
+                <AssertPropertyValue target="comboDataGrid.dataProvider.0" propertyName="color" value="Green" />
+            </body>
+        </TestCase>
+         <TestCase testID="ComboBoxRenderer_VisualCheck" description="Visual Check of a ComboBox CellRenderer" keywords="[ComboBox, itemRenderers]">
+            <setup>
+               <ResetComponent target="comboDataGrid" className="comps.DataGridComboBox"  waitTarget="comboDataGrid" />
+               <RunCode code="createData(application.comboDataGrid);" waitTarget="comboDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/comboBoxRenderer.png" target="comboDataGrid.mx_internal:rendererArray.2.1" />
+            </body>
+        </TestCase>
+<!--DateField renderer-->
+        <TestCase testID="DateFieldRenderer_Basic" description="Edit data in a DataGrid with a DateField renderer" keywords="[DateField, itemRenderers]">
+            <setup>
+                <RunCode code="createData(application.dateDataGrid);" waitTarget="dateDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="dateDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="dateDataGrid" />
+                <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]" waitEvent="itemFocusIn" waitTarget="dateDataGrid"/>
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="dateDataGrid" />
+                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dateDataGrid"/>
+                <AssertPropertyValue target="dateDataGrid.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+            </body>
+        </TestCase>
+        <TestCase testID="DateFieldRenderer_Scrolling" description="Edit data in a DataGrid with a DateField renderer and then scroll" keywords="[Scrolling, DateField, itemRenderers]">
+            <setup>
+                <ResetComponent target="dateDataGrid" className="comps.DataGridDateField" waitEvent="updateComplete" waitTarget="dateDataGrid" />
+                <RunCode code="createData(application.dateDataGrid);" waitTarget="dateDataGrid"  waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="dateDataGrid.mx_internal:rendererArray.1.1" localX="4" localY="4" waitEvent="updateComplete" waitTarget="dateDataGrid" />
+                <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]" waitEvent="itemFocusIn" waitTarget="dateDataGrid" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="dateDataGrid" />
+                <DispatchMouseClickEvent target="dateDataGrid.mx_internal:vScrollBar.getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateDataGrid" />
+                <DispatchMouseClickEvent target="dateDataGrid.mx_internal:vScrollBar.getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateDataGrid" />
+                <AssertPropertyValue target="dateDataGrid.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+            </body>
+        </TestCase>
+         <TestCase testID="DateFieldRenderer_VisualCheck" description="Visual Check of a DateField CellRenderer" keywords="[DateField, itemRenderers]">
+            <setup>
+               <ResetComponent target="dateDataGrid" className="comps.DataGridDateField"  waitTarget="dateDataGrid" />
+               <RunCode code="createData(application.dateDataGrid);" waitTarget="dateDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+               <CompareBitmap url="../baselines/dateFieldRenderer.png" target="dateDataGrid.mx_internal:rendererArray.2.1" />
+            </body>
+        </TestCase>
+    <!-- Image renderer -->
+        <TestCase testID="ImageRenderer_VisualCheck" description="Visual Check of a Image CellRenderer" keywords="[Image, itemRenderers]">
+            <setup>
+                <ResetComponent target="imageDataGrid" className="comps.DataGridImage"  waitTarget="imageDataGrid" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <RunCode code="createData(application.imageDataGrid);" waitTarget="imageDataGrid" waitEvent="updateComplete" />
+        <Pause timeout="10" />
+                <!--AssertEvent target="imageDataGrid.mx_internal:rendererArray.3.0" eventName="complete" eventClass="flash.events::Event" timeout="25000"/-->
+                <CompareBitmap url="../baselines/imageRenderer.png" target="imageDataGrid.mx_internal:rendererArray.3.0" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/ItemRenderer_BugTests2_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/ItemRenderer_BugTests2_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/ItemRenderer_BugTests2_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/DataGrid/test_scripts/ItemRenderer_BugTests2_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,112 @@
+<?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 testDir="itemRenderers/Spark/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ItemRenderers_Bugs2_spark.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+        import data.ListDataAS;
+        import mx.controls.List;
+        import mx.controls.DataGrid;
+
+        public static function init(o:DisplayObject):void
+        {
+
+        }
+
+        private function createData(dgTarget:List): void
+        {
+            var newDP:ListDataAS = new ListDataAS();
+            dgTarget.dataProvider = newDP.myData;
+        }
+
+        private function createDataDG(dgTarget:DataGrid): void
+        {
+            var newDP:ListDataAS = new ListDataAS();
+            dgTarget.dataProvider = newDP.myData;
+        }
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+
+    </mx:Metadata>
+
+    <testCases>
+    <!-- bug #127773, This pause is a part of the test scenario-->
+        <TestCase testID="itemRenderers_bug155740" description="Bug #155740" keywords="[Bugs, 155740, itemRenderers]">
+            <body>
+                <DispatchMouseEvent type="mouseDown" target="tileList155740.getChildAt(3).getChildAt(2)" localX="5" localY="14"
+                    waitEvent="mouseDown" waitTarget="tileList155740"  />
+                <DispatchMouseEvent type="mouseMove" target="tileList155740.getChildAt(3).getChildAt(2)"
+                    localX="5" localY="204" />
+                <!--Pause timeout="500" /-->
+                <WaitForEffectsToEnd />
+                <DispatchMouseEvent type="mouseMove" target="tileList155740"
+                    localX="205" localY="0" />
+                <DispatchMouseEvent type="mouseUp" target="tileList155740.getChildAt(3).getChildAt(2)"
+                    localX="5" localY="204" />
+                <AssertPropertyValue target="tileList155740.dataProvider.0" propertyName="software_nickname" value="ProductC" />
+            </body>
+        </TestCase>
+    <!-- bug #177700, This pause is a part of the test scenario-->
+        <TestCase testID="itemRenderers_bug177700" description="Bug #177700" keywords="[Bugs, 177700, itemRenderers]">
+            <body>
+                <DispatchMouseClickEvent target="datagrid177700.mx_internal:rendererArray.1.1" localX="5" localY="4"
+                    waitEvent="click" waitTarget="datagrid177700.mx_internal:rendererArray.1.1"  />
+                <RunCode code="application.changeSource()" waitEvent="updateComplete" waitTarget="datagrid177700" />
+                <AssertPropertyValue target="datagrid177700.dataProvider.0" propertyName="Character" value="true" />
+            </body>
+        </TestCase>
+        <TestCase testID="itemRenderers_SDK9519" description="SDK-9519 reported a bug where your data doesn't change in an itemRenderer when the text was selected with a release of the mouse outside the TextInput renderer."
+            keywords="[itemRenderers, Bugs, itemEditors]" >
+            <body>
+                <DispatchMouseEvent type="mouseDown" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="65" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="55" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="50" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="42" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="30" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="12" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519.mx_internal:rendererArray.1.2.getTextField()" localX="0" localY="9" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519" localX="194" localY="35" />
+                <DispatchMouseEvent type="mouseMove" target="datagrid9519" localX="185" localY="35" />
+                <DispatchMouseEvent type="mouseUp" target="datagrid9519" localX="185" localY="35" />
+                <DispatchKeyEvent char="hello" waitTarget="datagrid9519.mx_internal:rendererArray.1.2" waitEvent="change" />
+                <DispatchMouseClickEvent target="datagrid9519.mx_internal:vScrollBar.getChildAt(3)" localX="3" localY="5" waitEvent="scroll"
+                    waitTarget="datagrid9519" />
+                <DispatchMouseClickEvent target="datagrid9519.mx_internal:vScrollBar.getChildAt(0)" localX="3" localY="5" waitEvent="scroll"
+                    waitTarget="datagrid9519" />
+                <AssertPropertyValue propertyName="text" target="datagrid9519.mx_internal:rendererArray.1.2" value="hello" />
+           </body>
+        </TestCase>
+        <TestCase testID="itemRenderers_SDK13453" description="Mousing over an icon in a custom headerRenderer should work." keywords="[headerRenderer, DataGrid, icon]">
+           <body>
+               <DispatchMouseClickEvent target="dgSpecialHeader.mx_internal:rendererArray.0.0" localX="65" localY="20" waitEvent="updateComplete"
+                   waitTarget="dgSpecialHeader" />
+               <DispatchMouseEvent type="mouseOver" target="dgSpecialHeader.mx_internal:rendererArray.0.0" localX="65" localY="20" />
+               <CompareBitmap target="dgSpecialHeader.mx_internal:rendererArray.0.0" url="../baselines/headerRenderer_icon.png" timeout="2500" />
+           </body>
+        </TestCase>
+    </testCases>
+</UnitTester>



Mime
View raw message