Index: tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart |
diff --git a/tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart b/tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart |
index 0e582dde7dc8ec49a5b99cb564c1396ab9305027..dffa7391403f6b9d010d516849930bfecc38babd 100644 |
--- a/tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart |
+++ b/tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart |
@@ -13,7 +13,8 @@ import "dart:js" as js; |
void test(SendPort sendPort) { |
// Patch XMLHttpRequest to fail on first load. |
- js.context.callMethod("eval", [""" |
+ js.context.callMethod("eval", [ |
+ """ |
oldXMLHttpRequest = XMLHttpRequest; |
XMLHttpRequest = function() { |
XMLHttpRequest = oldXMLHttpRequest; |
@@ -28,7 +29,8 @@ void test(SendPort sendPort) { |
instance.open(x, "non_existing.js"); |
} |
} |
- """]); |
+ """ |
+ ]); |
lib.loadLibrary().then((_) { |
sendPort.send("Library should not have loaded"); |
}, onError: (error) { |
@@ -41,7 +43,6 @@ void test(SendPort sendPort) { |
}); |
} |
- |
main() { |
ReceivePort receivePort = new ReceivePort(); |
asyncStart(); |