| Index: tests/compiler/dart2js_native/abstract_class_test.dart
|
| diff --git a/tests/compiler/dart2js_native/abstract_class_test.dart b/tests/compiler/dart2js_native/abstract_class_test.dart
|
| index e9bfd402817e63e5b50d9597025d46feda2dcd62..6773385a4f925434f7d3baa23d18150f06c3d09e 100644
|
| --- a/tests/compiler/dart2js_native/abstract_class_test.dart
|
| +++ b/tests/compiler/dart2js_native/abstract_class_test.dart
|
| @@ -21,16 +21,19 @@ class C {}
|
| makeA() native;
|
| makeB() native;
|
|
|
| -void setup() native """
|
| -// This code is all inside 'setup' and so not accessible from the global scope.
|
| -function A(){}
|
| -function B(){}
|
| -B.prototype.foo = function() { return 'B.foo'; };
|
| -makeA = function(){return new A};
|
| -makeB = function(){return new B};
|
| -self.nativeConstructor(A);
|
| -self.nativeConstructor(B);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A(){}
|
| + function B(){}
|
| + B.prototype.foo = function() { return 'B.foo'; };
|
| + makeA = function(){return new A()};
|
| + makeB = function(){return new B()};
|
| + self.nativeConstructor(A);
|
| + self.nativeConstructor(B);
|
| +})()
|
| +""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|