You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/11/19 06:13:39 UTC

git commit: [flex-falcon] [refs/heads/develop] - add test for internal access

Repository: flex-falcon
Updated Branches:
  refs/heads/develop b41d40959 -> 3a67410b6


add test for internal access


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

Branch: refs/heads/develop
Commit: 3a67410b60ace74a4eb225c0ed8f0f3366913c3e
Parents: b41d409
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 18 22:13:25 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 18 22:13:25 2016 -0800

----------------------------------------------------------------------
 .../codegen/js/flexjs/TestFlexJSExpressions.java        | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a67410b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
index 273780f..c8246c1 100644
--- a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
+++ b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
@@ -1053,6 +1053,18 @@ public class TestFlexJSExpressions extends TestGoogExpressions
         		  "  localFunction();\n}");
     }
     
+    @Test
+    public void testInternalVarAccess()
+    {
+        IFunctionNode node = (IFunctionNode) getNode(
+                "internal var bar:String = baz; public function foo():void { trace(bar); }",
+                IFunctionNode.class, WRAP_LEVEL_CLASS);
+        asBlockWalker.visitFunction(node);
+        assertOut("/**\n * @export\n */\n" + 
+        		  "FalconTest_A.prototype.foo = function() {\n" +
+        		  "  org.apache.flex.utils.Language.trace(this.bar);\n}");
+    }
+    
     @Override
     @Test
     public void testVisitAs()