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

Unified Diff: chrome/browser/ui/webui/options/options_browsertest.js

Issue 1463763002: Add event name to bare removeEventListener(listener) calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/webui/options/options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/options_browsertest.js b/chrome/browser/ui/webui/options/options_browsertest.js
index d2c068a626f9acb9173815a5db07cce2c44d0f93..895928aa8bdd79b1022b9667703a206dd10f4c1b 100644
--- a/chrome/browser/ui/webui/options/options_browsertest.js
+++ b/chrome/browser/ui/webui/options/options_browsertest.js
@@ -194,7 +194,7 @@ OptionsWebUITest.prototype.testDoNotTrackInterstitial =
window.setTimeout(function() {
assertFalse(dntOverlay.visible);
assertEquals(confirmInterstitial, dntCheckbox.checked);
- dntOverlay.removeEventListener(visibleChangeHandler);
+ dntOverlay.removeEventListener('visibleChange', visibleChangeHandler);
testDone();
}, 0);
break;
@@ -247,7 +247,7 @@ TEST_F('OptionsWebUITest', 'EnableAndDisableDoNotTrack', function() {
window.setTimeout(function() {
assertFalse(dntOverlay.visible);
assertTrue(dntCheckbox.checked);
- dntOverlay.removeEventListener(visibleChangeHandler);
+ dntOverlay.removeEventListener('visibleChange', visibleChangeHandler);
dntCheckbox.click();
}, 0);
break;

Powered by Google App Engine
This is Rietveld 408576698