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

Unified Diff: client/testing/unittest/unittestsuite.dart

Issue 8400065: Switch to .setTimeout instead of onContentLoaded to start running tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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: client/testing/unittest/unittestsuite.dart
===================================================================
--- client/testing/unittest/unittestsuite.dart (revision 910)
+++ client/testing/unittest/unittestsuite.dart (working copy)
@@ -276,17 +276,12 @@
// Immediately queue the suite up. It will run after a timeout (i.e. after
// main() has returned).
- listener(e) {
+ listener() {
_currentGroup = '';
_runTests();
};
- try {
- window.dynamic.on.contentLoaded.add(listener);
- } catch(var e) {
- // TODO(jacobr): remove this horrible hack to work around dartc bugs.
- window.dynamic.addEventListener("DOMContentLoaded", listener, false);
- }
+ window.setTimeout(listener, 0);
_state = _READY;
}
« 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