| Index: dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| index b14d31f2a4dc31c6320cb9074a5e9a69fa2e0f5b..c9f148c7ed52f606401e66669deeaf6c10d06479 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| @@ -6,7 +6,8 @@
|
| // Regression test.
|
|
|
|
|
| -class A native "*A" {
|
| +@native("*A")
|
| +class A {
|
|
|
| // No static methods in this class.
|
|
|
| @@ -14,18 +15,21 @@ class A native "*A" {
|
|
|
| factory A.fromString(String s) => makeA(s.length);
|
|
|
| - factory A.nativeConstructor(int a, int b) native @'return makeA(a+b);';
|
| + @native(@'return makeA(a+b);')
|
| + factory A.nativeConstructor(int a, int b);
|
|
|
| - foo() native 'return this._x;';
|
| + @native('return this._x;')
|
| + foo();
|
| }
|
|
|
| -makeA(v) native;
|
| +@native makeA(v);
|
|
|
| -void setup() native """
|
| +@native("""
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| function A(arg) { this._x = arg; }
|
| makeA = function(arg) { return new A(arg); }
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
| main() {
|
| setup();
|
|
|