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

Unified Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html

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: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html
index 4d1892fadcbfac7cc4791b887b746595cdd6cd2a..30bb5825d47d5c13bde57c769caeedb1ec591454 100644
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-two-videos.html
@@ -53,7 +53,7 @@
// ensures we see both events.
if (++encryptedEventCount != 2)
return;
- video.removeEventListener(listener);
+ video.removeEventListener('encrypted', listener);
var mediaKeySession = video.mediaKeys.createSession();
mediaKeySession.generateRequest(e.initDataType, e.initData).then(function(result) {
@@ -75,7 +75,7 @@
video.addEventListener('timeupdate', function listener(e) {
if (e.target.currentTime < 0.2)
return;
- video.removeEventListener(listener);
+ video.removeEventListener('timeupdate', listener);
resolve(e);
});
});

Powered by Google App Engine
This is Rietveld 408576698