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/11/05 08:51:01 UTC
[19/23] git commit: [flex-falcon]
[refs/heads/feature-autobuild/example-maven-dirs] - add a test for FLEX-35143
add a test for FLEX-35143
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/f83b5b58
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/f83b5b58
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/f83b5b58
Branch: refs/heads/feature-autobuild/example-maven-dirs
Commit: f83b5b58b7edd6236b04e65aa049d0a7d4fbd935
Parents: 90ec96e
Author: Alex Harui <ah...@apache.org>
Authored: Wed Nov 2 12:40:50 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Nov 2 12:40:50 2016 -0700
----------------------------------------------------------------------
.../internal/codegen/js/flexjs/TestFlexJSExpressions.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f83b5b58/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 032683a..e1bf07e 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
@@ -597,6 +597,16 @@ public class TestFlexJSExpressions extends TestGoogExpressions
}
@Test
+ public void testVisitBinaryOperatorNode_varDynamicSlashAssignment()
+ {
+ IBinaryOperatorNode node = (IBinaryOperatorNode) getNode(
+ "public class B {public var b:Object; public function c() { b[\"\\\\\"] = 1; }}",
+ IBinaryOperatorNode.class, WRAP_LEVEL_PACKAGE);
+ asBlockWalker.visitBinaryOperator(node);
+ assertOut("this.b[\"\\\\\"] = 1");
+ }
+
+ @Test
public void testVisitBinaryOperatorNode_StringVarAssignmentFromObject()
{
IBinaryOperatorNode node = (IBinaryOperatorNode) getNode(