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

Unified Diff: LayoutTests/media/video-preload-expected.txt

Issue 313173008: Allow load if play() is immediately called when preload == 'none' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 | « LayoutTests/media/video-preload.html ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-preload-expected.txt
diff --git a/LayoutTests/media/video-preload-expected.txt b/LayoutTests/media/video-preload-expected.txt
index 874e49969d453321b6dd8700afb2237522639391..2f90a289d03ed94ae3065546279c5584e8ff0f5b 100644
--- a/LayoutTests/media/video-preload-expected.txt
+++ b/LayoutTests/media/video-preload-expected.txt
@@ -11,9 +11,27 @@ EVENT(play)
EVENT(loadedmetadata)
buffered automatically OK
+Will load with 'preload=none', should buffer automatically because 'load()' is called
+RUN(video.setAttribute('preload', 'none'))
+RUN(video.removeAttribute('autoplay'))
+RUN(video.load())
+EVENT(loadstart)
+EVENT(loadedmetadata)
+buffered automatically OK
+
+Will load with 'preload=none', should buffer automatically because 'play()' is called
+RUN(video.setAttribute('preload', 'none'))
+RUN(video.removeAttribute('autoplay'))
+RUN(video.play())
+EVENT(play)
+EVENT(loadstart)
+EVENT(loadedmetadata)
+buffered automatically OK
+
Will load with 'preload=metadata', should buffer automatically
RUN(video.setAttribute('preload', 'metadata'))
RUN(video.removeAttribute('autoplay'))
+RUN(video.load())
EVENT(loadstart)
EVENT(loadedmetadata)
buffered automatically OK
@@ -21,6 +39,7 @@ buffered automatically OK
Will load with 'preload=auto', should buffer automatically
RUN(video.setAttribute('preload', 'auto'))
RUN(video.removeAttribute('autoplay'))
+RUN(video.load())
EVENT(loadstart)
EVENT(loadedmetadata)
buffered automatically OK
@@ -28,6 +47,7 @@ buffered automatically OK
Will load with 'preload=none', should buffer automatically because of 'autoplay'
RUN(video.setAttribute('preload', 'none'))
RUN(video.setAttribute('autoplay', 'true'))
+RUN(video.load())
EVENT(loadstart)
EVENT(loadedmetadata)
buffered automatically OK
« no previous file with comments | « LayoutTests/media/video-preload.html ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698