Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: tests/compiler/dart2js_extra/deferred_fail_and_retry_worker_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698