Repository: flex-falcon Updated Branches: refs/heads/develop 7a6e27a07 -> 1186a121c
more date tests Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/1186a121 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1186a121 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1186a121 Branch: refs/heads/develop Commit: 1186a121ce453abb7719c1ca30af0101c3c94c48 Parents: 7a6e27a Author: Alex Harui <[email protected]> Authored: Thu Nov 17 21:15:12 2016 -0800 Committer: Alex Harui <[email protected]> Committed: Thu Nov 17 21:15:12 2016 -0800 ---------------------------------------------------------------------- .../codegen/js/flexjs/TestFlexJSGlobalClasses.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1186a121/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java ---------------------------------------------------------------------- diff --git a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java index 247fcd5..f18f332 100644 --- a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java +++ b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java @@ -209,6 +209,22 @@ public class TestFlexJSGlobalClasses extends TestGoogGlobalClasses } @Test + public void testDateSetSeconds() + { + IBinaryOperatorNode node = getBinaryNode("var a:Date = new Date(); a.seconds = 10"); + asBlockWalker.visitBinaryOperator(node); + assertOut("a.setSeconds(10)"); + } + + @Test + public void testDateSetDate() + { + IBinaryOperatorNode node = getBinaryNode("var a:Date = new Date(); a.date = 10"); + asBlockWalker.visitBinaryOperator(node); + assertOut("a.setDate(10)"); + } + + @Test public void testDateGetTimeInMilliseconds() { IVariableNode node = getVariable("var a:Date = new Date(); var b:Number = a.time");
