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

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

Issue 11829045: Cleaning up unittest configurations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: pkg/unittest/lib/html_config.dart
diff --git a/pkg/unittest/lib/html_config.dart b/pkg/unittest/lib/html_config.dart
index de727f3d3646868ce3d4fb6d47c0ce29d87a0aa4..b27aab9789ab6bdabc30e1b19781cea12ad0eae7 100644
--- a/pkg/unittest/lib/html_config.dart
+++ b/pkg/unittest/lib/html_config.dart
@@ -131,11 +131,14 @@ class HtmlConfiguration extends Configuration {
void onTestResult(TestCase testCase) {}
- void onDone(int passed, int failed, int errors, List<TestCase> results,
+ void onSummary(int passed, int failed, int errors, List<TestCase> results,
String uncaughtError) {
- _uninstallHandlers();
_showResultsInPage(passed, failed, errors, results, _isLayoutTest,
uncaughtError);
+ }
+
+ void onDone(bool success) {
+ _uninstallHandlers();
window.postMessage('unittest-suite-done', '*');
}
}

Powered by Google App Engine
This is Rietveld 408576698