| Index: tests/compiler/dart2js_native/native_wrapping_function3_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_wrapping_function3_frog_test.dart b/tests/compiler/dart2js_native/native_wrapping_function3_frog_test.dart
|
| index a5dc2c790fb85c508fe922c8528714a26fbf6647..111e2f5399e8b9ba4c69c87defcc4a56e69d79ed 100644
|
| --- a/tests/compiler/dart2js_native/native_wrapping_function3_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_wrapping_function3_frog_test.dart
|
| @@ -16,15 +16,18 @@ class A {
|
|
|
| A makeA() native;
|
|
|
| -void setup() native """
|
| -function A() {}
|
| -A.prototype.foo1 = function(closure, arg1) { return closure(arg1); };
|
| -A.prototype.foo2 = function(closure, arg1, arg2) {
|
| - return closure(arg1, arg2);
|
| -};
|
| -makeA = function(){return new A;};
|
| -self.nativeConstructor(A);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {}
|
| + A.prototype.foo1 = function(closure, arg1) { return closure(arg1); };
|
| + A.prototype.foo2 = function(closure, arg1, arg2) {
|
| + return closure(arg1, arg2);
|
| + };
|
| + makeA = function(){return new A()};
|
| + self.nativeConstructor(A);
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|