You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/04/14 09:46:34 UTC

[05/18] git commit: [flex-falcon] [refs/heads/feature/maven-migration-test] - add test for FLEX-35071

add test for FLEX-35071


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

Branch: refs/heads/feature/maven-migration-test
Commit: f05ad766828ac63ee22af80505b58d63342f5814
Parents: a56951b
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 12 14:28:40 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 12 14:28:40 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f05ad766/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
index 295d636..6536414 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
@@ -525,6 +525,14 @@ public class TestFlexJSGlobalClasses extends TestGoogGlobalClasses
     }
     
     @Test
+    public void testXMLFilterWithAttribute()
+    {
+    	IBinaryOperatorNode node = getBinaryNode("var a:XMLList; a = a.(attribute('name').length());");
+        asBlockWalker.visitBinaryOperator(node);
+        assertOut("a = a.filter(function(node){return (node.attribute('name').length())})");
+    }
+    
+    @Test
     public void testXMLSetAttribute()
     {
         IBinaryOperatorNode node = getBinaryNode("var a:XML = new XML(\"<top attr1='cat'><child attr2='dog'><grandchild attr3='fish'>text</grandchild></child></top>\");a.@bar = 'foo'");