You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2017/03/21 23:10:48 UTC
[11/50] git commit: [flex-falcon] [refs/heads/master] - UnitTest for
FLEX-35233
UnitTest for FLEX-35233
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/02566ca7
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/02566ca7
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/02566ca7
Branch: refs/heads/master
Commit: 02566ca74ad584e15fb219b79411585a9a1706db
Parents: 448df17
Author: Alex Harui <ah...@apache.org>
Authored: Fri Jan 13 12:00:33 2017 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jan 13 12:00:33 2017 -0800
----------------------------------------------------------------------
.../internal/codegen/js/flexjs/TestFlexJSExpressions.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/02566ca7/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 4791f1e..3331fc6 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
@@ -1240,6 +1240,16 @@ public class TestFlexJSExpressions extends TestGoogExpressions
}
@Test
+ public void testVisitStringLiteralChinese()
+ {
+ // a = "\u4f60\u597d";
+ LiteralNode node = (LiteralNode) getExpressionNode(
+ "a = \"\u4f60\u597d\"", LiteralNode.class);
+ asBlockWalker.visitLiteral(node);
+ assertOut("\"\u4f60\u597d\"");
+ }
+
+ @Test
public void testVisitCallFunctionReturnedFromFunction()
{
IFunctionCallNode node = (IFunctionCallNode) getNode("function foo(a:String, b:String):Function { return null }; return foo(3, 4)(1, 2);",