| Index: dart/tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart
|
| index d6ed1415cfa4e8afa7fb9c43af4aed0a12d5b270..f5b51f487bcce53d34a17d6a7acf687c61a0341e 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart
|
| @@ -6,29 +6,33 @@
|
| // interferes with subsequent resolving of the method. This might happen if the
|
| // noSuchMethod is cached on Object.prototype.
|
|
|
| -class A1 native "*A1" {
|
| +@native("*A1")
|
| +class A1 {
|
| }
|
|
|
| -class B1 extends A1 native "*B1" {
|
| +@native("*B1")
|
| +class B1 extends A1 {
|
| }
|
|
|
| -makeA1() native;
|
| -makeB1() native;
|
| +@native makeA1();
|
| +@native makeB1();
|
|
|
|
|
| -class A2 native "*A2" {
|
| - foo([a=99]) native;
|
| +@native("*A2")
|
| +class A2 {
|
| + @native foo([a=99]);
|
| }
|
|
|
| -class B2 extends A2 native "*B2" {
|
| +@native("*B2")
|
| +class B2 extends A2 {
|
| }
|
|
|
| -makeA2() native;
|
| -makeB2() native;
|
| +@native makeA2();
|
| +@native makeB2();
|
|
|
| -makeObject() native;
|
| +@native makeObject();
|
|
|
| -void setup() native """
|
| +@native("""
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| function inherits(child, parent) {
|
| if (child.prototype.__proto__) {
|
| @@ -56,7 +60,8 @@ makeA2 = function(){return new A2};
|
| makeB2 = function(){return new B2};
|
|
|
| makeObject = function(){return new Object};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| main() {
|
|
|