| Index: dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
|
| index a37b2250dae7d1b641b829262609e29c8377ef74..8cf1ceb205546542ba14b447b1979f9c7e3bdea9 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
|
| @@ -6,21 +6,23 @@
|
| // parameters set to null. These parameters should be treated as if they
|
| // do not have a default value for the native methods.
|
|
|
| -class A native "*A" {
|
| - int foo(int x) native;
|
| +@native("*A")
|
| +class A {
|
| + @native int foo(int x);
|
| }
|
|
|
| -class B native "*B" {
|
| - int foo([x = null, y, z = null]) native;
|
| +@native("*B")
|
| +class B {
|
| + @native int foo([x = null, y, z = null]);
|
| }
|
|
|
| // TODO(sra): Add a case where the parameters have default values. Wait until
|
| // dart:dom_deprecated / dart:html need non-null default values.
|
|
|
| -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 A() {}
|
| A.prototype.foo = function () { return arguments.length; };
|
|
|
| @@ -29,7 +31,8 @@ B.prototype.foo = function () { return arguments.length; };
|
|
|
| makeA = function(){return new A;};
|
| makeB = function(){return new B;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| testDynamicContext() {
|
|
|