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

Unified Diff: lib/unittest/dom_config.dart

Issue 10153005: unittest step 3 and 4: remove TestFramework.dart, make test.dart use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/unittest/config.dart ('k') | lib/unittest/html_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/dom_config.dart
diff --git a/lib/unittest/dom_config.dart b/lib/unittest/dom_config.dart
index df4403cffe910dac8281bfa26dc89d6683aa31c0..cd4311f9c746d9752d6ddfed24c6cf906eb91f5a 100644
--- a/lib/unittest/dom_config.dart
+++ b/lib/unittest/dom_config.dart
@@ -23,7 +23,7 @@ class DomConfiguration extends Configuration {
_onErrorClosure = (e) {
// TODO(vsm): figure out how to expose the stack trace here
// Currently e.message works in dartium, but not in dartc.
- notifyError('(DOM callback has errors) Caught $e', '');
+ reportTestError('(DOM callback has errors) Caught $e', '');
};
}
@@ -35,9 +35,11 @@ class DomConfiguration extends Configuration {
void onTestResult(TestCase testCase) {}
- void onDone(int passed, int failed, int errors, List<TestCase> results) {
+ void onDone(int passed, int failed, int errors, List<TestCase> results,
+ String uncaughtError) {
window.removeEventListener('error', _onErrorClosure);
- _showResultsInPage(passed, failed, errors, results, _isLayoutTest);
+ _showResultsInPage(passed, failed, errors, results, _isLayoutTest,
+ uncaughtError);
window.postMessage('unittest-suite-done', '*');
}
}
« no previous file with comments | « lib/unittest/config.dart ('k') | lib/unittest/html_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698