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

Unified Diff: dart/pkg/unittest/lib/html_config.dart

Issue 36913002: test.py: Sending JSON between test_controller.js <-> browser_controller (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
Index: dart/pkg/unittest/lib/html_config.dart
diff --git a/dart/pkg/unittest/lib/html_config.dart b/dart/pkg/unittest/lib/html_config.dart
index 860ec4fa73d753831f59e4f840acffa17fb5b34f..03d774d3b6aa1f03b6000064e8e7ba836c92b344 100644
--- a/dart/pkg/unittest/lib/html_config.dart
+++ b/dart/pkg/unittest/lib/html_config.dart
@@ -166,7 +166,11 @@ class HtmlConfiguration extends SimpleConfiguration {
void onDone(bool success) {
_uninstallHandlers();
- window.postMessage('unittest-suite-done', '*');
+ if (success) {
+ window.postMessage('unittest-suite-success', '*');
+ } else {
+ window.postMessage('unittest-suite-fail', '*');
+ }
}
}
« no previous file with comments | « no previous file | dart/pkg/unittest/lib/html_enhanced_config.dart » ('j') | dart/pkg/unittest/lib/test_controller.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698