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

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 src is set asynchronously with preload is disabled. Created 3 years, 6 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..7245ffbcbd870ac927460fe263ea1a18ecd7c969
--- /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>
+var testobject = async_test(function(t) {
Srirama 2017/07/07 09:59:27 you can remove var testobject.
George Joseph 2017/07/10 06:58:45 Done.
+ var video = document.querySelector("video");
+ video.play();
+ setTimeout(function() {
+ video.onplaying = t.step_func(function() {t.done()});
Srirama 2017/07/07 09:59:28 use t_step_func_done();
George Joseph 2017/07/10 06:58:44 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