You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pe...@apache.org on 2018/03/05 18:21:20 UTC

[royale-asjs] branch feature/MXRoyale updated: Restored test directory. Now passes.

This is an automated email from the ASF dual-hosted git repository.

pent pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new a11c8b4  Restored test directory. Now passes.
a11c8b4 is described below

commit a11c8b4ea023ec739a25df3b8b683bc714b80dd4
Author: Peter Ent <pe...@apache.org>
AuthorDate: Mon Mar 5 13:21:16 2018 -0500

    Restored test directory. Now passes.
---
 mustella/tests/basicTests/BasicTests.mxml          | 23 ++++----
 mustella/tests/basicTests/BasicTestsApp-config.xml |  5 +-
 .../mxroyale/scripts/ButtonTestScript.mxml         | 61 ----------------------
 .../basicTests/mxroyale/views/ButtonTests.mxml     | 33 ------------
 4 files changed, 12 insertions(+), 110 deletions(-)

diff --git a/mustella/tests/basicTests/BasicTests.mxml b/mustella/tests/basicTests/BasicTests.mxml
index 2334569..fcd382d 100644
--- a/mustella/tests/basicTests/BasicTests.mxml
+++ b/mustella/tests/basicTests/BasicTests.mxml
@@ -25,7 +25,6 @@
     xmlns:graphicsviews="graphics.views.*"
     xmlns:fxgviews="fxg.views.*"
     xmlns:dmvviews="dmv.views.*"
-    xmlns:mxroyale="mxroyale.views.*"
     height="800" width="1000"
     >
 
@@ -34,31 +33,30 @@
 
     <!--  STEP 1: Add a state for your test here -->
     <js:states>
-    	<js:State name="mxroyaleTest" />
-        <!--<js:State name="basicTest" />
+        <js:State name="basicTest" />
         <js:State name="haloButtonTest" />
         <js:State name="haloCheckBoxTest" />
         <js:State name="haloRadioButtonTest" />
         <js:State name="haloTextInputTest" />
         <js:State name="haloTextAreaTest" />
-        <js:State name="haloComboBoxTest" /> -->
+        <js:State name="haloComboBoxTest" />
         <!--<js:State name="haloColorPickerTest" />-->
-        <!--<js:State name="haloNumericStepperTest" />-->
+        <js:State name="haloNumericStepperTest" />
         <!--<js:State name="haloDateFieldTest" />-->
         <!--<js:State name="haloMenuTest" />-->
         <!--<js:State name="haloMenuBarTest" />-->
         <!--<js:State name="haloFocusManagerTest" />-->
-        <!--<js:State name="haloListAndDataGridTest" />-->
+        <js:State name="haloListAndDataGridTest" />
         <!--<js:State name="haloTreeTest" />-->
-        <!--<js:State name="haloImageTest" />-->
+        <js:State name="haloImageTest" />
         <!--<js:State name="haloSWFLoaderTest" />-->
-        <!--<js:State name="haloTextTest" />-->
+        <js:State name="haloTextTest" />
         <!--<js:State name="haloFTETextTest" />-->
         <!--<js:State name="haloProgressBarTest" />-->
-        <!--<js:State name="haloSliderTest" />-->
+        <js:State name="haloSliderTest" />
         <!--<js:State name="haloTabNavigatorTest" />-->
         <!--<js:State name="haloAccordionTest" />-->
-        <!--<js:State name="haloAlertTest" />-->
+        <js:State name="haloAlertTest" />
         <!--<js:State name="haloRPCDataBindingTest" />-->
         <!--<js:State name="haloCollectionTest" />-->
         <!--<js:State name="dmvADGTest" />-->
@@ -109,9 +107,8 @@
     
     <!--  STEP 2: Add an mxml component with the widgets for your test here -->
     
-    <!-- <haloviews:ButtonTests id="haloButtonTests" includeIn="haloButtonTest" /> -->
-    <mxroyale:ButtonTests id="mxroyaleButtonTests" includeIn="mxroyaleTest" />   
-    <!--<haloviews:CheckBoxTests id="haloCheckBoxTests" includeIn="haloCheckBoxTest" /> -->
+    <haloviews:ButtonTests id="haloButtonTests" includeIn="haloButtonTest" />
+    <haloviews:CheckBoxTests id="haloCheckBoxTests" includeIn="haloCheckBoxTest" />
 <!-- temporary
     <haloviews:RadioButtonTests id="haloRadioButtonTests" includeIn="haloRadioButtonTest" />    
     <haloviews:TextInputTests id="haloTextInputTests" includeIn="haloTextInputTest" />    
diff --git a/mustella/tests/basicTests/BasicTestsApp-config.xml b/mustella/tests/basicTests/BasicTestsApp-config.xml
index 8be0c87..7af2884 100644
--- a/mustella/tests/basicTests/BasicTestsApp-config.xml
+++ b/mustella/tests/basicTests/BasicTestsApp-config.xml
@@ -24,9 +24,8 @@
     <includes>
     <!--
     -->
-    	<symbol>mxroyale.scripts.ButtonTestScript</symbol>
-        <!--<symbol>halo.scripts.ButtonTestScript</symbol>
-        <symbol>halo.scripts.CheckBoxTestScript</symbol>-->
+        <symbol>halo.scripts.ButtonTestScript</symbol>
+        <symbol>halo.scripts.CheckBoxTestScript</symbol>
     <!-- temporarily
         <symbol>halo.scripts.RadioButtonTestScript</symbol>
         <symbol>halo.scripts.TextInputTestScript</symbol>
diff --git a/mustella/tests/basicTests/mxroyale/scripts/ButtonTestScript.mxml b/mustella/tests/basicTests/mxroyale/scripts/ButtonTestScript.mxml
deleted file mode 100644
index a429428..0000000
--- a/mustella/tests/basicTests/mxroyale/scripts/ButtonTestScript.mxml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml">
-
-	<!-- this set of lines form a template that must be in each unit test -->
-	<mx:Script>
-	<![CDATA[
-	public static function init(o:Object):void
-	{
-	}
-	]]>
-	</mx:Script>
-	<mx:Metadata>
-	<![CDATA[
-		[Mixin]
-	]]>
-	</mx:Metadata>
-	<!-- end of set of lines that must be in each unit test -->
-
-	<mx:Script>
-	<![CDATA[
-	]]>
-	</mx:Script>
-
-	<testCases>
-<!--
--->
-		<TestCase testID="SetupButtonTest">
-			<body>
-				<SetProperty target="" propertyName="currentState" value="mxroyaleTest" 
-                    waitEvent="enterFrame" />
-				<AssertPropertyValue target="mxroyaleButtonTests.testButton" propertyName="text" value="test button" />
-				<AssertPropertyValue target="mxroyaleButtonTests.testLabel" propertyName="text" value="test" />
-			</body>
-		</TestCase>
-		<TestCase testID="ButtonTest1">
-			<body>
-				<DispatchMouseEvent target="mxroyaleButtonTests.testButton" type="mouseOver" localX="10" localY="10" />
-				<DispatchMouseClickEvent target="mxroyaleButtonTests.testButton" localX="10" localY="10" />
-				<AssertPropertyValue target="mxroyaleButtonTests.testLabel" propertyName="text" value="This is a test" />
-			</body>
-		</TestCase>
-	</testCases>
-</UnitTester>
diff --git a/mustella/tests/basicTests/mxroyale/views/ButtonTests.mxml b/mustella/tests/basicTests/mxroyale/views/ButtonTests.mxml
deleted file mode 100644
index a29dba1..0000000
--- a/mustella/tests/basicTests/mxroyale/views/ButtonTests.mxml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?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.
-
--->
-<my:VBox 
-    xmlns:fx="http://ns.adobe.com/mxml/2009"
-    xmlns:js="library://ns.apache.org/royale/basic" 
-    xmlns:my="shim.*"                >
-
-<fx:Script>
-<![CDATA[
-]]>
-</fx:Script>
-
-    <js:TextButton id="testButton" text="test button" click="testLabel.text='This is a test'" />
-    <js:Label id="testLabel" text="test" />
-
-</my:VBox>

-- 
To stop receiving notification emails like this one, please contact
pent@apache.org.