Repository: flex-falcon
Updated Branches:
  refs/heads/develop 30e20bbf7 -> 218c318f3


allow test to pass


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

Branch: refs/heads/develop
Commit: 218c318f31bf647469595ea2fcaf78d3afcff017
Parents: 30e20bb
Author: Alex Harui <[email protected]>
Authored: Mon Nov 14 23:30:47 2016 -0800
Committer: Alex Harui <[email protected]>
Committed: Mon Nov 14 23:30:47 2016 -0800

----------------------------------------------------------------------
 .../internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/218c318f/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
----------------------------------------------------------------------
diff --git 
a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
 
b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
index 701fe1e..9d7f50b 100644
--- 
a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
+++ 
b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
@@ -394,6 +394,15 @@ public class TestFlexJSGlobalClasses extends 
TestGoogGlobalClasses
     }
     
     @Test
+    public void testXMLLiteralWithTemplateAndStaticVar()
+    {
+        VariableNode node = (VariableNode)getNode("private static function get 
txtStr():String { return 'foo'; }; private function test() { var a:XML = 
<text><content>{txtStr}</content></text>;}",
+                                                                
VariableNode.class, WRAP_LEVEL_CLASS);
+        asBlockWalker.visitVariable(node);
+        assertOut("var /** @type {XML} */ a = new XML( '<text><content>' + 
FalconTest_A[\"txtStr\"] + '</content></text>')");
+    }
+    
+    @Test
     public void testXMLLiteralAsParam()
     {
         IFunctionCallNode node = (IFunctionCallNode)getNode("var a:XML; 
a.appendChild(<top attr1='cat'><child attr2='dog'><grandchild 
attr3='fish'>text</grandchild></child></top>)",

Reply via email to