| Index: dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart b/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
|
| index 26c7d4e6ebca908484a662a1f4fcd6dc0b68ff93..81ee170a0b7bf60c4fa3e3a0ff23fa738fac7bd5 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_closure_identity_test.dart
|
| @@ -4,21 +4,23 @@
|
|
|
| typedef void MyFunctionType();
|
|
|
| -class A native "*A" {
|
| - setClosure(MyFunctionType f) native;
|
| - check(MyFunctionType f) native;
|
| - invoke() native;
|
| +@native("*A")
|
| +class A {
|
| + @native setClosure(MyFunctionType f);
|
| + @native check(MyFunctionType f);
|
| + @native invoke();
|
| }
|
|
|
| -makeA() native { return new A(); }
|
| +@native makeA() { return new A(); }
|
|
|
| -void setup() native """
|
| +@native("""
|
| function A() {}
|
| A.prototype.setClosure = function(f) { this.f = f; };
|
| A.prototype.check = function(f) { return this.f === f; };
|
| A.prototype.invoke = function() { return this.f(); };
|
| makeA = function(){return new A;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
| var staticClosure;
|
| staticMethod() => 42;
|
|
|