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

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

Issue 75393002: unittest: A unittest with 0 test cases should PASS, fixed incorrect unittest-suite-* messages Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | pkg/unittest/lib/html_enhanced_config.dart » ('j') | tests/html/html.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/html_config.dart
diff --git a/pkg/unittest/lib/html_config.dart b/pkg/unittest/lib/html_config.dart
index 860ec4fa73d753831f59e4f840acffa17fb5b34f..03d774d3b6aa1f03b6000064e8e7ba836c92b344 100644
--- a/pkg/unittest/lib/html_config.dart
+++ b/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 | pkg/unittest/lib/html_enhanced_config.dart » ('j') | tests/html/html.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698