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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed.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/track/track-cue-rendering-mode-changed.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed.html b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed.html
index dec19058ed2fa39b0dba365b72e3860792aab794..e5fb2fdd1a3565049bbe647b3025a41e4edf5e99 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed.html
@@ -46,7 +46,7 @@ async_test(function(t) {
function testCueVisibility() {
// Only one cue should be visible.
- testCueDisplayBox = textTrackDisplayElement(video, 'display', 0);
+ testCueDisplayBox = textTrackCueElementByIndex(video, 0);
assert_equals(testCueDisplayBox.innerText, 'Arabic');
assert_equals(testCueDisplayBox.nextSibling, null);
@@ -54,10 +54,10 @@ async_test(function(t) {
testTrackEnglish.mode = 'showing';
// Both cues shold be visible.
- testCueDisplayBox = textTrackDisplayElement(video, 'display', 0);
+ testCueDisplayBox = textTrackCueElementByIndex(video, 0);
assert_equals(testCueDisplayBox.innerText, 'Arabic');
- testCueDisplayBox = textTrackDisplayElement(video, 'display', 1);
+ testCueDisplayBox = textTrackCueElementByIndex(video, 1);
assert_equals(testCueDisplayBox.innerText, 'English');
}
});

Powered by Google App Engine
This is Rietveld 408576698