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

Unified Diff: third_party/WebKit/LayoutTests/media/video-play-when-src-set-asynchronously.html

Issue 2910683003: A video tag should play content src is set asynchronously with preload is disabled.
Patch Set: A video tag should play content when src is set asynchronously ,while preload is disabled. Created 3 years, 5 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/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/video-play-when-src-set-asynchronously.html
diff --git a/third_party/WebKit/LayoutTests/media/video-play-when-src-set-asynchronously.html b/third_party/WebKit/LayoutTests/media/video-play-when-src-set-asynchronously.html
new file mode 100644
index 0000000000000000000000000000000000000000..3181e87a9fca1948fb9dee39d73e5b088bc46568
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/video-play-when-src-set-asynchronously.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<title>Test playback after setting src on a video with preoload='none'</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="media-file.js"></script>
+<video preload='none' ></video>
+<script>
+async_test(function(t) {
+ var video = document.querySelector("video");
+ video.play();
+ setTimeout(function() {
+ video.onplaying = t.step_func_done();
+ video.src = findMediaFile("video", "content/test");
+ }, 0);
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698