| Index: dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
|
| index 727ec38e3ac7bec53bdafa027b80649dbdcdc5c4..d03e60b8815ca17842bb7a3f359aea00071c6cb9 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
|
| @@ -5,18 +5,20 @@
|
| // This is a similar test to NativeCallArity1FrogTest, but makes sure
|
| // that subclasses also get the right number of arguments.
|
|
|
| -class A native "*A" {
|
| - int foo([x, y]) native;
|
| +@native("*A")
|
| +class A {
|
| + @native int foo([x, y]);
|
| }
|
|
|
| -class B extends A native "*B" {
|
| - int foo([x, y]) native;
|
| +@native("*B")
|
| +class B extends A {
|
| + @native int foo([x, y]);
|
| }
|
|
|
| -A makeA() native { return new A(); }
|
| -B makeB() native { return new B(); }
|
| +@native A makeA() { return new A(); }
|
| +@native B makeB() { return new B(); }
|
|
|
| -void setup() native """
|
| +@native("""
|
| function inherits(child, parent) {
|
| if (child.prototype.__proto__) {
|
| child.prototype.__proto__ = parent.prototype;
|
| @@ -36,7 +38,8 @@ inherits(B, A);
|
|
|
| makeA = function(){return new A;};
|
| makeB = function(){return new B;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| testDynamicContext() {
|
|
|