| Index: tests/compiler/dart2js_native/core_type_check_native_test.dart
|
| diff --git a/tests/compiler/dart2js_native/core_type_check_native_test.dart b/tests/compiler/dart2js_native/core_type_check_native_test.dart
|
| index dc8019fe2a2c4db4ac3f722e991ff2ab79ba2ab3..c1411b610a12f16dfb7aa5c9f914db8760ab0f4a 100644
|
| --- a/tests/compiler/dart2js_native/core_type_check_native_test.dart
|
| +++ b/tests/compiler/dart2js_native/core_type_check_native_test.dart
|
| @@ -21,21 +21,25 @@ makeB() native;
|
| makeC() native;
|
| makeD() native;
|
|
|
| -void setup() native """
|
| -function A() {};
|
| -makeA = function() { return new A; }
|
| -function B() {};
|
| -makeB = function() { return new B; }
|
| -function C() {};
|
| -makeC = function() { return new C; }
|
| -function D() {};
|
| -makeD = function() { return new D; }
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {};
|
| + makeA = function() { return new A(); };
|
| + function B() {};
|
| + makeB = function() { return new B(); };
|
| + function C() {};
|
| + makeC = function() { return new C(); };
|
| + function D() {};
|
| + makeD = function() { return new D(); };
|
|
|
| -self.nativeConstructor(A);
|
| -self.nativeConstructor(B);
|
| -self.nativeConstructor(C);
|
| -self.nativeConstructor(D);
|
| -""";
|
| + self.nativeConstructor(A);
|
| + self.nativeConstructor(B);
|
| + self.nativeConstructor(C);
|
| + self.nativeConstructor(D);
|
| +})()
|
| +""");
|
| +}
|
|
|
| checkTest(value, expectComparable, expectPattern) {
|
| Expect.equals(expectComparable, value is Comparable);
|
|
|