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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-css-user-settings-override-author-settings.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-css-user-settings-override-author-settings.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-css-user-settings-override-author-settings.html b/third_party/WebKit/LayoutTests/media/track/track-css-user-settings-override-author-settings.html
index 413df4e5c828757358cf1aeabe18cf499b2cc79c..1ab12b120d5d45676d093ae8f5cc383bc8b700d0 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-css-user-settings-override-author-settings.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-css-user-settings-override-author-settings.html
@@ -25,7 +25,7 @@ async_test(function(t) {
video.src = findMediaFile("video", "../content/test");
video.oncanplaythrough = t.step_func_done(function() {
- var cue = textTrackDisplayElement(video, "cue").firstElementChild;
+ var cue = textTrackCueElementByIndex(video, 0).firstChild.firstElementChild;
var cueStyle = getComputedStyle(cue);
assert_equals(cueStyle.color, "rgb(255, 0, 0)");
assert_equals(cueStyle.backgroundColor, "rgb(0, 128, 0)");
@@ -46,7 +46,7 @@ async_test(function(t) {
video.currentTime = 0.3;
- cue = textTrackDisplayElement(video, "cue").firstElementChild;
+ cue = textTrackCueElementByIndex(video, 0).firstChild.firstElementChild;
cueStyle = getComputedStyle(cue);
assert_equals(cueStyle.color, "rgb(0, 255, 255)");
assert_equals(cueStyle.backgroundColor, "rgb(0, 128, 0)");

Powered by Google App Engine
This is Rietveld 408576698