You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/11/21 13:10:29 UTC
[09/17] git commit: [flex-falcon] [refs/heads/develop] - Test for
'int' to 'INT' cross compilation
Test for 'int' to 'INT' cross compilation
Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/048623eb
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/048623eb
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/048623eb
Branch: refs/heads/develop
Commit: 048623ebc604f82ecf81adc2828b6983e56274ad
Parents: 56b8886
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Nov 21 11:48:12 2014 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Nov 21 11:48:12 2014 +0100
----------------------------------------------------------------------
.../internal/codegen/js/vf2js/TestVF2JSStatements.java | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/048623eb/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
index 061be59..3487afb 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
@@ -47,6 +47,15 @@ public class TestVF2JSStatements extends TestGoogStatements
}
@Test
+ public void testVarDeclaration_withReservedWord()
+ {
+ IVariableNode node = (IVariableNode) getNode("var max:int = int.MAX_VALUE;",
+ IVariableNode.class);
+ asBlockWalker.visitVariable(node);
+ assertOut("var /** @type {number} */ max = INT.MAX_VALUE");
+ }
+
+ @Test
public void testVarDeclaration_withTypeAssignedStringWithNewLine()
{
IVariableNode node = (IVariableNode) getNode("var a:String = \"\\n\"",