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

Unified Diff: pkg/unittest/lib/test_controller.js

Issue 26162007: Remove unittest-based wrapping from our testing scripts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/test_controller.js
diff --git a/pkg/unittest/lib/test_controller.js b/pkg/unittest/lib/test_controller.js
index 7cf66997d92e34f5d54b7e6c3215c32244d0587e..68b83bfe0a33f260a8ec4bcc9285d8c2b7868975 100644
--- a/pkg/unittest/lib/test_controller.js
+++ b/pkg/unittest/lib/test_controller.js
@@ -98,12 +98,17 @@ function processMessage(msg) {
notifyDone();
} else if (msg == 'unittest-suite-wait-for-done') {
waitForDone = true;
- if (testRunner) testRunner.startedDartTest = true;
+ if (testRunner) {
+ testRunner.startedDartTest = true;
+ }
} else if (msg == 'dart-calling-main') {
- if (testRunner) testRunner.startedDartTest = true;
+ if (testRunner) {
+ testRunner.startedDartTest = true;
+ }
} else if (msg == 'dart-main-done') {
if (!waitForDone) {
- window.postMessage('unittest-suite-success', '*');
+ printMessage('PASS');
+ notifyDone();
}
} else if (msg == 'unittest-suite-success') {
printMessage('PASS');
« no previous file with comments | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698