incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [3/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/FileList/methods/FileList_methods_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileList/methods/FileList_methods_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileList/methods/FileList_methods_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileList/methods/FileList_methods_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,177 @@
+<?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/methods/"  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 mx.controls.FileSystemList;
+	import flash.filesystem.File;
+	import mx.collections.ArrayCollection;
+	public var myAC:ArrayCollection = new ArrayCollection();
+
+	[Bindable]
+	public var contentLength:int = -1;
+	
+		private function setDir(): void
+			{
+				var newDirectory:File = new File("c:\\windows");
+				application.myFileSystemList.directory=newDirectory;	
+				
+			}
+		private function setVal(): void
+			{
+				var newDirectory:File = new File("c:\\windows");
+				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);
+
+		}
+		private function setDirC(): void{
+
+			var newDirectory:File = new File("c:\\");
+			application.myFileSystemList.directory=newDirectory;	
+		}
+		private function checkContentLength():String{
+			return String(application.myFileSystemList.dataProvider.length);
+		}
+
+      		private function setContentLength():void{
+	      		contentLength = application.myFileSystemList.dataProvider.length;
+      		}
+	]]>
+	</mx:Script>
+
+	<testCases>
+		
+		<TestCase testID="FileSystemList_Method_clear_set" keywords="[clear, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="application.myFileSystemList.clear()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemList" method="value=checkContentLength()" value="0"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Method_refresh_set" keywords="[Refresh, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="setContentLength()"/>
+				<RunCode code="application.myFileSystemList.clear()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+				<RunCode code="application.myFileSystemList.refresh()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemList" method="value=checkContentLength()" value="{contentLength}"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="FileSystemList_Method_navigateDown_aftersetting" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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="updateComplete" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateUp" value="true" />
+			</body>
+		</TestCase>
+		
+<TestCase testID="FileSystemList_Method_navigateUp_aftersetting" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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"/>
+				<RunCode code="application.myFileSystemList.navigateUp()" waitEvent="directoryChange" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Method_navigateBack_aftersetting" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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"/>
+				<RunCode code="application.myFileSystemList.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateBack" value="false" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemList_Method_navigateForward_aftersetting" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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"/>
+				<RunCode code="application.myFileSystemList.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+				<RunCode code="application.myFileSystemList.navigateForward()" waitEvent="updateComplete" waitTarget="myFileSystemList"/>
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateBack" value="true" />
+			</body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FileList/properties/FileList_properties_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileList/properties/FileList_properties_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileList/properties/FileList_properties_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileList/properties/FileList_properties_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,351 @@
+<?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/properties/"  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;
+		[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.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_Property_canNavigateBack_Default" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateBack" value="false" />
+			</body>
+		</TestCase>
+		
+		<TestCase testID="FileSystemList_Property_canNavigateBack_aftersetting" keywords="[canNavigateBack, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				
+				<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"/>
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateBack" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateDown_Default" keywords="[canNavigateDown, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateDown" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateDown_aftersetting_1" keywords="[canNavigateDown, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateDown" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateForward_Default" keywords="[canNavigateForward, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateForward_aftersetting" keywords="[canNavigateForward, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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"/>								
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateUp_Default" keywords="[canNavigateUp, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_canNavigateUp_aftersetting_1" keywords="[canNavigateUp, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_backHistory_Default" keywords="[backHistory, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="backHistory" value="" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_directory_set" keywords="[directory, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<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"/>
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemList" method="value=updateBackHis()" value="1"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_directory_Default" keywords="[directory, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemList" method="value=checkcurrentpath()" value="Computer"/>
+			</body>
+		</TestCase>
+			
+		<TestCase testID="FileSystemList_Property_directory_set" keywords="[directory, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="setDir()"/>
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemList" method="value=checkcurrentpath()" value="System"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_enumerationMode_Default" keywords="[enumerationMode, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="enumerationMode" value="directoriesFirst" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_enumerationMode_set" keywords="[enumerationMode, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemList" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="enumerationMode" value="filesOnly" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemList_Property_extensions_Default" keywords="[extensions, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemList" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="extensions" value="null" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_extensions_set" keywords="[extensions, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<RunCode code="setVal()"/>
+				<SetProperty target="myFileSystemList" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="extensions" value=".txt" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemList_Property_showIcons_Default" keywords="[showIcons, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showIcons" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_showIcons_Set" keywords="[showIcons, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<SetProperty target="myFileSystemList" propertyName="showIcons" value="false" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showIcons" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_showExtensions_Default" keywords="[showExtensions, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showExtensions" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_showExtensions_Set" keywords="[showExtensions, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<SetProperty target="myFileSystemList" propertyName="showExtensions" value="false" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showExtensions" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_showHidden_Default" keywords="[showHidden, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showHidden" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemList_Property_showHidden_Set" keywords="[showHidden, FileSystemList]">
+			<setup>
+				<RunCode code="whichOS()"/>
+				<ResetComponent target="myFileSystemList" className="mx.controls::FileSystemList" waitEvent="updateComplete" waitTarget="myFileSystemList"/> 
+				<SetProperty target="myFileSystemList" propertyName="showHidden" value="true" waitEvent="updateComplete" waitTarget="myFileSystemList"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemList" propertyName="showHidden" value="true" />
+			</body>
+		</TestCase>
+		
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FileTree/SWFs/FileTree_main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileTree/SWFs/FileTree_main.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileTree/SWFs/FileTree_main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileTree/SWFs/FileTree_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:FileSystemTree id="myFileSystemTree"/>
+</mx:WindowedApplication>

Added: incubator/flex/trunk/mustella/tests/apollo/FileTree/events/FileTree_events_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileTree/events/FileTree_events_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileTree/events/FileTree_events_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileTree/events/FileTree_events_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,192 @@
+<?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/FileTree/events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileTree_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.FileSystemTree;
+		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.myFileSystemTree.directory=newDirectory;	
+
+		}
+
+		private function setVal(): void
+		{
+			application.myFileSystemTree.directory=newDirectory;
+			application.myFileSystemTree.extensions=[".txt"];	
+		}
+
+		private function updateBackHis():String{
+			myAC.source = application.myFileSystemTree.backHistory;
+			return String(myAC.source.length);
+
+		}
+
+		private function checkcurrentpath():String{
+
+		return String(application.myFileSystemTree.directory.name);
+		}
+
+      	
+	]]>
+	</mx:Script>
+
+	<testCases>
+		
+		<TestCase testID="FileSystemTree_Event_directoryChange_afterCallingMethod" keywords="[directoryChange, FileSystemTree]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<RunCode code="setDir()" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				<AssertEvent target="myFileSystemTree" eventName="directoryChange" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Event_directoryOpening_afterInteraction" keywords="[directoryOpening, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseDown" localX="50" localY="10" target="myFileSystemTree" />
+				<DispatchMouseEvent type="mouseUp" localX="50" localY="10" target="myFileSystemTree"/>
+				<DispatchKeyEvent keys="[SPACE]" waitEvent="directoryOpening" waitTarget="myFileSystemTree"/>
+				<AssertEvent target="myFileSystemTree" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Event_directoryClosing_afterInteraction" keywords="[directoryClosing, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseDown" localX="50" localY="10" target="myFileSystemTree" />
+				<DispatchMouseEvent type="mouseUp" localX="50" localY="10" target="myFileSystemTree"/>
+				<DispatchKeyEvent keys="[SPACE]" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+				<WaitForEffectsToEnd />
+				<DispatchMouseEvent type="mouseDown" localX="50" localY="10" target="myFileSystemTree" />
+				<DispatchMouseEvent type="mouseUp" localX="50" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[SPACE]" />
+				<AssertEvent target="myFileSystemTree" eventName="directoryClosing" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<!-- Tests commented out since inception
+		<TestCase testID="FileSystemTree_Event_directoryOpening_afterCallingMethod" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseDown" localX="50" localY="10" target="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseUp" localX="50" localY="10" target="myFileSystemTree"/>
+				<RunCode code="application.myFileSystemTree.openSelectedSubdirectory()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+				<AssertEvent target="myFileSystemTree" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+		
+
+		<TestCase testID="FileSystemTree_Event_directoryOpening_afterInteraction" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree"/>
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryOpening" waitTarget="myFileSystemTree"/>
+				<AssertEvent target="myFileSystemTree" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Event_directoryOpening_afterCallingMethod" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree"/>
+				<RunCode code="application.myFileSystemTree.navigateDown()" waitEvent="directoryOpening" waitTarget="myFileSystemTree"/>
+				<AssertEvent target="myFileSystemTree" eventName="directoryOpening" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemTree_Event_select_afterInteraction" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				<DispatchMouseClickEvent localX="10" localY="10" target="myFileSystemTree" waitEvent="select" waitTarget="myFileSystemTree" />
+				<AssertEvent target="myFileSystemTree" eventName="select" eventClass="mx.events::FileEvent" />
+			</body>
+		</TestCase>
+
+
+		
+		-->
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FileTree/methods/FileTree_methods_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileTree/methods/FileTree_methods_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileTree/methods/FileTree_methods_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileTree/methods/FileTree_methods_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,392 @@
+<?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/FileTree/methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileTree_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.FileSystemTree;
+
+		import flash.filesystem.File;
+
+		import mx.collections.ArrayCollection;
+
+		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.myFileSystemTree.directory=newDirectory;	
+
+		}
+
+		
+
+		private function setVal(): void
+
+		{
+
+			application.myFileSystemTree.directory=newDirectory;
+
+			application.myFileSystemTree.extensions=[".txt"];	
+
+		}
+
+
+
+		private function updateBackHis():String{
+
+			myAC.source = application.myFileSystemTree.backHistory;
+
+			return String(myAC.source.length);
+
+
+
+		}
+
+
+
+		private function checkcurrentpath():String{
+
+
+
+			return String(application.myFileSystemTree.directory.name);
+
+
+
+		}
+
+		private function setDirC(): void{
+
+
+
+			application.myFileSystemTree.directory=newDirectory;	
+
+		}
+
+		private function checkContentLength():String{
+
+			return String(application.myFileSystemTree.dataProvider.length);
+
+		}
+
+		
+
+		private function setContentLength():void{
+
+	      		contentLength = application.myFileSystemTree.dataProvider.length;
+
+      		}
+
+      	
+
+	]]>
+
+	</mx:Script>
+
+
+
+	<testCases>
+
+		
+
+		<TestCase testID="FileSystemTree_Method_clear_set" keywords="[clear, FileSystemTree]">
+
+			<setup>
+
+				<RunCode code="whichOS()"/>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<RunCode code="application.myFileSystemTree.clear()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemTree" method="value=checkContentLength()" value="0"/>
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemTree_Method_refresh_set" keywords="[Refresh, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<RunCode code="setContentLength()"/>
+
+				<RunCode code="application.myFileSystemTree.clear()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+				<RunCode code="application.myFileSystemTree.refresh()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemTree" method="value=checkContentLength()" value="{contentLength}"/>
+
+			</body>
+
+		</TestCase>
+
+		<!-- Tests commented out since inception
+
+		<TestCase testID="FileSystemTree_Method_openSelectedSubdirectory_aftersetting" keywords="[openSelectedSubdirectory, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemTree" method="application.myFileSystemTree.openSelectedSubdirectory()"/>
+
+			</body>
+
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Method_closeSelectedSubdirectory_aftersetting" keywords="[closeSelectedSubdirectory, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+				<RunCode code="application.myFileSystemTree.openSelectedSubdirectory()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+			</setup>
+
+			<body>
+
+				<AssertMethodValue target="myFileSystemTree" method="application.myFileSystemTree.closeSelectedSubdirectory()"/>
+
+			</body>
+
+		</TestCase>
+
+-->
+
+		<!--
+
+<TestCase testID="FileSystemTree_Method_navigateUp_aftersetting" keywords="[canNavigateBack, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+
+				<RunCode code="application.myFileSystemTree.navigateUp()" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateUp" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+		<TestCase testID="FileSystemTree_Method_navigateBack_aftersetting" keywords="[canNavigateBack, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+
+				<RunCode code="application.myFileSystemTree.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateBack" value="false" />
+
+			</body>
+
+		</TestCase>
+
+
+
+
+
+		<TestCase testID="FileSystemTree_Method_navigateForward_aftersetting" keywords="[canNavigateBack, FileSystemTree]">
+
+			<setup>
+
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+
+				<DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+
+				<RunCode code="application.myFileSystemTree.navigateBack()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+				<RunCode code="application.myFileSystemTree.navigateForward()" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+
+			</setup>
+
+			<body>
+
+				
+
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateBack" value="true" />
+
+			</body>
+
+		</TestCase>
+
+		-->
+
+	</testCases>
+
+
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/FileTree/properties/FileTree_properties_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FileTree/properties/FileTree_properties_tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FileTree/properties/FileTree_properties_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FileTree/properties/FileTree_properties_tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,568 @@
+<?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/FileTree/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FileTree_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.FileSystemTree;
+		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.myFileSystemTree.directory=newDirectory;	
+
+		}
+		private function setVal(): void
+		{
+			application.myFileSystemTree.directory=newDirectory;
+			application.myFileSystemTree.extensions=[".txt"];	
+		}
+
+		private function updateBackHis():String{
+			myAC.source = application.myFileSystemTree.backHistory;
+			return String(myAC.source.length);
+
+		}
+
+		private function checkcurrentpath():String{
+
+		return String(application.myFileSystemTree.directory.name);
+		}
+
+      	
+	]]>
+	</mx:Script>
+	<testCases>
+		<TestCase testID="FileSystemTree_Property_enumerationMode_Default" keywords="[enumerationMode, FileSystemTree]">
+			<setup>
+				<RunCode code="whichOS()"/>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="enumerationMode" value="directoriesFirst" />
+			</body>
+		</TestCase>
+		<TestCase testID="FileSystemTree_Property_enumerationMode_set" keywords="[enumerationMode, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="directoriesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="enumerationMode" value="directoriesOnly" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemTree_Property_directory_Default" keywords="[directory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemTree" method="value=checkcurrentpath()" value="Computer"/>
+			</body>
+		</TestCase>
+		
+	
+		
+		<TestCase testID="FileSystemTree_Property_directory_set" keywords="[directory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setDir()"/>
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemTree" method="value=checkcurrentpath()" value="{newDirectory.name}"/>
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_extensions_Default" keywords="[extensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="extensions" value="null" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_extensions_set" keywords="[extensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setVal()"/>
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="extensions" value=".txt" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemTree_Property_showIcons_Default" keywords="[showIcons, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showIcons" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showIcons_Set" keywords="[showIcons, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showIcons" value="false" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showIcons" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showExtensions_Default" keywords="[showExtensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showExtensions" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showExtensions_Set" keywords="[showExtensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showExtensions" value="false" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showExtensions" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showHidden_Default" keywords="[showHidden, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showHidden" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showHidden_Set" keywords="[showHidden, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showHidden" value="true" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showHidden" value="true" />
+			</body>
+		</TestCase>
+		<!-- Tests commented out since inception
+		<TestCase testID="FileSystemTree_Property_canNavigateBack_Default" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateBack" value="false" />
+			</body>
+		</TestCase>
+		
+		<TestCase testID="FileSystemTree_Property_canNavigateBack_aftersetting" keywords="[canNavigateBack, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				
+						
+			</setup>
+			<body>
+				
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateBack" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateDown_Default" keywords="[canNavigateDown, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateDown" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateDown_aftersetting_1" keywords="[canNavigateDown, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateDown" value="true" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateDown_aftersetting_2" keywords="[canNavigateDown, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateDown" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateForward_Default" keywords="[canNavigateForward, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateForward_aftersetting" keywords="[canNavigateForward, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateForward" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_canNavigateUp_Default" keywords="[canNavigateUp, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateUp_aftersetting_1" keywords="[canNavigateUp, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateUp" value="false" />
+			</body>
+		</TestCase>
+
+		<TestCase testID="FileSystemTree_Property_canNavigateUp_aftersetting_2" keywords="[canNavigateUp, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				<DispatchKeyEvent keys="[END]" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="canNavigateUp" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_backHistory_Default" keywords="[backHistory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="backHistory" value="" />
+			</body>
+		</TestCase>
+		
+
+<TestCase testID="FileSystemTree_Property_directory_set" keywords="[directory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				<DispatchKeyEvent keys="[TAB]" waitEvent="focusIn" waitTarget="myFileSystemTree"/>
+				 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="myFileSystemTree" />
+			     
+			     <DispatchMouseEvent type="mouseUp" localX="10" localY="10" target="myFileSystemTree" />
+				<DispatchKeyEvent keys="[ENTER]" waitEvent="directoryChange" waitTarget="myFileSystemTree"/>
+				
+						
+			</setup>
+			<body>
+
+				<AssertMethodValue target="myFileSystemTree" method="value=updateBackHis()" value="1"/>
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_directory_Default" keywords="[directory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemTree" method="value=checkcurrentpath()" value="Computer"/>
+			</body>
+		</TestCase>
+		
+	
+		
+<TestCase testID="FileSystemTree_Property_directory_set" keywords="[directory, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setDir()"/>
+				
+						
+			</setup>
+			<body>
+				<AssertMethodValue target="myFileSystemTree" method="value=checkcurrentpath()" value="windows"/>
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_enumerationMode_Default" keywords="[enumerationMode, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="enumerationMode" value="directoriesFirst" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_enumerationMode_set" keywords="[enumerationMode, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" />
+			</body>
+		</TestCase>
+
+
+<TestCase testID="FileSystemTree_Property_extensions_Default" keywords="[extensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setDir()"/>
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="extensions" value="null" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_extensions_set" keywords="[extensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<RunCode code="setVal()"/>
+				<SetProperty target="myFileSystemTree" propertyName="enumerationMode" value="filesOnly" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="extensions" value=".txt" />
+			</body>
+		</TestCase>
+
+
+		<TestCase testID="FileSystemTree_Property_showIcons_Default" keywords="[showIcons, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showIcons" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showIcons_Set" keywords="[showIcons, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showIcons" value="false" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showIcons" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showExtensions_Default" keywords="[showExtensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showExtensions" value="true" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showExtensions_Set" keywords="[showExtensions, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showExtensions" value="false" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showExtensions" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showHidden_Default" keywords="[showHidden, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showHidden" value="false" />
+			</body>
+		</TestCase>
+
+<TestCase testID="FileSystemTree_Property_showHidden_Set" keywords="[showHidden, FileSystemTree]">
+			<setup>
+			 	<ResetComponent target="myFileSystemTree" className="mx.controls::FileSystemTree" waitEvent="updateComplete" waitTarget="myFileSystemTree"/> 
+				<SetProperty target="myFileSystemTree" propertyName="showHidden" value="true" waitEvent="updateComplete" waitTarget="myFileSystemTree"/>				
+				
+						
+			</setup>
+			<body>
+				<AssertPropertyValue target="myFileSystemTree" propertyName="showHidden" value="true" />
+			</body>
+		</TestCase>
+		-->
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Events/FlexNativeMenu_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Events/FlexNativeMenu_Events.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Events/FlexNativeMenu_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Events/FlexNativeMenu_Events.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,71 @@
+<?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/FlexNativeMenu/Events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FlexNativeMenu_Events_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.core.WindowedApplication;
+
+      	public function displayState():void
+      	{
+      		application.restore();
+
+
+      	}
+      	]]>
+	</mx:Script>
+
+	<testCases>
+ 		<TestCase testID="FlexNativeMenu_Event_menuChanged" keywords="[FlexNativeMenu,Event,menuChanged]" description="Ensure that you get the menuChanged event when assigning a menu to the WindowedApplication">
+ 			<body>
+ 				<AssertPropertyValue target="text1" value="menuChanged received." propertyName="text" />
+ 			</body>
+ 		</TestCase>
+ 		<TestCase testID="FlexNativeMenu_Event_contextMenuChanged" keywords="[FlexNativeMenu,Event,contextMenuChanged]" description="Ensure that you get the contextMenuChanged event when assigning a context menu to a Button">
+ 			<setup>
+ 			    <ResetComponent target="fnm2" className="mx.controls.FlexNativeMenu" />
+ 				<SetProperty propertyName="labelField" value="@label" target="fnm2" />
+ 				<SetProperty propertyName="showRoot" value="false" target="fnm2" />
+ 				<SetProperty propertyName="dataProvider" valueExpression="value=application.nativeMenuDP" target="fnm2" />
+ 			</setup>
+ 			<body>
+ 				<SetProperty propertyName="flexContextMenu" valueExpression="value=application.fnm2" target="button1" />
+ 				<AssertEvent target="button1" eventName="flexContextMenuChanged" eventClass="flash.events::Event" timeout="2000" />
+ 			</body>
+ 		</TestCase>
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Properties/FNM_DataDescriptor_Tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Properties/FNM_DataDescriptor_Tester.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Properties/FNM_DataDescriptor_Tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/FlexNativeMenu/Properties/FNM_DataDescriptor_Tester.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<UnitTester testDir="apollo/FlexNativeMenu/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FNM_DataDescriptor_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 -->
+
+
+
+	<testCases>
+
+		
+
+		<!--These test verify the overriding of everything other than the children methods of dataDescriptor-->
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_labelField" keywords="[FlexNativeMenu, labelField, properties]">
+
+			<!--<setup>
+
+				<ResetComponent target="fnm_2" className="mx.controls.FlexNativeMenu" waitEvent="windowComplete"/>
+
+			</setup>-->
+
+			<body>
+
+				<AssertMethodValue target="" method="value=application.fnm_2.nativeMenu.getItemAt(0).label" value="Fruit"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_doublebyte_label" keywords="[FlexNativeMenu, labelField, properties]">
+
+			<body>
+
+				<AssertMethodValue target="" method="value=application.doubleByteBox.flexContextMenu.nativeMenu.getItemAt(0).label" value="ありがと"/>
+
+				<AssertMethodValue target="" method="value=application.doubleByteBox.flexContextMenu.nativeMenu.getItemAt(1).label" value="二はお馬"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_toggled_true" keywords="[FlexNativeMenu, toggled, properties]">
+
+			<!--<setup>
+
+				<ResetComponent target="fnm_2" className="mx.controls.FlexNativeMenu" />
+
+			</setup>-->
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).enabled" value="true"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_toggled_false" keywords="[FlexNativeMenu, properties, toggled]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(0).enabled" value="false"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_toggled_default" keywords="[FlexNativeMenu, properties, toggled]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(1).enabled" value="true"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_getType_separator_true" keywords="[FlexNativeMenu, getType, properties]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(2).isSeparator" value="true"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_getType_separator_false" keywords="[FlexNativeMenu, getType, properties]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).isSeparator" value="false"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_getType_checked_true" keywords="[FlexNativeMenu, properties, getType]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(5).submenu.getItemAt(0).checked" value="true"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_getType_checked_false" keywords="[FlexNativeMenu, properties, getType]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).checked" value="false"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_getData" keywords="[FlexNativeMenu, properties, getType]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(6).data" value="one"/>
+
+			</body>
+
+		</TestCase>  
+
+		
+
+		<TestCase testID="FlexNativeMenu_flexContextMenu_properties_enabled" keywords="[FlexNativeMenu, properties, setEnabled]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_2" method="value=application.fnm_2.nativeMenu.getItemAt(0).submenu.getItemAt(0).enabled" value="false"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<!--These tests verify the overriding of dataDescriptor children functions that are called by FlexNativeMenu-->
+
+		
+
+		<TestCase testID="FlexNativeMenu_menu_properties_getChildren" keywords="[FlexNativeMenu, properties, getChildren]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_1" method="value=application.fnm_1.nativeMenu.getItemAt(0).label" value="colors"/>
+
+				<AssertMethodValue target="fnm_1" method="value=application.fnm_1.nativeMenu.getItemAt(0).submenu.getItemAt(0).label" value="two"/>
+
+				<AssertMethodValue target="fnm_1" method="value=application.fnm_1.nativeMenu.getItemAt(0).submenu.getItemAt(1).label" value="one"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_menu_properties_hasChildren" keywords="[FlexNativeMenu, properties, hasChildren]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_1" method="value=application.fnm_1.nativeMenu.getItemAt(0).submenu.getItemAt(0).submenu" value="null"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+		<TestCase testID="FlexNativeMenu_menu_properties_isBranch" keywords="[FlexNativeMenu, properties, isBranch]">
+
+			<body>
+
+				<AssertMethodValue target="fnm_1" method="value=application.fnm_1.nativeMenu.getItemAt(0).submenu.getItemAt(1).submenu" value="null"/>
+
+			</body>
+
+		</TestCase>
+
+		
+
+	</testCases>
+
+</UnitTester>
+



Mime
View raw message