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

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

Issue 456343002: Relanding 'Always notify the MediaPlayer of any seek' patch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 11 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..2198cbc434cf6a27f008e6fe8ea1d6d25ea67367
--- /dev/null
+++ b/LayoutTests/media/video-seek-to-current-position-expected.txt
@@ -0,0 +1,24 @@
+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(timeupdate)
+EVENT(seeked)
+
+EXPECTED (video.seeking == 'false') OK
+EXPECTED (video.currentTime == '1') OK
+RUN(video.currentTime = seekTime)
+EXPECTED (video.seeking == 'true') OK
+
+EVENT(timeupdate)
+EVENT(seeking)
+EVENT(timeupdate)
+EVENT(seeked)
+
+EXPECTED (video.seeking == 'false') OK
+EXPECTED (video.currentTime == '1') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698