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

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

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « client/samples/sunflower/Sunflower.dart ('k') | client/tests/client/html/ElementTests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « client/samples/sunflower/Sunflower.dart ('k') | client/tests/client/html/ElementTests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698