| Index: tests/compiler/dart2js_native/native_mixin_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_mixin_test.dart b/tests/compiler/dart2js_native/native_mixin_test.dart
|
| index c83d5794e69fc1d8fe9e9af4131198345864cd3a..e214185905f284df15190969b649ef83c475080c 100644
|
| --- a/tests/compiler/dart2js_native/native_mixin_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_mixin_test.dart
|
| @@ -25,15 +25,18 @@ class M {
|
| A makeA() native;
|
| B makeB() native;
|
|
|
| -void setup() native """
|
| -function A() {}
|
| -function B() {}
|
| -makeA = function(){return new A;};
|
| -makeB = function(){return new B;};
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {}
|
| + function B() {}
|
| + makeA = function(){return new A()};
|
| + makeB = function(){return new B()};
|
|
|
| -self.nativeConstructor(A);
|
| -self.nativeConstructor(B);
|
| -""";
|
| + self.nativeConstructor(A);
|
| + self.nativeConstructor(B);
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|