flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [5/5] git commit: [flex-falcon] [refs/heads/develop] - compiler: added test for internal as member variable name
Date Fri, 06 May 2016 19:53:15 GMT
compiler: added test for internal as member variable name


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/1be8600e
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1be8600e
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1be8600e

Branch: refs/heads/develop
Commit: 1be8600e86339b99b6fc8c81d5f6cf3c9a5d8800
Parents: 2fd8b48
Author: Josh Tynjala <joshtynjala@gmail.com>
Authored: Fri May 6 12:51:19 2016 -0700
Committer: Josh Tynjala <joshtynjala@gmail.com>
Committed: Fri May 6 12:51:19 2016 -0700

----------------------------------------------------------------------
 compiler/src/test/java/as/ASKeywordTests.java | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1be8600e/compiler/src/test/java/as/ASKeywordTests.java
----------------------------------------------------------------------
diff --git a/compiler/src/test/java/as/ASKeywordTests.java b/compiler/src/test/java/as/ASKeywordTests.java
index 8223620..d0d6a63 100644
--- a/compiler/src/test/java/as/ASKeywordTests.java
+++ b/compiler/src/test/java/as/ASKeywordTests.java
@@ -313,6 +313,27 @@ public class ASKeywordTests extends ASFeatureTestsBase
     }
 
     @Test
+    public void ASKeyword_internal_as_variable_name()
+    {
+        // all tests can assume that flash.display.Sprite
+        // flash.system.System and flash.events.Event have been imported
+        String[] imports = new String[]
+        {
+        };
+        String[] declarations = new String[]
+        {
+                "public var internal:String;",
+        };
+        String[] testCode = new String[]
+        {
+                "internal = 'bar';",
+                "assertEqual('variable named internal', internal, 'bar');",
+        };
+        String source = getAS(imports, declarations, testCode, new String[0]);
+        compileAndRun(source);
+    }
+
+    @Test
     public void ASKeyword_as_member_expression()
     {
     	// all tests can assume that flash.display.Sprite


Mime
View raw message