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

Unified Diff: LayoutTests/media/video-buffered-unknown-duration-expected.txt

Issue 499513002: Add layout test and test media for infinite duration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments. Created 6 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
« no previous file with comments | « LayoutTests/media/video-buffered-unknown-duration.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-buffered-unknown-duration-expected.txt
diff --git a/LayoutTests/media/video-buffered-unknown-duration-expected.txt b/LayoutTests/media/video-buffered-unknown-duration-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e33251ab56d2ede3769d7c774bf83a7500d4aaae
--- /dev/null
+++ b/LayoutTests/media/video-buffered-unknown-duration-expected.txt
@@ -0,0 +1,15 @@
+Load a video with an infinite duration. Start playback and ensure video.currentTime < video.buffered.end(0) upon first timeupdate.
+
+EVENT(loadeddata)
+EXPECTED (video.buffered.length == '1') OK
+EXPECTED (video.buffered.start(0) >= '0') OK
+EXPECTED (video.buffered.end(0) != 'Infinity') OK
+EXPECTED (video.currentTime == '0') OK
+EXPECTED (video.duration == 'Infinity') OK
+EVENT(timeupdate)
+EXPECTED (video.duration == 'Infinity') OK
+EXPECTED (video.buffered.start(0) >= '0') OK
+EXPECTED (video.buffered.end(0) < '10') OK
+TEST(video.currentTime <= video.buffered.end(0)) OK
+END OF TEST
+
« no previous file with comments | « LayoutTests/media/video-buffered-unknown-duration.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698