| Index: tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| index 04977b234518ce9c69643958a9dbf012f9966861..5d05694b4dd56dc144961568aa31c77403e0fdc7 100644
|
| --- a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| @@ -26,17 +26,20 @@ class B {
|
| int baz() => 900;
|
| }
|
|
|
| -void setup() native """
|
| -// This code is all inside 'setup' and so not accessible from the global scope.
|
| -function A(){}
|
| -A.prototype.fooA = function(){return 100;};
|
| -A.prototype.barA = function(){return 200;};
|
| -A.prototype.bazA = function(){return 300;};
|
| -
|
| -makeA = function(){return new A};
|
| -
|
| -self.nativeConstructor(A);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + // This code is inside 'setup' and so not accessible from the global scope.
|
| + function A(){}
|
| + A.prototype.fooA = function(){return 100;};
|
| + A.prototype.barA = function(){return 200;};
|
| + A.prototype.bazA = function(){return 300;};
|
| +
|
| + makeA = function(){return new A()};
|
| +
|
| + self.nativeConstructor(A);
|
| +})()""");
|
| +}
|
|
|
| testDynamic() {
|
| var a = confuse(makeA());
|
|
|