| Index: dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
|
| index 535dcec43ccce9c3cfb58c0c54f715fe7a70b977..c31cd8f88283b2a4205e6d033ebfd1ed9a8e8b71 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
|
| @@ -11,21 +11,23 @@ interface I {
|
|
|
| // 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);
|
| }
|
|
|
| -makeA() native;
|
| +@native makeA();
|
|
|
| -void setup() native """
|
| +@native("""
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| function A(){}
|
| A.prototype.read = function() { return this._x; };
|
| A.prototype.write = function(x) { this._x = x; };
|
| makeA = function(){return new A};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
| class B {}
|
|
|
|
|