Changed the tests for the proper emission of parameters of the interface members.
Signed-off-by: Erik de Bruin <e...@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/aa156294 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/aa156294 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/aa156294 Branch: refs/heads/maven Commit: aa1562940146cda281198531db7d02ba2c4f691a Parents: c5e6f21 Author: Erik de Bruin <e...@ixsoftware.nl> Authored: Fri Dec 6 10:55:46 2013 +0100 Committer: Erik de Bruin <e...@ixsoftware.nl> Committed: Fri Dec 6 10:55:46 2013 +0100 ---------------------------------------------------------------------- .../compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java | 4 ++-- .../flexjs/projects/interfaces/interfaces/IE_result.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/aa156294/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java index d95eef1..eff48c5 100644 --- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java +++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSInterface.java @@ -43,7 +43,7 @@ public class TestFlexJSInterface extends TestGoogInterface + "function get foo1():Object;" + "function set foo1(value:Object):void;}"); asBlockWalker.visitInterface(node); - assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\nIA.prototype.get_foo1 = function() {};\n\n\nIA.prototype.set_foo1 = function() {};"); + assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\nIA.prototype.get_foo1 = function() {};\n\n\nIA.prototype.set_foo1 = function(value) {};"); } @Override @@ -67,7 +67,7 @@ public class TestFlexJSInterface extends TestGoogInterface + "function baz1():Object;" + "function baz2(value:Object):void;}"); asBlockWalker.visitInterface(node); - assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\nIA.prototype.get_foo1 = function() {};\n\n\nIA.prototype.set_foo1 = function() {};\n\n\nIA.prototype.baz1 = function() {};\n\n\nIA.prototype.baz2 = function(value) {};"); + assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\nIA.prototype.get_foo1 = function() {};\n\n\nIA.prototype.set_foo1 = function(value) {};\n\n\nIA.prototype.baz1 = function() {};\n\n\nIA.prototype.baz2 = function(value) {};"); } protected IBackend createBackend() http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/aa156294/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js b/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js index d3f50b1..d1443d7 100644 --- a/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js +++ b/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js @@ -23,7 +23,7 @@ interfaces.IE.prototype.myMethod = function() {}; interfaces.IE.prototype.get_myProp = function() {}; -interfaces.IE.prototype.set_myProp = function() {}; +interfaces.IE.prototype.set_myProp = function(value) {}; /**