flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370323 [10/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/DataGr...
Date Tue, 07 Aug 2012 15:39:45 GMT
Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" height="120" width="200" backgroundColor="0xDDDDDD">
+ <fx:Script>
+   public var checkBoxValue:Boolean;
+   private function changeData(): void
+   {
+      data.cdata = confirmed.selected;
+   }
+</fx:Script>
+<fx:Binding source="confirmed.selected" destination="checkBoxValue" />
+<mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" click="changeData()" selected="{data.cdata}" />
+ </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp2.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/LabelCheckComp2.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<mx:HBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" height="120" width="200" backgroundColor="0xFFFFFF">
+ <fx:Script>
+   public var mySelected:Boolean;
+
+</fx:Script>
+<fx:Binding source="confirmed.selected" destination="mySelected" />
+
+
+<mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" selected="{data.cdata}" />
+ </mx:HBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListButton.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListButton.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListButton.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListButton.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    editable="true" width="300" height="150"
+    labelField="available"
+	rendererIsEditor="true" editorDataField="selected" >
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.Button;
+  ]]>
+</fx:Script>
+
+<mx:itemRenderer>
+	<fx:Component>
+		<mx:Button toggle="true" />
+	</fx:Component>
+</mx:itemRenderer>
+
+</mx:List>
+

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListCheckBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListCheckBox.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListCheckBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListCheckBox.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    editable="true" width="300" height="150"
+    itemRenderer="mx.controls.CheckBox" labelField="available"
+	rendererIsEditor="true" editorDataField="selected">
+    <fx:Script>
+         import mx.controls.CheckBox;
+    </fx:Script>
+
+</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListComboBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListComboBox.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListComboBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListComboBox.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+     editable="true"  width="300" height="150" labelField="color"
+    rendererIsEditor="true" editorDataField="selectedItem" >
+
+<fx:Script>
+  <![CDATA[
+      import mx.controls.ComboBox;
+
+  ]]>
+</fx:Script>
+
+<mx:itemRenderer>
+	<fx:Component>
+		<mx:ComboBox>
+			<mx:dataProvider>
+			    <fx:String>Red</fx:String>
+			    <fx:String>Green</fx:String>
+			    <fx:String>Blue</fx:String>
+			    <fx:String>Black</fx:String>
+			    <fx:String>White</fx:String>
+			    <fx:String>Fuscia</fx:String>
+			    <fx:String>Rose</fx:String>
+			    <fx:String>Periwinkle</fx:String>
+			    <fx:String>Yellow</fx:String>
+			</mx:dataProvider>
+		</mx:ComboBox>
+	</fx:Component>
+</mx:itemRenderer>
+
+</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListDateField.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListDateField.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListDateField.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListDateField.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    editable="true" width="300" height="150"
+    itemRenderer="mx.controls.DateField" labelField="shipDate"
+	rendererIsEditor="true" editorDataField="selectedDate" >
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.DateField;
+  ]]>
+</fx:Script>
+
+</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListImage.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListImage.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListImage.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListImage.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    editable="false" width="300" height="150" rowHeight="32" labelField="url">
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.Image;
+
+  ]]>
+</fx:Script>
+
+<mx:itemRenderer>
+	<fx:Component>
+		<mx:Image source="{data.url}" />
+	</fx:Component>
+</mx:itemRenderer>
+
+</mx:List>
+

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListLabel.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListLabel.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListLabel.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListLabel.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+editable="true" width="300" height="150" >
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.Label;
+
+  ]]>
+</fx:Script>
+
+<mx:itemRenderer>
+	<fx:Component>
+		<mx:Label color="0xFF0000" />
+	</fx:Component>
+</mx:itemRenderer>
+
+</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListNumericStepper.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListNumericStepper.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListNumericStepper.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListNumericStepper.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+editable="true" width="300" height="150" itemRenderer="mx.controls.NumericStepper"
+labelField="quantity" rendererIsEditor="true" editorDataField="value">
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.NumericStepper;
+
+  ]]>
+</fx:Script>
+
+</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListText.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListText.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListText.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/ListText.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:List xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+editable="true" width="300" height="150" >
+
+<fx:Script>
+  <![CDATA[
+       import mx.controls.Text;
+
+  ]]>
+</fx:Script>
+
+<mx:itemRenderer>
+	<fx:Component>
+		<mx:Text color="0x0000FF" fontWeight="bold" />
+	</fx:Component>
+</mx:itemRenderer>
+
+	</mx:List>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MoreInfoComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MoreInfoComp.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MoreInfoComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MoreInfoComp.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<!-- RendererStateMoreInfo.mxml -->
+
+        <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" backgroundColor="white"  verticalScrollPolicy="off" horizontalScrollPolicy="off">
+
+		<fx:Script>
+			<![CDATA[
+
+				// Import Event and URLRequest classes.
+				import flash.events.Event;
+				import flash.net.URLRequest;
+
+				private var u:URLRequest;
+
+				// Event handler to open URL.
+				private function handleClick(eventObj:Event): void {
+					u = new URLRequest(data.webPage);
+					navigateToURL(u);
+				}
+			]]>
+		</fx:Script>
+
+		<mx:HBox >
+			<mx:Label id="State" text="State: {data.label}"/>
+			<mx:Label id="StateCapitol" text="Capitol: {data.data}" />
+		</mx:HBox>
+
+		<mx:LinkButton id="webPage" label="Official {data.label} Web page"
+			click="handleClick(event);" color="blue"  />
+
+                <mx:LinkButton label="More Information" color="blue" fontSize="8"
+					click="data.expanded = true;mInfo.visible=true;mInfo.height=50" />
+		<mx:Text id="mInfo" text="{data.moreInfo}" visible="{data.expanded}" height="{data.expanded ? 50 : 0}" width="200" />
+	</mx:VBox>
+

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyComboBox.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyComboBox.as?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyComboBox.as (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyComboBox.as Tue Aug  7 15:39:33 2012
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package {
+
+import mx.controls.*;
+import mx.core.*;
+
+	public class MyComboBox extends ComboBox
+	{
+	   public function MyComboBox()
+	   {
+		  dataProvider = ['Yes', 'No', 'Maybe'];
+	   }
+	}
+}

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyHeader.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyHeader.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyHeader.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/MyHeader.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:HBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" height="48" >
+
+    <mx:Image source="assets/orb.jpg"/>
+    <mx:Label id="updatedText" text="hello" color="0xFF0000" />
+
+</mx:HBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/SimpleComp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/SimpleComp2.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/SimpleComp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/SWFs/comps/SimpleComp2.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" height="180" width="200" backgroundColor="0xFFFFFF" horizontalAlign="center" >
+<fx:Script>
+  public var selectedProp:Boolean;
+</fx:Script>
+<fx:Binding source="confirmed.selected" destination="selectedProp" />
+   <mx:Label id="title" text="{data.Artist}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" selected="{data.Available}" />
+ </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/AIRnumStepperItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/AIRnumStepperItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/AIRnumStepperItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/buttonRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/buttonRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/buttonRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/checkBoxRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/comboBoxRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/dateFieldRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/imageRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/imageRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/imageRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/itemRenderer_Bug160800.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/itemRenderer_Bug160800.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/itemRenderer_Bug160800.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer_201.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer_201.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/labelRenderer_201.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer_201.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer_201.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/numStepperRenderer_201.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/textRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/textRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/baselines/textRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_customRenderers_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_customRenderers_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_customRenderers_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_customRenderers_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="itemRenderers/Spark/List/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="List_customTests_spark.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+		import mx.controls.List;
+		import comps.SimpleComp2;
+		import comps.LabelCheckComp;
+		import comps.LabelCheckComp2;
+		import data.AlbumDataAS;
+		import data.DaysDataAS;
+		import data.NameDataAS;
+		import mx.controls.CheckBox;
+		import mx.controls.NumericStepper;
+
+        public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:List): void
+		{
+			var newDP:AlbumDataAS = new AlbumDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData2(dgTarget:List): void
+		{
+			var newDP:DaysDataAS = new DaysDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData3(dgTarget:List): void
+		{
+			var newDP:NameDataAS = new NameDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+     <!-- createEditor test -->
+	         <TestCase testID="method_createEditor" description="Call createEditor in the itemEditBegin function for a ListColumn" keywords="[createEditor, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="Available" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(CheckBox)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="selected"  />
+	 			   <RunCode code="application.list_basic.addEventListener('itemEditBegin', application.doTest)"   />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <DispatchMouseClickEvent target="list_basic.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="list_basic.itemEditorInstance" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				   <AssertPropertyValue target="list_basic.dataProvider.1" propertyName="Available" value="true" />
+	 			</body>
+		</TestCase>
+<!-- destroyEditor test -->
+	         <TestCase testID="method_destroyEditor" description="Call destroyEditor in the itemEditEnd function for a ListColumn" keywords="[destroyEditor, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData2(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="Monday" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+	 			   <RunCode code="application.list_basic.addEventListener('itemEditEnd', application.finishEdit)"   />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <DispatchMouseClickEvent target="list_basic.itemEditorInstance.getChildAt(2)" localX="4" localY="4" waitEvent="click" waitTarget="list_basic.itemEditorInstance.getChildAt(2)" />
+	 			   <DispatchMouseClickEvent target="" localX="305" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				   <AssertPropertyValue target="list_basic.dataProvider.0" propertyName="Monday" value="9" />
+	 			</body>
+		</TestCase>
+<!-- editedItemRenderer test -->
+	         <TestCase testID="property_editedItemRendererCustom" description="Property: editedItemRenderer for a custom itemRenderer" keywords="[editedItemRenderer, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="Available" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(SimpleComp2)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="selectedProp"  />
+	 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <DispatchMouseClickEvent target="list_basic.itemEditorInstance.getChildAt(1)" localX="8" localY="8" waitEvent="click" waitTarget="list_basic.itemEditorInstance.getChildAt(1)" />
+	 			   <AssertPropertyValue target="list_basic.editedItemRenderer.data" propertyName="Available" value="true" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				   </body>
+		</TestCase>
+		<!-- editorHeightOffset test -->
+			         <TestCase testID="property_editorHeightOffset_Positive" description="Property: Set editorHeightOffset to a positive number" keywords="[editorHeightOffset, List]">
+			 			<setup>
+			 			    <DispatchMouseClickEvent target="" localX="5" localY="5" />
+	                        <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+			 			</setup>
+			 			<body>
+			 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+			 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+			 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+			 			   <SetProperty target="list_basic" propertyName="editorHeightOffset" value="40" />
+			 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			           <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="height" value="100" />
+			 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+						</body>
+				</TestCase>
+		        <TestCase testID="property_editorHeightOffset_Zero" description="Property: Set editorHeightOffset to zero" keywords="[editorHeightOffset, List]">
+			 			<setup>
+			 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+			 			</setup>
+			 			<body>
+			 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+			 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+			 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+			 			   <SetProperty target="list_basic" propertyName="editorHeightOffset" value="0" />
+			 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			           <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="height" value="60" />
+			 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+						</body>
+				</TestCase>
+		        <TestCase testID="property_editorHeightOffset_Negative" description="Property: Set editorHeightOffset to a negative number" keywords="[editorHeightOffset, List]">
+			 			<setup>
+			 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+			 			</setup>
+			 			<body>
+			 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+			 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+			 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			           <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+			 			   <SetProperty target="list_basic" propertyName="editorHeightOffset" value="-20" />
+			 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+			 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="height" value="40" />
+			 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+<!-- editorWidthOffset test -->
+        <TestCase testID="property_editorWidthOffset_Zero" description="Property: Set editorWidthOffset to zero" keywords="[editorWidthOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorWidthOffset" value="0" />
+	 			   <SetProperty target="list_basic" propertyName="width" value="100" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="width" value="96" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorWidthOffset_Negative" description="Property: Set editorWidthOffset to a negative number" keywords="[editorWidthOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorWidthOffset" value="-20" />
+	 			   <SetProperty target="list_basic" propertyName="width" value="100" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="width" value="76" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+<!-- editorXOffset test -->
+	         <TestCase testID="property_editorXOffset_Positive" description="Property: Set editorXOffset to a positive number" keywords="[editorXOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorXOffset" value="41" />
+	 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="x" value="43" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Zero" description="Property: Set editorXOffset to zero" keywords="[editorXOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorXOffset" value="0" />
+	 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="x" value="2" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Negative" description="Property: Set editorXOffset to a negative number" keywords="[editorXOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorXOffset" value="-19" />
+	 			   <SetProperty target="list_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <WaitForEffectsToEnd />
+	 			   <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="x" value="-17" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+<!-- editorYOffset test -->
+	         <TestCase testID="property_editorYOffset_Positive" description="Property: Set editorYOffset to a positive number" keywords="[editorYOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorYOffset" value="40" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="y" value="100" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Zero" description="Property: Set editorYOffset to zero" keywords="[editorYOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorYOffset" value="0" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="y" value="60" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Negative" description="Property: Set editorYOffset to a negative number" keywords="[editorYOffset, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData3(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <SetProperty target="list_basic" propertyName="labelField" value="name" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="list_basic" propertyName="editorYOffset" value="-20" />
+	 			   <SetProperty target="list_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertPropertyValue target="list_basic.itemEditorInstance" propertyName="y" value="40" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="variableRowHeight_and_scrolling" description="This testcase came about from bug SDK-11080. It tests that you can continue to scroll to the bottom
+           when row heights have changed." keywords="[variableRowHeight, List]">
+	 			<body>
+	 			   <DispatchMouseClickEvent target="list_11080.mx_internal:rendererArray.0.0.getChildAt(2)" localX="5" localY="5" waitEvent="change" waitTarget="list_11080"/>
+	 			   <DispatchMouseClickEvent target="list_11080.getChildAt(3).getChildAt(3)" localX="5" localY="5" waitEvent="scroll" waitTarget="list_11080"/>
+				   <DispatchMouseClickEvent target="list_11080" localX="68" localY="67" waitEvent="click" waitTarget="list_11080"/>
+				   <DispatchMouseClickEvent target="list_11080.getChildAt(3).getChildAt(3)" localX="5" localY="5" waitEvent="scroll" waitTarget="list_11080"/>
+				   <AssertPropertyValue propertyName="verticalScrollPosition" value="2" target="list_11080" />
+				</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_events_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_events_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_events_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_events_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="itemRenderers/Spark/List/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="List_customTests_spark.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+		import mx.controls.List;
+		import data.ListDataAS;
+		import mx.controls.CheckBox;
+		import mx.controls.NumericStepper;
+
+        public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:List): 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, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.2.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditBegin" eventClass="mx.events::ListEvent" target="list_basic" />
+				   <AssertEventPropertyValue propertyName="rowIndex" value="2" />
+	 			   <DispatchMouseClickEvent target="" localX="305" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	            </body>
+		</TestCase>
+<!-- itemEditBeginning test -->
+	         <TestCase testID="itemEditors_event_itemEditBeginning" description="Ensure that itemEditBeginning is triggered for cells with custom itemEditors" keywords="[itemEditBeginning, Events, List]">
+	 			<setup>
+	 			    <ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			    <RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="list_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+	 			   <DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.2.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+	               <AssertEvent eventName="itemEditBegin" eventClass="mx.events::ListEvent" target="list_basic" />
+				   <AssertEventPropertyValue propertyName="rowIndex" value="2" />
+	 			   <DispatchMouseClickEvent target="" localX="305" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	            </body>
+		</TestCase>
+<!-- itemFocusIn test -->
+		<TestCase testID="itemEditors_event_itemFocusIn" description="Ensure that itemFocusIn is triggered for cells with custom itemEditors" keywords="[itemFocusIn , Events, List]">
+			 <setup>
+			 	<ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	<RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 </setup>
+			 <body>
+			 	<SetProperty target="list_basic" propertyName="editable" value="true" />
+			 	<SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	<SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+			 	<DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.2.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			    <AssertEvent eventName="itemFocusIn" eventClass="mx.events::ListEvent" target="list_basic" />
+				<AssertEventPropertyValue propertyName="rowIndex" value="2" />
+			 	<DispatchMouseClickEvent target="" localX="305" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			 </body>
+		</TestCase>
+<!-- itemFocusOut test -->
+		<TestCase testID="itemEditors_event_itemFocusOut" description="Ensure that itemFocusOut is triggered for cells with custom itemEditors" keywords="[itemFocusOut, Events, List]">
+			<setup>
+			 	<ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	<RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			</setup>
+			<body>
+			 	<SetProperty target="list_basic" propertyName="editable" value="true" />
+			 	<SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	<SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+			 	<DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.4.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			    <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			    <AssertEvent eventName="itemFocusOut" eventClass="mx.events::ListEvent" target="list_basic" />
+				<AssertEventPropertyValue propertyName="rowIndex" value="4" />
+			</body>
+		</TestCase>
+<!-- itemEndEdit test -->
+	    <TestCase testID="itemEditors_event_itemEditEnd_mouse" description="Ensure that itemEditEnd is triggered for cells with custom itemEditors" keywords="[itemEditEnd, Events, List]">
+			 	<setup>
+			 	 	<ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	 	<RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	 	<SetProperty target="list_basic" propertyName="labelField" value="quantity" />
+			 	</setup>
+			 	<body>
+			 	 	<SetProperty target="list_basic" propertyName="editable" value="true" />
+			 	 	<SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	 	<SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+			 	 	<DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.2.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	    <DispatchKeyEvent char="4" waitEvent="keyUp" waitTarget="list_basic" />
+			 	    <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="list_basic" />
+	                <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+			 		<AssertEventPropertyValue propertyName="rowIndex" value="2" />
+			 </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, List]">
+			 	<setup>
+			 	 	<ResetComponent target="list_basic" className="mx.controls.List" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	 	<RunCode code="createData(application.list_basic)" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	 	<SetProperty target="list_basic" propertyName="labelField" value="quantity" />
+			 	</setup>
+			 	<body>
+			 	 	<SetProperty target="list_basic" propertyName="editable" value="true" />
+			 	 	<SetProperty target="list_basic" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+			 	 	<SetProperty target="list_basic" propertyName="editorDataField" value="value"  />
+			 	 	<DispatchMouseClickEvent target="list_basic.mx_internal:rendererArray.3.0" localX="5" localY="5" waitEvent="updateComplete" waitTarget="list_basic" />
+			 	    <DispatchKeyEvent char="2" waitEvent="keyUp" waitTarget="list_basic" />
+			 	    <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="list_basic" />
+			 	    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="list_basic" />
+			 		<AssertEventPropertyValue propertyName="rowIndex" value="3" />
+			 </body>
+	    </TestCase-->
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_itemEditor_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_itemEditor_spark.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_itemEditor_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Spark/List/test_scripts/List_itemEditor_spark.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,217 @@
+<?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/List/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="List_itemEditorTests_spark.mxml">
+    <mx:Script>
+	<![CDATA[
+
+		import data.ListDataAS;
+        import mx.controls.List;
+
+        private static var dateValue:Date = new Date(2007,4,24);
+		public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:List): 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 List with a CheckBox itemEditor" keywords="[List, CheckBox, itemEditor]">
+			<setup>
+			    <RunCode code="createData(application.checkList2);" waitTarget="checkList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="checkList2.mx_internal:rendererArray.0.0" localX="10" localY="5" waitEvent="itemClick" waitTarget="checkList2" />
+	            <DispatchMouseClickEvent target="checkList2.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="checkList2.itemEditorInstance" />
+	            <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="checkList2" />
+			    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="checkList2"/>
+			    <AssertPropertyValue target="checkList2.dataProvider.0" propertyName="available" value="true" />
+			</body>
+		</TestCase>
+        <TestCase testID="CheckBoxItemEditor_Scrolling" description="Edit data in a List with a CheckBox editor and then scroll" keywords="[Scrolling, CheckBox, itemEditors]">
+			<setup>
+			    <ResetComponent target="checkList2" className="comps.EditorListCheckBox" waitEvent="updateComplete" waitTarget="checkList2" />
+			    <RunCode code="createData(application.checkList2);" waitTarget="checkList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="checkList2.mx_internal:rendererArray.0.0" localX="10" localY="5" waitEvent="itemFocusIn" waitTarget="checkList2" />
+	            <DispatchMouseClickEvent target="checkList2.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="checkList2.itemEditorInstance" />
+	            <DispatchMouseClickEvent target="checkList2.getChildAt(3).getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="checkList2" />
+                <DispatchMouseClickEvent target="checkList2.getChildAt(3).getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="checkList2" />
+                <AssertPropertyValue target="checkList2.dataProvider.0" propertyName="available" value="true" />
+			</body>
+		</TestCase>
+		 <TestCase testID="CheckBoxItemEditor_VisualCheck" description="Visual Check of a CheckBox CellItemEditor" keywords="[List, CheckBox, itemEditors]">
+			<setup>
+			   <ResetComponent target="checkList2" className="comps.EditorListCheckBox"  waitTarget="checkList2" />
+			   <RunCode code="createData(application.checkList2);" waitTarget="checkList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			   <DispatchMouseClickEvent target="checkList2.mx_internal:rendererArray.0.0" localX="10" localY="5" waitEvent="itemFocusIn" waitTarget="checkList2" />
+			   <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/checkBoxItemEditor.png" target="checkList2.mx_internal:rendererArray.0.0" />
+			</body>
+		</TestCase>
+<!--NumericStepper renderer-->
+        <TestCase testID="NumericStepperItemEditor_Basic" description="Edit data in a List with a NumericStepper Editor" keywords="[List, NumericStepper, itemEditors]">
+			<setup>
+			    <RunCode code="createData(application.nsList2);" waitTarget="nsList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="nsList2.mx_internal:rendererArray.1.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsList2" />
+	            <DispatchKeyEvent keys="[UP, UP]" />
+			    <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemEditEnd" waitTarget="nsList2" />
+			    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="nsList2"/>
+			    <AssertPropertyValue target="nsList2.dataProvider.1" propertyName="quantity" value="2" />
+			</body>
+		</TestCase>
+        <TestCase testID="NumericStepperItemEditor_Scrolling" description="Edit data in a List with a NumericStepper editor and then scroll" keywords="[Scrolling, NumericStepper, itemEditors]">
+			<setup>
+			    <ResetComponent target="nsList2" className="comps.EditorListNumericStepper" waitEvent="updateComplete" waitTarget="nsList2" />
+			    <RunCode code="createData(application.nsList2);" waitTarget="nsList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="nsList2.mx_internal:rendererArray.1.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsList2" />
+	            <DispatchKeyEvent keys="[UP, UP, UP]" />
+			    <DispatchMouseClickEvent target="nsList2.getChildAt(3).getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="nsList2" />
+                <DispatchMouseClickEvent target="nsList2.getChildAt(3).getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="nsList2" />
+                <AssertPropertyValue target="nsList2.dataProvider.1" propertyName="quantity" value="3" />
+			</body>
+		</TestCase>
+		 <TestCase testID="NumericStepperItemEditor_VisualCheck" description="Visual Check of a NumericStepper CellItemEditor" keywords="[List, NumericStepper, itemEditors]">
+			<setup>
+			   <ResetComponent target="nsList2" className="comps.EditorListNumericStepper"  waitTarget="nsList2" />
+			   <RunCode code="createData(application.nsList2);" waitTarget="nsList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="nsList2.mx_internal:rendererArray.1.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsList2" />
+	            <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/numStepperItemEditor.png" target="nsList2.mx_internal:rendererArray.1.0" />
+			</body>
+		</TestCase>
+		<TestCase testID="AIRNumericStepperItemEditor_VisualCheck" description="Visual Check of a NumericStepper CellItemEditor" keywords="[List, NumericStepper, itemEditors]">
+			<setup>
+			   <ResetComponent target="nsList2" className="comps.EditorListNumericStepper"  waitTarget="nsList2" />
+			   <RunCode code="createData(application.nsList2);" waitTarget="nsList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="nsList2.mx_internal:rendererArray.1.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="nsList2" />
+	            <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/AIRnumStepperItemEditor.png" target="nsList2.mx_internal:rendererArray.1.0" />
+			</body>
+		</TestCase>
+
+<!--DateField renderer-->
+        <TestCase testID="DateFieldItemEditor_Basic" description="Edit data in a List with a DateField renderer" keywords="[List, DateField, itemEditors]">
+			<setup>
+			    <RunCode code="createData(application.dateList2);" waitTarget="dateList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="dateList2.mx_internal:rendererArray.0.0" localX="4" localY="4"  waitEvent="updateComplete" waitTarget="dateList2"/>
+	            <DispatchMouseClickEvent target="dateList2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="dateList2.itemEditorInstance" />
+	            <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]" waitEvent="itemFocusIn" waitTarget="dateList2"/>
+	            <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemFocusIn" waitTarget="dateList2" />
+	            <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="dateList2"/>
+	            <AssertPropertyValue target="dateList2.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+			</body>
+		</TestCase>
+        <TestCase testID="DateFieldItemEditor_Scrolling" description="Edit data in a List with a DateField renderer and then scroll" keywords="[Scrolling, DateField, itemEditors]">
+			<setup>
+			    <ResetComponent target="dateList2" className="comps.EditorListDateField" waitEvent="updateComplete" waitTarget="dateList2" />
+			    <RunCode code="createData(application.dateList2);" waitTarget="dateList2"  waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="dateList2.mx_internal:rendererArray.0.0" localX="4" localY="4" waitEvent="updateComplete" waitTarget="dateList2"/>
+	            <DispatchMouseClickEvent target="dateList2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="dateList2.itemEditorInstance" />
+	            <DispatchKeyEvent keys="[RIGHT, RIGHT, RIGHT, RIGHT, ENTER]" waitEvent="itemFocusIn" waitTarget="dateList2" />
+	            <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="dateList2" />
+			    <DispatchMouseClickEvent target="dateList2.getChildAt(3).getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateList2" />
+                <DispatchMouseClickEvent target="dateList2.getChildAt(3).getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="dateList2" />
+                <AssertPropertyValue target="dateList2.dataProvider.0" propertyName="shipDate" valueExpression="value=dateValue" />
+			</body>
+		</TestCase>
+		 <TestCase testID="DateFieldItemEditor_VisualCheck" description="Visual Check of a DateField CellItemEditor" keywords="[List, DateField, itemEditors]">
+			<setup>
+			   <ResetComponent target="dateList2" className="comps.EditorListDateField"  waitTarget="dateList2" />
+			   <RunCode code="createData(application.dateList2);" waitTarget="dateList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			   <DispatchMouseClickEvent target="dateList2.mx_internal:rendererArray.3.0" localX="4" localY="4" waitEvent="itemEditBegin" waitTarget="dateList2" />
+	           <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/dateFieldItemEditor.png" target="dateList2.mx_internal:rendererArray.3.0" />
+			</body>
+		</TestCase>
+
+<!--ComboBox renderer-->
+        <TestCase testID="ComboBoxItemEditor_Basic" description="Edit data in a List with a ComboBox renderer" keywords="[ComboBox, itemEditors]">
+			<setup>
+			    <RunCode code="createData(application.comboList2);" waitTarget="comboList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="comboList2.mx_internal:rendererArray.0.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboList2" />
+	            <DispatchMouseClickEvent target="comboList2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="comboList2.itemEditorInstance" />
+			    <DispatchMouseClickEvent target="comboList2.itemEditorInstance.dropdown" localX="72" localY="54" waitEvent="close" waitTarget="comboList2.itemEditorInstance" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="itemEditEnd" waitTarget="comboList2" />
+			    <AssertEvent eventName="itemEditEnd" eventClass="mx.events::ListEvent" target="comboList2"/>
+			    <AssertPropertyValue target="comboList2.dataProvider.0" propertyName="color" value="Blue" />
+			</body>
+		</TestCase>
+        <TestCase testID="ComboBoxItemEditor_Scrolling" description="Edit data in a List with a ComboBox renderer and then scroll" keywords="[Scrolling, ComboBox, itemEditors]">
+			<setup>
+			    <ResetComponent target="comboList2" className="comps.EditorListComboBox" waitEvent="updateComplete" waitTarget="comboList2" />
+			    <RunCode code="createData(application.comboList2);" waitTarget="comboList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="comboList2.mx_internal:rendererArray.0.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboList2" />
+	            <DispatchMouseClickEvent target="comboList2.itemEditorInstance.getChildAt(1)" localX="4" localY="4" waitEvent="open" waitTarget="comboList2.itemEditorInstance" />
+			    <DispatchMouseClickEvent target="comboList2.itemEditorInstance.dropdown" localX="70" localY="25" waitEvent="close" waitTarget="comboList2.itemEditorInstance" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="comboList2" />
+			    <DispatchMouseClickEvent target="comboList2.getChildAt(3).getChildAt(3)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboList2" />
+                <DispatchMouseClickEvent target="comboList2.getChildAt(3).getChildAt(0)" localX="4" localY="4" waitEvent="scroll" waitTarget="comboList2" />
+                <AssertPropertyValue target="comboList2.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="comboList2" className="comps.EditorListComboBox"  waitTarget="comboList2" />
+			   <RunCode code="createData(application.comboList2);" waitTarget="comboList2" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			   <DispatchMouseClickEvent target="comboList2.mx_internal:rendererArray.2.0" localX="4" localY="4" waitEvent="itemFocusIn" waitTarget="comboList2" />
+			   <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/comboBoxItemEditor.png" target="comboList2.mx_internal:rendererArray.2.0" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>



Mime
View raw message