flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/3] git commit: [flex-falcon] [refs/heads/develop] - updated test cases with labeled for-each loops
Date Tue, 05 Jan 2016 06:29:35 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 5269b49c5 -> c9de796f9


updated test cases with labeled for-each loops

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

Branch: refs/heads/develop
Commit: a38e92b05c86fd79e929f85c53d3085941ad63e0
Parents: fa2f16f
Author: Andy Dufilie <andy.dufilie@gmail.com>
Authored: Thu Dec 31 00:32:39 2015 -0500
Committer: Andy Dufilie <andrew.dufilie@iweave.com>
Committed: Thu Dec 31 02:20:02 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a38e92b0/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
index bbf5d16..b7b3158 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
@@ -415,7 +415,7 @@ public class TestFlexJSStatements extends TestGoogStatements
                 "foo: for each(var i:int in obj) { break foo; }",
                 LabeledStatementNode.class);
         asBlockWalker.visitLabeledStatement(node);
-        assertOut("foo : var foreachiter0_target = obj;\nfor (var foreachiter0 in foreachiter0_target)
\n{\nvar i = foreachiter0_target[foreachiter0];\n{\n  break foo;\n}}\n");
+        assertOut("var foreachiter0_target = obj;\nfoo : for (var foreachiter0 in foreachiter0_target)
\n{\nvar i = foreachiter0_target[foreachiter0];\n{\n  break foo;\n}}\n");
     }
 
     @Override
@@ -427,7 +427,7 @@ public class TestFlexJSStatements extends TestGoogStatements
                 "foo: for each(var i:int in obj) break foo;",
                 LabeledStatementNode.class);
         asBlockWalker.visitLabeledStatement(node);
-        assertOut("foo : var foreachiter0_target = obj;\nfor (var foreachiter0 in foreachiter0_target)
\n{\nvar i = foreachiter0_target[foreachiter0];\n\n  break foo;}\n");
+        assertOut("var foreachiter0_target = obj;\nfoo : for (var foreachiter0 in foreachiter0_target)
\n{\nvar i = foreachiter0_target[foreachiter0];\n\n  break foo;}\n");
     }
 
     //----------------------------------
@@ -537,8 +537,8 @@ public class TestFlexJSStatements extends TestGoogStatements
         		              "      eee.dd;\n" +
         		              "    }\n" +
         		              "  }\n" +
-        		              "  foo : var foreachiter0_target = obj;\n" +
-        		              "  for (var foreachiter0 in foreachiter0_target) \n" +
+        		              "  var foreachiter0_target = obj;\n" +
+        		              "  foo : for (var foreachiter0 in foreachiter0_target) \n" +
         		              "  {\n" +
         		              "  var i = foreachiter0_target[foreachiter0];\n" +
         		              "  \n" +


Mime
View raw message