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

Unified Diff: tests/isolate/remote_unittest_helper.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/isolate/remote_unittest_helper.dart
diff --git a/tests/isolate/remote_unittest_helper.dart b/tests/isolate/remote_unittest_helper.dart
index edc90efca9605320fccb2e91892bc20d55a17295..85bee87d7e0c064a52dcec92c9585faceb5dd816 100644
--- a/tests/isolate/remote_unittest_helper.dart
+++ b/tests/isolate/remote_unittest_helper.dart
@@ -34,7 +34,6 @@ bool testRemote(Function main, SendPort port) {
}
var testResponses = new Map<String, List>();
-
ClosureMirror closure = reflect(main);
LibraryMirror library = closure.function.owner;
@@ -51,15 +50,16 @@ bool testRemote(Function main, SendPort port) {
testResponses[name] = message;
break;
case "logMessage":
- break; // Ignore.
+ break; // Ignore.
case "summary":
- throw message[1]; // Uncaught error.
+ throw message[1]; // Uncaught error.
case "done":
receivePort.close();
_simulateTests(testResponses);
break;
}
}
+
try {
Isolate.spawnUri(library.uri, null, receivePort.sendPort);
receivePort.listen(remoteAction);
@@ -84,22 +84,30 @@ class RemoteConfiguration implements Configuration {
bool get autoStart => true;
- void onInit() { }
+ void onInit() {}
- void onStart() { }
+ void onStart() {}
void onTestStart(TestCase testCase) {
_port.send(["testStart", testCase.description]);
}
void onTestResult(TestCase testCase) {
- _port.send(["testResult", testCase.description,
- testCase.result, testCase.message]);
+ _port.send([
+ "testResult",
+ testCase.description,
+ testCase.result,
+ testCase.message
+ ]);
}
void onTestResultChanged(TestCase testCase) {
- _port.send(["testResultChanged", testCase.description,
- testCase.result, testCase.message]);
+ _port.send([
+ "testResultChanged",
+ testCase.description,
+ testCase.result,
+ testCase.message
+ ]);
}
void onLogMessage(TestCase testCase, String message) {

Powered by Google App Engine
This is Rietveld 408576698