| 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;
|
| }
|
|
|