flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - add test for internal access
Date Sat, 19 Nov 2016 06:13:39 GMT
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 <aharui@apache.org>
Authored: Fri Nov 18 22:13:25 2016 -0800
Committer: Alex Harui <aharui@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()


Mime
View raw message