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

Unified Diff: dart/pkg/unittest/test_controller.js

Issue 10910188: Attempt to fix timeout of failing selenium tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/unittest/test_controller.js
diff --git a/dart/pkg/unittest/test_controller.js b/dart/pkg/unittest/test_controller.js
index 5b2152103bf5aff2ecc26f92523f547632898e50..b247f6e7df037ff8920aa973254d58f3a8350675 100644
--- a/dart/pkg/unittest/test_controller.js
+++ b/dart/pkg/unittest/test_controller.js
@@ -109,6 +109,10 @@ function dartPrint(msg) {
// Dart [main] directly. The argument is a closure that invokes main.
function dartMainRunner(main) {
window.postMessage('dart-calling-main', '*');
- main();
+ try {
+ main();
+ } catch (e) {
+ showErrorAndExit(String(e));
+ }
window.postMessage('dart-main-done', '*');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698