| Index: client/testing/unittest/unittest.dart
|
| diff --git a/client/testing/unittest/unittest.dart b/client/testing/unittest/unittest.dart
|
| index cabb344c29e306bde892d7c69a2acc5d48c8d8aa..b23a962776292b7cf37c92024b95f048735065fd 100644
|
| --- a/client/testing/unittest/unittest.dart
|
| +++ b/client/testing/unittest/unittest.dart
|
| @@ -41,11 +41,11 @@ _platformStartTests() {
|
| window.postMessage('unittest-suite-wait-for-done', '*');
|
|
|
| // Listen for uncaught errors.
|
| - window.onerror = _onErrorClosure;
|
| + window.addEventListener('error', _onErrorClosure, true);
|
| }
|
|
|
| _platformCompleteTests(int testsPassed, int testsFailed, int testsErrors) {
|
| - window.onerror = null;
|
| + window.removeEventListener('error', _onErrorClosure);
|
|
|
| if (_isLayoutTest && testsPassed == _tests.length) {
|
| document.body.innerHTML = "PASS";
|
|
|