| 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 a0319bc9bc8357d0e4bc6edbbc5e456ce107647b..18bba8e1ec3c307669939fe871338783d3f5cdfb 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| @@ -5,8 +5,9 @@
|
| // Hidden native class with factory constructors and NO static methods.
|
| // Regression test.
|
|
|
| +import 'native_metadata.dart';
|
|
|
| -@native("*A")
|
| +@Native("*A")
|
| class A {
|
|
|
| // No static methods in this class.
|
| @@ -15,16 +16,16 @@ class A {
|
|
|
| factory A.fromString(String s) => makeA(s.length);
|
|
|
| - @native(r'return makeA(a+b);')
|
| + @Native(r'return makeA(a+b);')
|
| factory A.nativeConstructor(int a, int b);
|
|
|
| - @native('return this._x;')
|
| + @Native('return this._x;')
|
| foo();
|
| }
|
|
|
| @native makeA(v);
|
|
|
| -@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); }
|
|
|