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

Unified Diff: chrome/test/data/webui/print_preview.js

Issue 2598353002: The second argument of add/removeEventListener should be an object, null, or undefined
Patch Set: Fix tests Created 3 years, 11 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
Index: chrome/test/data/webui/print_preview.js
diff --git a/chrome/test/data/webui/print_preview.js b/chrome/test/data/webui/print_preview.js
index 5848d82ad20217a23a73956fc439c2146cf8736b..a0989fa8234547a4eb78e8210e7b33829ca29e20 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -159,7 +159,7 @@ PrintPreviewWebUITest.prototype = {
// add a listener for the animation end event
document.addEventListener('webkitAnimationEnd', function f(e) {
if (e.target.id == elementId) {
- document.removeEventListener(f, 'webkitAnimationEnd');
+ document.removeEventListener('webkitAnimationEnd', f);
testDone();
}
});
« no previous file with comments | « chrome/browser/ui/webui/options/options_browsertest.js ('k') | content/test/data/loader/async_resource_handler.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698