| Index: dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart b/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
|
| index 0495a5a17e8f8e42b04bfd61b991ac1a856e25db..a7e2e8f063a92b74fe3e6ac2e0ac18b76d0f3071 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
|
| @@ -6,15 +6,16 @@ typedef void Callback0();
|
| typedef void Callback1(arg1);
|
| typedef void Callback2(arg1, arg2);
|
|
|
| -class A native "*A" {
|
| - foo0(Callback0 closure) native;
|
| - foo1(Callback1 closure, arg1) native;
|
| - foo2(Callback2 closure, arg1, arg2) native;
|
| +@native("*A")
|
| +class A {
|
| + @native foo0(Callback0 closure);
|
| + @native foo1(Callback1 closure, arg1);
|
| + @native foo2(Callback2 closure, arg1, arg2);
|
| }
|
|
|
| -makeA() native;
|
| +@native makeA();
|
|
|
| -void setup() native """
|
| +@native("""
|
| function A() {}
|
| A.prototype.foo0 = function(closure) { return closure(); };
|
| A.prototype.foo1 = function(closure, arg1) { return closure(arg1); };
|
| @@ -22,7 +23,8 @@ A.prototype.foo2 = function(closure, arg1, arg2) {
|
| return closure(arg1, arg2);
|
| };
|
| makeA = function(){return new A;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| main() {
|
|
|