flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [2/34] - in /incubator/flex/trunk/mustella/tests/apollo: ./ DragManager/ DragManager/SWFs/ DragManager/SWFs/assets/ DragManager/SWFs/comps/ DragManager/Spark/ DragManager/Spark/baselines/ FileComboBox/ FileComboBox/SWFs/ FileComboB...
Date Mon, 06 Aug 2012 20:51:43 GMT

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/DragManager_Custom_sparkAIR.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/DragManager_Custom_sparkAIR.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/DragManager_Custom_sparkAIR.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/DragManager_Custom_sparkAIR.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:WindowedApplication  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800" height="700"
+    xmlns:comps="comps.*" useNativeDragManager="false">
+<s:layout>
+    <s:VerticalLayout />
+</s:layout>
+<fx:Script>
+<![CDATA[
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.events.DragEvent;
+    import flash.events.MouseEvent;
+    import comps.MXMLcomp;
+
+    public var xOff:*;
+    public var yOff:*;
+
+    public function dragMe(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+        var di:Image = new Image();
+        di.source = "../../../../Assets/Images/unknown.jpg";
+        di.width=78;
+        di.height=78;
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe2(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+
+        var di:MXMLcomp = new MXMLcomp();
+        mx.managers.DragManager.doDrag(MXMLcomp(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe3(event:MouseEvent, img1:String, format:String): void
+    {
+        var ds:DragSource = new DragSource();
+        ds.addData(img1, format);
+        var di:Image = new Image();
+        di.source = "../../../../Assets/Images/unknown.jpg";
+        di.width=78;
+        di.height=78;
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di, 100, 100);
+    }
+
+    public function dragMe4(event:MouseEvent, img1:String, format:String) : void
+    {
+        var ds:DragSource = new DragSource();
+        ds.addData(img1, format);
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event);
+    }
+
+    public function doDragEnter(event:DragEvent) : void
+    {
+
+        mx.managers.DragManager.acceptDragDrop(Canvas(event.target));
+    }
+
+    public function doDragDrop(event:DragEvent,target1:*, format:*) : void
+    {
+
+        event.dragInitiator.x = target1.mouseX - xOff;
+        event.dragInitiator.y = target1.mouseY - yOff;
+
+    }
+
+    public function myoffset(img:*) : void
+    {
+        xOff = img.mouseX
+        yOff = img.mouseY
+    }
+
+    public function callDrag(event:MouseEvent): void
+    {
+        dragMe4(event, 'Image', 'img');
+        myoffset(myImage);
+    }
+
+
+]]>
+</fx:Script>
+<fx:Style>
+    @namespace s "library://ns.adobe.com/flex/spark";
+    @namespace mx "library://ns.adobe.com/flex/mx";
+   mx|DragManager {
+      defaultDragImageSkin: Embed('../../../../Assets/Images/dropSkin.jpg');
+}
+</fx:Style>
+
+<mx:Canvas id="v1"
+    width="500"
+    height="500"
+    dragEnter="doDragEnter(event)"
+    dragDrop ="doDragDrop(event,v1, 'img')"
+    borderStyle="solid"
+    backgroundColor="#DDDDDD"
+    >
+
+    <mx:Image id="myImage" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe(event, 'Image', 'img');myoffset(myImage);"/>
+    <comps:MXMLcomp id="comp" x="0" y="250" mouseDown="dragMe2(event, 'Image', 'img');myoffset(comp)"/>
+    <mx:Image id="myImage2" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe3(event, 'Image', 'img');myoffset(myImage2);"
+        x="250" y="200" />
+
+ </mx:Canvas>
+ </s:WindowedApplication>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/assets/myStyles.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/assets/myStyles.css?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/assets/myStyles.css (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/assets/myStyles.css Mon Aug  6 20:51:08 2012
@@ -0,0 +1,52 @@
+/*
+ *
+ * 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.
+ *
+ */
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+	fontFamily: "MyVerdana";
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+	fontFamily: "MyVerdana";
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+global {
+    fontFamily: "MyVerdana";
+    fontAntiAliasType: "normal";
+}
+
+

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/CustomComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/CustomComp.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/CustomComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/CustomComp.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,23 @@
+<?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:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF2499">
+        <mx:Label color="yellow" fontSize="15" text="{data.label}" />
+        <mx:Text width="150" text="{data.color}" />
+    </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragDataGrid.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragDataGrid.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragDataGrid.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragDataGrid.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,23 @@
+<?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:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" width="350" height="200"
+    dragEnabled="true" dropEnabled="true">
+
+</mx:DataGrid>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragList.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragList.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragList.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/DragList.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,23 @@
+<?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:mx="http://www.adobe.com/2006/mxml" width="250" height="200"
+    dragEnabled="true" dropEnabled="true">
+
+</mx:List>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/MXMLcomp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/MXMLcomp.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/MXMLcomp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/SWFs/comps/MXMLcomp.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,22 @@
+<?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:mx="http://www.adobe.com/2006/mxml">
+        <mx:Image id="img" width="200" height="200" source="@Embed('../../../../../Assets/Images/unknown.jpg')"/>
+    </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/DragManager_CustomTests_spark_AIR.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/DragManager_CustomTests_spark_AIR.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/DragManager_CustomTests_spark_AIR.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/DragManager_CustomTests_spark_AIR.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,117 @@
+<?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="Managers/DragManager/Spark/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="DragManager_Custom_sparkAIR.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       import mx.styles.StyleManager;
+
+       public static function init(o:DisplayObject):void
+        {
+
+        }
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+<!-- custom drag of an Image -->
+        <TestCase testID="DragManager_custom_image_AIR" description="Test that you can drag an image by creating a DragSource." keywords="[DragManager, DragSource]">
+            <body>
+                 <DispatchMouseEvent target="myImage" type="mouseOver" localX="15" localY="15"  />
+                 <DispatchMouseEvent target="myImage" type="mouseDown" localX="15" localY="15" buttonDown="true" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="20" localY="30" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="50" localY="60" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="100" localY="75" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseUp" localX="100" localY="75" buttonDown="true"
+                        waitTarget="myImage" waitEvent="dragComplete" />
+                <AssertPropertyValue target="myImage" propertyName="x" value="85" />
+                <AssertPropertyValue target="myImage" propertyName="y" value="60" />
+            </body>
+        </TestCase>
+        <TestCase testID="DragManager_custom_mxmlComp_AIR" description="Test that you can drag an mxml component by creating a DragSource." keywords="[DragManager, DragSource]">
+            <body>
+                 <WaitForEffectsToEnd />
+                 <DispatchMouseEvent target="comp" type="mouseOver" localX="15" localY="15"  />
+                 <DispatchMouseEvent target="comp" type="mouseDown" localX="15" localY="15" buttonDown="true" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="20" localY="280" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="50" localY="310" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="100" localY="325" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseUp" localX="100" localY="325" buttonDown="true"
+                    waitTarget="comp" waitEvent="dragComplete" />
+                <AssertPropertyValue target="comp" propertyName="x" value="85" />
+                <AssertPropertyValue target="comp" propertyName="y" value="310" />
+            </body>
+        </TestCase>
+        <TestCase testID="DragManager_custom_dragOffset_AIR" description="Test that your dragProxy is correct when setting a dragOffset." keywords="[DragManager, dragOffset, DragSource]">
+            <body>
+                 <WaitForEffectsToEnd />
+                 <DispatchMouseEvent target="myImage2" type="mouseOver" localX="15" localY="15"  />
+                 <DispatchMouseEvent target="myImage2" type="mouseDown" localX="15" localY="15" buttonDown="true" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="240" localY="180" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="200" localY="160" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                 <DispatchMouseEvent target="v1" type="mouseMove" localX="150" localY="130" buttonDown="true"
+                        waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                <AssertPropertyValue target="mx.managers::DragManager.mx_internal:dragProxy" propertyName="x" value="35" />
+                <AssertPropertyValue target="mx.managers::DragManager.mx_internal:dragProxy" propertyName="y" value="15" />
+                <DispatchMouseEvent target="v1" type="mouseUp" localX="150" localY="130" buttonDown="true"
+                        waitTarget="myImage2" waitEvent="dragComplete" />
+            </body>
+        </TestCase>
+        <TestCase testID="DragManager_custom_defaultDragImageSkin_AIR" description="Test that your custom defaultDragImageSkin is correct." keywords="[DragManager, defaultDragImageSkin, DragSource]">
+            <setup>
+                <WaitForEffectsToEnd />
+                <ResetComponent target="myImage2" className="mx.controls.Image" waitTarget="myImage2" waitEvent="updateComplete" />
+                <ResetComponent target="myImage" className="mx.controls.Image" waitTarget="myImage" waitEvent="updateComplete" />
+                <RunCode code="application.myImage.addEventListener('mouseDown', application.callDrag)" />
+                <SetProperty target="myImage" propertyName="source" valueExpression="value='../../../../Assets/Images/unknown.jpg'" waitEvent="complete" waitTarget="myImage" />
+            </setup>
+            <body>
+                <DispatchMouseEvent target="myImage" type="mouseOver" localX="15" localY="15"  />
+                <DispatchMouseEvent target="myImage" type="mouseDown" localX="15" localY="15" buttonDown="true" />
+                <DispatchMouseEvent target="v1" type="mouseMove" localX="20" localY="30" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                <DispatchMouseEvent target="v1" type="mouseMove" localX="50" localY="60" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                <DispatchMouseEvent target="v1" type="mouseMove" localX="100" localY="75" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+                <WaitForEffectsToEnd />
+                <CompareBitmap target="v1" url="../Spark/baselines/$testID.png" timeout="2500" />
+                <DispatchMouseEvent target="v1" type="mouseUp" localX="100" localY="75" buttonDown="true"
+                    waitTarget="myImage" waitEvent="dragComplete" />
+        </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/baselines/DragManager_custom_defaultDragImageSkin_AIR.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/baselines/DragManager_custom_defaultDragImageSkin_AIR.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/DragManager/Spark/baselines/DragManager_custom_defaultDragImageSkin_AIR.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/FileComboBox/SWFs/FileComboBox_main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileComboBox/SWFs/FileComboBox_main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileComboBox/SWFs/FileComboBox_main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileComboBox/SWFs/FileComboBox_main.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,22 @@
+<?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:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
+	<mx:FileSystemComboBox id="myFileSystemComboBox"/>
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FileComboBox/properties/FileComboBox_properties_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileComboBox/properties/FileComboBox_properties_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileComboBox/properties/FileComboBox_properties_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileComboBox/properties/FileComboBox_properties_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,445 @@
+<?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="apollo/FileComboBox/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileComboBox_main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	
+	import mx.controls.FileSystemComboBox;
+	import flash.filesystem.File;
+	import mx.collections.ArrayCollection;
+	public var myAC:ArrayCollection = new ArrayCollection();
+
+		private function setDir(): void
+			{
+				var newDirectory:File = new File("c:\\windows");
+				application.myFileSystemComboBox.directory=newDirectory;	
+				
+			}
+		private function setVal(): void
+			{
+				var newDirectory:File = new File("c:\\windows");
+				application.myFileSystemComboBox.directory=newDirectory;
+
+				application.myFileSystemComboBox.extensions=[".txt"];	
+					
+				
+			}
+
+		private function updateBackHis():String{
+			myAC.source = application.myFileSystemComboBox.backHistory;
+			return String(myAC.source.length);
+
+		}
+
+		private function checkcurrentpath():String{
+
+		return String(application.myFileSystemComboBox.directory.name);
+		}
+
+      	
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+
+	<TestCase testID="FileSystemComboBox_Property_directory_Default" keywords="[directory, FileSystemComboBox]">
+		<setup>
+		 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+		</setup>
+		<body>
+			<AssertMethodValue target="myFileSystemComboBox" method="value=checkcurrentpath()" value="Computer"/>
+		</body>
+	</TestCase>
+
+	<TestCase testID="FileSystemComboBox_Property_showIcons_Default" keywords="[showIcons, FileSystemComboBox]">
+		<setup>
+			 <ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+		</setup>
+		<body>
+			<AssertPropertyValue target="myFileSystemComboBox" propertyName="showIcons" value="true" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="FileSystemComboBox_Property_indent_Default" keywords="[indent, FileSystemComboBox]">
+		<setup>
+			 <ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+		</setup>
+		<body>
+			<AssertPropertyValue target="myFileSystemComboBox" propertyName="indent" value="8" />
+		</body>
+	</TestCase>
+
+
+
+
+		<!-- Test depend on OS so they are commented out can be run manually via Mustella
+		
+		<TestCase testID="FileSystemComboBox_Property_canNavigateBack_Default" keywords="[canNavigateBack, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateBack" value="false" />
+			</body>
+		</TestCase>
+		
+		<TestCase testID="FileSystemComboBox_Property_canNavigateBack_aftersetting" keywords="[canNavigateBack, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemComboBox"/>
+				
+						
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateBack" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateDown_Default" keywords="[canNavigateDown, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateDown" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateDown_aftersetting_1" keywords="[canNavigateDown, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateDown" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateDown_aftersetting_2" keywords="[canNavigateDown, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemComboBox"/>
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateDown" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateForward_Default" keywords="[canNavigateForward, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateForward_aftersetting" keywords="[canNavigateForward, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemComboBox"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_canNavigateUp_Default" keywords="[canNavigateUp, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateUp_aftersetting_1" keywords="[canNavigateUp, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemComboBox_Property_canNavigateUp_aftersetting_2" keywords="[canNavigateUp, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemComboBox"/>
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="canNavigateUp" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_backHistory_Default" keywords="[backHistory, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="backHistory" value="" />
+			</body>
+		</TestCase>
+		
+
+<TestCase testID="FileSystemComboBox_Property_directory_set" keywords="[directory, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemComboBox"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemComboBox" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemComboBox" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemComboBox"/>
+				
+						
+			</setup>
+			<body>
+
+				<AssertMethodValue target="myFileSystemComboBox" method="value=updateBackHis()" value="1"/>
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_directory_Default" keywords="[directory, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemComboBox" method="value=checkcurrentpath()" value="Computer"/>
+			</body>
+		</TestCase>
+		
+	
+		
+<TestCase testID="FileSystemComboBox_Property_directory_set" keywords="[directory, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<RunCode code="setDir()"/>
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemComboBox" method="value=checkcurrentpath()" value="windows"/>
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_enumerationMode_Default" keywords="[enumerationMode, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="enumerationMode" value="directoriesFirst" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_enumerationMode_set" keywords="[enumerationMode, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemComboBox" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="enumerationMode" value="filesOnly" />
+			</body>
+		</TestCase>
+
+
+<TestCase testID="FileSystemComboBox_Property_extensions_Default" keywords="[extensions, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemComboBox" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="extensions" value="null" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_extensions_set" keywords="[extensions, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<RunCode code="setVal()"/>
+				<SetProperty target="myFileSystemComboBox" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="extensions" value=".txt" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemComboBox_Property_showIcons_Default" keywords="[showIcons, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showIcons" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_showIcons_Set" keywords="[showIcons, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<SetProperty target="myFileSystemComboBox" propertyName="showIcons" value="false" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showIcons" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_showExtensions_Default" keywords="[showExtensions, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showExtensions" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_showExtensions_Set" keywords="[showExtensions, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<SetProperty target="myFileSystemComboBox" propertyName="showExtensions" value="false" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showExtensions" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_showHidden_Default" keywords="[showHidden, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showHidden" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemComboBox_Property_showHidden_Set" keywords="[showHidden, FileSystemComboBox]">
+			<setup>
+			 	<ResetComponent target="myFileSystemComboBox" className="mx.controls::FileSystemComboBox" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/> 
+				<SetProperty target="myFileSystemComboBox" propertyName="showHidden" value="true" waitEvent="updateComplete" waitTarget="myFileSystemComboBox"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemComboBox" propertyName="showHidden" value="true" />
+			</body>
+		</TestCase>
+		-->
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/SWFs/FileDataGrid_main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/SWFs/FileDataGrid_main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/SWFs/FileDataGrid_main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/SWFs/FileDataGrid_main.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,22 @@
+<?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:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
+	<mx:FileSystemDataGrid id="myFileSystemDataGrid"/>
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/events/FileDataGrid_events_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/events/FileDataGrid_events_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/events/FileDataGrid_events_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/events/FileDataGrid_events_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,168 @@
+<?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="apollo/FileDataGrid/events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileDataGrid_main.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}					
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>	
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+		
+		import flash.system.Capabilities;
+		import mx.controls.FileSystemDataGrid;
+		import flash.filesystem.File;
+		import mx.collections.ArrayCollection;
+		public var myAC:ArrayCollection = new ArrayCollection();
+		
+		[Bindable]
+		public var myOS:String;
+		[Bindable]
+		public var newDirectory:File;
+
+		private function whichOS():void
+		{
+			if (Capabilities.os.indexOf("Windows") != -1){
+				myOS="windows";
+				newDirectory = new File("c:\\windows");
+			}
+
+			else if (Capabilities.os.indexOf("Mac") != -1){
+				myOS="System";
+				newDirectory = new File("/System/");
+			}
+		}
+		
+		private function setDir(): void
+		{
+			application.myFileSystemDataGrid.directory=newDirectory;	
+
+		}
+		private function setVal(): void
+		{
+			application.myFileSystemDataGrid.directory=newDirectory;
+			application.myFileSystemDataGrid.extensions=[".txt"];	
+		}
+
+		private function updateBackHis():String{
+			myAC.source = application.myFileSystemDataGrid.backHistory;
+			return String(myAC.source.length);
+
+		}
+
+		private function checkcurrentpath():String{
+
+		return String(application.myFileSystemDataGrid.directory.name);
+		}
+
+      	
+	]]>
+	</mx:Script>
+
+	<testCases>
+		
+		
+		
+		<TestCase testID="FileSystemDataGrid_Event_directoryChange_afterInteraction" keywords="[canNavigateBack, FileSystemDataGrid]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid"/>
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+				<AssertEvent target="myFileSystemDataGrid" eventName="directoryChange" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemDataGrid_Event_directoryChange_afterCallingMethod" keywords="[canNavigateBack, FileSystemDataGrid]">
+			<setup>
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid"/>
+				<RunCode code="application.myFileSystemDataGrid.navigateDown()" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+				<AssertEvent target="myFileSystemDataGrid" eventName="directoryChange" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		
+		<!-- Tests depend on OS, but can be run manually with Mustella 
+
+		<TestCase testID="FileSystemDataGrid_Event_directoryOpening_afterInteraction" keywords="[canNavigateBack, FileSystemDataGrid]">
+			<setup>
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid"/>
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryOpening" waitTarget="myFileSystemDataGrid"/>
+				<AssertEvent target="myFileSystemDataGrid" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemDataGrid_Event_directoryOpening_afterCallingMethod" keywords="[canNavigateBack, FileSystemDataGrid]">
+			<setup>
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid"/>
+				<RunCode code="application.myFileSystemDataGrid.navigateDown()" waitEvent="directoryOpening" waitTarget="myFileSystemDataGrid"/>
+				<AssertEvent target="myFileSystemDataGrid" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Event_select_afterInteraction" keywords="[canNavigateBack, FileSystemDataGrid]">
+			<setup>
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+				<DispatchMouseClickEvent localX="35" localY="35" target="myFileSystemDataGrid" waitEvent="select" waitTarget="myFileSystemDataGrid" />
+				<AssertEvent target="myFileSystemDataGrid" eventName="select" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+
+		
+		-->
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/methods/FileDataGrid_methods_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/methods/FileDataGrid_methods_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/methods/FileDataGrid_methods_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/methods/FileDataGrid_methods_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,372 @@
+<?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="apollo/FileDataGrid/methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileDataGrid_main.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<mx:Script>
+
+	<![CDATA[
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+	}					
+
+	]]>
+
+	</mx:Script>
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</mx:Metadata>	
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+	<mx:Script>
+
+	<![CDATA[
+
+		import flash.system.Capabilities;
+
+		import mx.controls.FileSystemDataGrid;
+
+		import flash.filesystem.File;
+
+		import mx.collections.ArrayCollection;
+
+		import flash.system.Capabilities;
+
+		
+
+		public var myAC:ArrayCollection = new ArrayCollection();
+
+		
+
+		[Bindable]
+
+		public var contentLength:int = -1;
+
+		[Bindable]
+
+		public var myOS:String;
+
+		[Bindable]
+
+		public var newDirectory:File;
+
+
+
+		private function whichOS():void
+
+		{
+
+			if (Capabilities.os.indexOf("Windows") != -1){
+
+				myOS="windows";
+
+				newDirectory = new File("c:\\windows");
+
+			}
+
+
+
+			else if (Capabilities.os.indexOf("Mac") != -1){
+
+				myOS="System";
+
+				newDirectory = new File("/System/");
+
+			}
+
+		}
+
+		
+
+		private function setDir(): void
+
+		{
+
+			application.myFileSystemDataGrid.directory=newDirectory;	
+
+
+
+		}
+
+
+
+		private function setVal(): void
+
+		{
+
+			application.myFileSystemDataGrid.directory=newDirectory;
+
+			application.myFileSystemDataGrid.extensions=[".txt"];	
+
+		}
+
+
+
+		private function updateBackHis():String{
+
+			myAC.source = application.myFileSystemDataGrid.backHistory;
+
+			return String(myAC.source.length);
+
+
+
+		}
+
+
+
+		private function checkcurrentpath():String{
+
+
+
+			return String(application.myFileSystemDataGrid.directory.name);
+
+
+
+		}
+
+		private function setDirC(): void{
+
+
+
+			var newDirectory:File = new File("c:\\");
+
+			application.myFileSystemDataGrid.directory=newDirectory;	
+
+		}
+
+		private function checkContentLength():String{
+
+			trace(String(application.myFileSystemDataGrid.dataProvider));	
+
+			return String(application.myFileSystemDataGrid.dataProvider.length);
+
+		}
+
+
+
+      		private function setContentLength():void{
+
+      			contentLength = application.myFileSystemDataGrid.dataProvider.length;
+
+      		}
+
+	]]>
+
+	</mx:Script>
+
+
+
+	<testCases>
+
+		
+
+		<TestCase testID="FileSystemDataGrid_Method_clear_set" keywords="[clear, FileSystemDataGrid]">
+
+			<setup>
+
+				<RunCode code="whichOS()"/>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				<RunCode code="application.myFileSystemDataGrid.clear()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemDataGrid" method="value=checkContentLength()" value="0"/>
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Method_refresh_set" keywords="[Refresh, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<RunCode code="setContentLength()"/>
+
+				<RunCode code="application.myFileSystemDataGrid.clear()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+				<RunCode code="application.myFileSystemDataGrid.refresh()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemDataGrid" method="value=checkContentLength()" value="{contentLength}"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FileSystemDataGrid_Method_navigateDown_aftersetting" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<RunCode code="application.myFileSystemDataGrid.navigateDown()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateUp" value="true" />
+
+			</body>
+
+		</TestCase>
+
+		
+
+<TestCase testID="FileSystemDataGrid_Method_navigateUp_aftersetting" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				<RunCode code="application.myFileSystemDataGrid.navigateUp()" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateUp" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Method_navigateBack_aftersetting" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				<RunCode code="application.myFileSystemDataGrid.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateBack" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+		<TestCase testID="FileSystemDataGrid_Method_navigateForward_aftersetting" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				<RunCode code="application.myFileSystemDataGrid.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+				<RunCode code="application.myFileSystemDataGrid.navigateForward()" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateBack" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+	</testCases>
+
+
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/properties/FileDataGrid_properties_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/properties/FileDataGrid_properties_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/properties/FileDataGrid_properties_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileDataGrid/properties/FileDataGrid_properties_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,814 @@
+<?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="apollo/FileDataGrid/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileDataGrid_main.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<mx:Script>
+
+	<![CDATA[
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+	}					
+
+	]]>
+
+	</mx:Script>
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</mx:Metadata>	
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+	<mx:Script>
+
+	<![CDATA[
+
+		
+
+		import flash.system.Capabilities;
+
+		import mx.controls.FileSystemDataGrid;
+
+		import flash.filesystem.File;
+
+		import mx.collections.ArrayCollection;
+
+		public var myAC:ArrayCollection = new ArrayCollection();
+
+
+
+		[Bindable]
+
+		public var myOS:String;
+
+		[Bindable]
+
+		public var newDirectory:File;
+
+
+
+		private function whichOS():void
+
+	 	{
+
+			if (Capabilities.os.indexOf("Windows") != -1){
+
+				myOS="windows";
+
+				newDirectory = new File("c:\\windows");
+
+			}
+
+
+
+			else if (Capabilities.os.indexOf("Mac") != -1){
+
+				myOS="System";
+
+				newDirectory = new File("/System/");
+
+			}
+
+		}
+
+		
+
+		private function setDir(): void
+
+		{
+
+			application.myFileSystemDataGrid.directory=newDirectory;	
+
+		}
+
+
+
+		private function setVal(): void
+
+		{
+
+			application.myFileSystemDataGrid.directory=newDirectory;
+
+			application.myFileSystemDataGrid.extensions=[".txt"];	
+
+		}
+
+
+
+		private function updateBackHis():String{
+
+			myAC.source = application.myFileSystemDataGrid.backHistory;
+
+			return String(myAC.source.length);
+
+
+
+		}
+
+
+
+		private function checkcurrentpath():String{
+
+
+
+		return String(application.myFileSystemDataGrid.directory.name);
+
+		}
+
+
+
+      	
+
+	]]>
+
+	</mx:Script>
+
+
+
+	<testCases>
+
+		
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateBack_Default" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+				<RunCode code="whichOS()"/>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateBack" value="false" />
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateBack_aftersetting" keywords="[canNavigateBack, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateBack" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateDown_Default" keywords="[canNavigateDown, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateDown" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateDown_aftersetting_1" keywords="[canNavigateDown, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateDown" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateDown_aftersetting_2" keywords="[canNavigateDown, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid.mx_internal:dataGridHeader"/>			
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateDown" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateForward_Default" keywords="[canNavigateForward, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateForward" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateForward_aftersetting" keywords="[canNavigateForward, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateForward" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_canNavigateUp_Default" keywords="[canNavigateUp, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateUp" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateUp_aftersetting_1" keywords="[canNavigateUp, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateUp" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_canNavigateUp_aftersetting_2" keywords="[canNavigateUp, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid.mx_internal:dataGridHeader"/>
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="canNavigateUp" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_backHistory_Default" keywords="[backHistory, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="backHistory" value="" />
+
+			</body>
+
+		</TestCase>
+
+		
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_directory_set" keywords="[directory, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemDataGrid"/>
+
+				 <DispatchMouseEvent type="mouseDown" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+			     
+
+			     <DispatchMouseEvent type="mouseUp" localX="35" localY="35" target="myFileSystemDataGrid" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemDataGrid"/>
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+
+
+				<AssertMethodValue target="myFileSystemDataGrid" method="value=updateBackHis()" value="1"/>
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_directory_Default" keywords="[directory, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemDataGrid" method="value=checkcurrentpath()" value="Computer"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+	
+
+		
+
+<TestCase testID="FileSystemDataGrid_Property_directory_setusingmethod" keywords="[directory, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<RunCode code="setDir()"/>
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemDataGrid" method="value=checkcurrentpath()" value="{myOS}"/>
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_enumerationMode_Default" keywords="[enumerationMode, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="enumerationMode" value="directoriesFirst" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_enumerationMode_set" keywords="[enumerationMode, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<RunCode code="setDir()"/>
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="enumerationMode" value="filesOnly" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_extensions_Default" keywords="[extensions, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<RunCode code="setDir()"/>
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="extensions" value="null" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_extensions_set" keywords="[extensions, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<RunCode code="setVal()"/>
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="extensions" value=".txt" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+		<TestCase testID="FileSystemDataGrid_Property_showIcons_Default" keywords="[showIcons, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showIcons" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_showIcons_Set" keywords="[showIcons, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="showIcons" value="false" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showIcons" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_showExtensions_Default" keywords="[showExtensions, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showExtensions" value="true" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_showExtensions_Set" keywords="[showExtensions, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="showExtensions" value="false" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showExtensions" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_showHidden_Default" keywords="[showHidden, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showHidden" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+<TestCase testID="FileSystemDataGrid_Property_showHidden_Set" keywords="[showHidden, FileSystemDataGrid]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemDataGrid" className="mx.controls::FileSystemDataGrid" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/> 
+
+				<SetProperty target="myFileSystemDataGrid" propertyName="showHidden" value="true" waitEvent="updateComplete" waitTarget="myFileSystemDataGrid"/>				
+
+				
+
+						
+
+			</setup>
+
+			<body>
+
+				<AssertPropertyValue target="myFileSystemDataGrid" propertyName="showHidden" value="true" />
+
+			</body>
+
+		</TestCase>
+
+		
+
+	</testCases>
+
+
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/FileList/SWFs/FileList_main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileList/SWFs/FileList_main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileList/SWFs/FileList_main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileList/SWFs/FileList_main.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,22 @@
+<?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:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
+	<mx:FileSystemList id="myFileSystemList"/>
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FileList/events/FileList_events_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileList/events/FileList_events_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileList/events/FileList_events_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileList/events/FileList_events_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,310 @@
+<?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="apollo/FileList/events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileList_main.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<mx:Script>
+
+	<![CDATA[
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+	}					
+
+	]]>
+
+	</mx:Script>
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</mx:Metadata>	
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+		<mx:Script>
+
+	<![CDATA[
+
+
+
+		import flash.system.Capabilities;
+
+		import mx.controls.FileSystemList;
+
+		import flash.filesystem.File;
+
+		import mx.collections.ArrayCollection;
+
+		public var myAC:ArrayCollection = new ArrayCollection();
+
+
+
+		[Bindable]
+
+		public var myOS:String;
+
+		public var newDirectory:File;
+
+
+
+		private function whichOS():void
+
+	 	{
+
+			if (Capabilities.os.indexOf("Windows") != -1){
+
+				myOS="windows";
+
+				newDirectory = new File("c:\\windows");
+
+			}
+
+
+
+			else if (Capabilities.os.indexOf("Mac") != -1){
+
+				myOS="System";
+
+				newDirectory = new File("/System/");
+
+			}
+
+		}
+
+
+
+		private function setDir(): void
+
+		{
+
+			application.myFileSystemList.directory=newDirectory;			
+
+		}
+
+	
+
+		private function setVal(): void
+
+		{
+
+			application.myFileSystemList.directory=newDirectory;
+
+			application.myFileSystemList.extensions=[".txt"];	
+
+		}
+
+
+
+		private function updateBackHis():String{
+
+			myAC.source = application.myFileSystemList.backHistory;
+
+			return String(myAC.source.length);
+
+
+
+		}
+
+
+
+		private function checkcurrentpath():String{
+
+			return String(application.myFileSystemList.directory.name);
+
+		}
+
+	
+
+	]]>
+
+	</mx:Script>
+
+
+
+	<testCases>
+
+		
+
+		<TestCase testID="FileSystemList_Event_directoryChange_afterInteraction" keywords="[canNavigateBack, FileSystemList]">
+
+			<setup>
+
+				<RunCode code="whichOS()"/>
+
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+
+			</setup>
+
+			<body>
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemList"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemList" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemList"/>
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemList"/>
+
+				<AssertEvent target="myFileSystemList" eventName="directoryChange" eventClass="mx.events::FileEvent" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemList_Event_directoryChange_afterCallingMethod" keywords="[canNavigateBack, FileSystemList]">
+
+			<setup>
+
+				<RunCode code="whichOS()"/>
+
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+
+			</setup>
+
+			<body>
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemList"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemList" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemList"/>
+
+				<RunCode code="application.myFileSystemList.navigateDown()" waitEvent="directoryChange" waitTarget="myFileSystemList"/>
+
+				<AssertEvent target="myFileSystemList" eventName="directoryChange" eventClass="mx.events::FileEvent" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		
+
+		<!-- These tests have always been commented out since inception not sure why
+
+
+
+		<TestCase testID="FileSystemList_Event_directoryOpening_afterInteraction" keywords="[canNavigateBack, FileSystemList]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+
+			</setup>
+
+			<body>
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemList"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemList" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemList"/>
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryOpening" waitTarget="myFileSystemList"/>
+
+				<AssertEvent target="myFileSystemList" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemList_Event_directoryOpening_afterCallingMethod" keywords="[canNavigateBack, FileSystemList]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+
+			</setup>
+
+			<body>
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemList"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemList" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemList"/>
+
+				<RunCode code="application.myFileSystemList.navigateDown()" waitEvent="directoryOpening" waitTarget="myFileSystemList"/>
+
+				<AssertEvent target="myFileSystemList" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+
+
+		<TestCase testID="FileSystemList_Event_select_afterInteraction" keywords="[canNavigateBack, FileSystemList]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+
+			</setup>
+
+			<body>
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemList"/>
+
+				<DispatchMouseClickEvent localX="10" localY="10" target="myFileSystemList" waitEvent="select" waitTarget="myFileSystemList" />
+
+				<AssertEvent target="myFileSystemList" eventName="select" eventClass="mx.events::FileEvent" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+		
+
+		-->
+
+	</testCases>
+
+
+
+</UnitTester>
+



Mime
View raw message