flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/3] git commit: [flex-falcon] [refs/heads/develop] - fix test so it uses supersetter
Date Fri, 21 Aug 2015 14:18:54 GMT
fix test so it uses supersetter


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

Branch: refs/heads/develop
Commit: 16ed07e96acf6b674ef20e4f57cae56a2d8ca803
Parents: 3759e96
Author: Alex Harui <aharui@apache.org>
Authored: Fri Aug 21 07:12:18 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Aug 21 07:12:18 2015 -0700

----------------------------------------------------------------------
 .../compiler/internal/codegen/js/flexjs/TestFlexJSClass.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/16ed07e9/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSClass.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSClass.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSClass.java
index 509e415..2bf3657 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSClass.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSClass.java
@@ -160,9 +160,9 @@ public class TestFlexJSClass extends TestGoogClass
     @Test
     public void testMethod_overrideSetterSuperCall()
     {
-        IClassNode node = getClassNode("public class B {public function B() {}; override
public function set foo(value:Object):void {super.foo = value;};}");
+        IClassNode node = getClassNode("public class B extends A {public function B() {};
override public function set foo(value:Object):void {super.foo = value;};} class A {public
function set foo(value:Object):void {}}");
         asBlockWalker.visitClass(node);
-        String expected = "/**\n * @constructor\n */\norg.apache.flex.B = function() {\n};\n\n\nObject.defineProperties(org.apache.flex.B.prototype,
/** @lends {org.apache.flex.B.prototype} */ {\n/** @export */\nfoo: {\nset: /** @this {org.apache.flex.B}
*/ function(value) {\n  foo = value;\n}}}\n);";
+        String expected = "/**\n * @constructor\n * @extends {org.apache.flex.A}\n */\norg.apache.flex.B
= function() {\n  org.apache.flex.B.base(this, 'constructor');\n};\ngoog.inherits(org.apache.flex.B,
org.apache.flex.A);\n\n\nObject.defineProperties(org.apache.flex.B.prototype, /** @lends {org.apache.flex.B.prototype}
*/ {\n/** @export */\nfoo: {\nset: /** @this {org.apache.flex.B} */ function(value) {\n  org.apache.flex.utils.Language.superSetter(org.apache.flex.B,
this, 'foo', value);\n}}}\n);";
         assertOut(expected);
     }
 


Mime
View raw message