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

Unified Diff: third_party/WebKit/LayoutTests/media/video-delay-load-event.html

Issue 1810513002: Media element resource selection algorithm should "await a stable state" Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, microtask changes, layouttest updation Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-source.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/video-delay-load-event.html
diff --git a/third_party/WebKit/LayoutTests/media/video-delay-load-event.html b/third_party/WebKit/LayoutTests/media/video-delay-load-event.html
index 35922274cc01f830a919faa84e7d620845bfc49d..a65fc15e136e0872f554a1e8fa2c7815e945c4cc 100644
--- a/third_party/WebKit/LayoutTests/media/video-delay-load-event.html
+++ b/third_party/WebKit/LayoutTests/media/video-delay-load-event.html
@@ -5,7 +5,7 @@
<script src="media-file.js"></script>
<video id="video1"></video>
<video id="video2"></video>
-<video id="video3"><source></source></video>
+<video id="video3"></video>
<script>
async_test(function(t) {
assertVideoNoSrcNoLoad(document.getElementById("video1"));
@@ -14,9 +14,11 @@ async_test(function(t) {
video.src = findMediaFile("video", "content/test");
assertVideoSrcNoLoad(video);
- var source = document.querySelector("source");
+ var source = document.createElement("source");
source.src = findMediaFile("video", "content/test");
- assertVideoSrcNoLoad(document.getElementById("video3"));
+ var video3 = document.getElementById("video3");
+ video3.appendChild(source);
+ assertVideoSrcNoLoad(video3);
window.onload = t.step_func_done(function() {
assertVideoNoSrcNoLoad(document.getElementById("video1"));
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-source.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698