Repository: flex-falcon Updated Branches: refs/heads/develop a56951bbe -> 395863b00
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/develop Commit: f05ad766828ac63ee22af80505b58d63342f5814 Parents: a56951b Author: Alex Harui <[email protected]> Authored: Tue Apr 12 14:28:40 2016 -0700 Committer: Alex Harui <[email protected]> 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'");
