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

Unified Diff: lib/unittest/html_config.dart

Issue 10854013: Clean up the test srapper code so that it does not use reportTestError, and made that private. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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: lib/unittest/html_config.dart
===================================================================
--- lib/unittest/html_config.dart (revision 10299)
+++ lib/unittest/html_config.dart (working copy)
@@ -21,11 +21,8 @@
EventListener _onErrorClosure;
void onInit() {
- _onErrorClosure = (e) {
- // TODO(vsm): figure out how to expose the stack trace here
- // Currently e.message works in dartium, but not in dartc.
- reportTestError('(DOM callback has errors) Caught ${e}', '');
- };
+ _onErrorClosure =
+ (e) => handleExternalError(e, '(DOM callback has errors)');
}
void onStart() {

Powered by Google App Engine
This is Rietveld 408576698