Modified tests for the 'another not fully qualified class type' issue (FLEX-33918)
Signed-off-by: Erik de Bruin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/16551fb2 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/16551fb2 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/16551fb2 Branch: refs/heads/develop Commit: 16551fb2a883b9b1bda81341411632feaea2f242 Parents: d56aaa9 Author: Erik de Bruin <[email protected]> Authored: Wed Nov 20 00:13:35 2013 +0100 Committer: Erik de Bruin <[email protected]> Committed: Wed Nov 20 00:13:35 2013 +0100 ---------------------------------------------------------------------- .../internal/codegen/js/flexjs/TestFlexJSExpressions.java | 2 +- compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as | 4 ++++ .../test-files/flexjs/projects/interfaces/Test_result.js | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/16551fb2/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java index c378343..76f86e7 100644 --- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java +++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java @@ -701,7 +701,7 @@ public class TestFlexJSExpressions extends TestGoogExpressions "public class B {public function b(o:Object):int { var a:B; a = o as B; }}", IFunctionNode.class, WRAP_LEVEL_PACKAGE, true); asBlockWalker.visitFunction(node); - assertOut("/**\n * @expose\n * @param {Object} o\n * @return {number}\n */\nfoo.bar.B.prototype.b = function(o) {\n var /** @type {B} */ a;\n a = org.apache.flex.utils.Language.as(o, foo.bar.B);\n}"); + assertOut("/**\n * @expose\n * @param {Object} o\n * @return {number}\n */\nfoo.bar.B.prototype.b = function(o) {\n var /** @type {foo.bar.B} */ a;\n a = org.apache.flex.utils.Language.as(o, foo.bar.B);\n}"); } @Override http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/16551fb2/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as index 6f251c9..0e26861 100644 --- a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as +++ b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test.as @@ -16,6 +16,10 @@ package public function doSomething(ic:IC):IC { + for (var i:int = 0; i < 3; i++ { + var a:A = null; + } + return ic; } } http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/16551fb2/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js index 838e617..ced2a20 100644 --- a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js +++ b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js @@ -35,6 +35,9 @@ goog.inherits(Test, classes.A); * @return {interfaces.IC} */ Test.prototype.doSomething = function(ic) { + for (var /** @type {number} */ i = 0; i < 3; i++) { + var /** @type {classes.A} */ a = null; + } return ic; };
