| Index: dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
|
| index afd6e32fed9dced203ff03c39ef8580c3c9c890b..cae73e798bc8d1695dd326aa7d5dc147edd0ab28 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
|
| @@ -14,19 +14,21 @@ interface I extends J {
|
|
|
| // Native implementation.
|
|
|
| -class A implements I native "*A" {
|
| +@native("*A")
|
| +class A implements I {
|
| // The native class accepts only other native instances.
|
| - A read() native;
|
| - write(A x) native;
|
| + @native A read();
|
| + @native write(A x);
|
| }
|
|
|
| -class B extends A native "*B" {
|
| +@native("*B")
|
| +class B extends A {
|
| }
|
|
|
| -makeA() native;
|
| -makeB() native;
|
| +@native makeA();
|
| +@native makeB();
|
|
|
| -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__) {
|
| @@ -45,7 +47,8 @@ A.prototype.read = function() { return this._x; };
|
| A.prototype.write = function(x) { this._x = x; };
|
| makeA = function(){return new A};
|
| makeB = function(){return new B};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
| class C {}
|
|
|
|
|