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

Unified Diff: LayoutTests/media/video-seek-to-current-position-expected.txt

Issue 340553004: Always notify the MediaPlayer of any seek. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/media/video-seek-to-current-position-expected.txt
diff --git a/LayoutTests/media/video-seek-to-current-position-expected.txt b/LayoutTests/media/video-seek-to-current-position-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..59de628e31f190f87d9b54d14097afd797c9cc0e
--- /dev/null
+++ b/LayoutTests/media/video-seek-to-current-position-expected.txt
@@ -0,0 +1,29 @@
+Test that seeking attribute is true immediately after a seek to the current position, and goes back to false when the seek completes.
+
+EVENT(loadedmetadata)
+RUN(video.currentTime = seekTime)
+EXPECTED (video.seeking == 'true') OK
+
+EVENT(seeking)
+EVENT(seeked)
+
+EXPECTED (video.seeking == 'false') OK
+EXPECTED (video.currentTime == '1') OK
+RUN(video.currentTime = seekTime)
+EXPECTED (video.seeking == 'true') OK
+
+EVENT(seeking)
+EVENT(seeked)
+
+EXPECTED (video.seeking == 'false') OK
+EXPECTED (video.currentTime == '1') OK
+RUN(video.currentTime = seekTime)
+EXPECTED (video.seeking == 'true') OK
+
+EVENT(seeking)
+EVENT(seeked)
+
+EXPECTED (video.seeking == 'false') OK
+EXPECTED (video.currentTime == '1') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698