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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-captions.html

Issue 2268923003: Clean up textTrackDisplayElement utility function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 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: third_party/WebKit/LayoutTests/media/video-controls-captions.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-captions.html b/third_party/WebKit/LayoutTests/media/video-controls-captions.html
index aea44b909edaa7e03608e7acb4e117a89b9c1ecd..63302da979c4decf9ea687cc963556dc3f989bd8 100644
--- a/third_party/WebKit/LayoutTests/media/video-controls-captions.html
+++ b/third_party/WebKit/LayoutTests/media/video-controls-captions.html
@@ -21,11 +21,11 @@ async_test(function(t) {
var track = document.querySelector("track");
track.onload = t.step_func(function() {
- assert_equals(textTrackCueElementByIndex(video, 0).innerText, "Lorem");
+ assert_equals(textTrackDisplayElement(video).innerText, "Lorem");
// Captions should not be visible after Off is clicked.
turnClosedCaptionsOff(video);
- assert_equals(textTrackCueDisplayElement(video), null);
+ assert_equals(textTrackDisplayElement(video), null);
// Remove DOM node representing the track element.
track.remove();

Powered by Google App Engine
This is Rietveld 408576698