| Index: dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
|
| index 0200b3132f5e47fbfc45e44029bd814b628c150e..3be6b567308bb2ac772b97bf913fc7d9bd2be155 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
|
| @@ -4,20 +4,21 @@
|
|
|
| // Test the feature where the native string declares the native method's name.
|
|
|
| -class A native "*A" {
|
| - int foo() native 'fooA';
|
| - int bar() native 'barA';
|
| - int baz() native 'bazA';
|
| +@native("*A")
|
| +class A {
|
| + @native('fooA') int foo();
|
| + @native('barA') int bar();
|
| + @native('bazA') int baz();
|
| }
|
|
|
| -A makeA() native;
|
| +@native A makeA();
|
|
|
| class B {
|
| int bar([x]) => 800;
|
| int baz() => 900;
|
| }
|
|
|
| -void setup() native """
|
| +@native("""
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| function A(){}
|
| A.prototype.fooA = function(){return 100;};
|
| @@ -25,7 +26,8 @@ A.prototype.barA = function(){return 200;};
|
| A.prototype.bazA = function(){return 300;};
|
|
|
| makeA = function(){return new A};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| testDynamic() {
|
|
|