You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/06/24 06:10:23 UTC

[royale-asjs] branch develop updated: Add empty for loop test as well.

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 46e7a64  Add empty for loop test as well.
46e7a64 is described below

commit 46e7a6491a46b2fb3e3ac92b485e7367eace200c
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Jun 24 18:10:01 2020 +1200

    Add empty for loop test as well.
---
 .../flexUnitTests/language/LanguageTesterTestLoopVariants.as  | 11 +++++++++++
 pom.xml                                                       |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestLoopVariants.as b/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestLoopVariants.as
index 73b4c78..65d72f5 100644
--- a/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestLoopVariants.as
+++ b/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestLoopVariants.as
@@ -81,6 +81,17 @@ package flexUnitTests.language
 
         }
 
+        [Test]
+        public function testForLoopWithoutBody():void
+        {
+            var test:int=-1;
+            var limit:int=100;
+            //for loop with missing body
+            for (test=-1;test<limit;test++);
+
+            assertEquals(test, limit, 'unexpected result');
+
+        }
         
     }
 }
diff --git a/pom.xml b/pom.xml
index 480cfa8..4967a5d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,7 +68,7 @@
     <air.version>20.0</air.version>
     <!-- For SWF versions see: http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html -->
     <swf.version>31</swf.version>
-    <source.map>true</source.map>
+    <source.map>false</source.map>
 
     <!-- This parameter has to be provided from the outside -->
     <webdriver.gecko.driver />