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

Unified Diff: third_party/WebKit/LayoutTests/media/video-loop-expected.txt

Issue 2124223002: Convert video-[loop, double]* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/LayoutTests/media/video-loop-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/video-loop-expected.txt b/third_party/WebKit/LayoutTests/media/video-loop-expected.txt
deleted file mode 100644
index 2e5fa758000e390c2a127da59b7d005fb2672745..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/video-loop-expected.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-Test looping by:
-
-Play to end with 'loop' set to true.
-When 'seeked' event fires, verify that time has jumped back and movie is playing.
-Set 'loop' to false and play again.
-Verify that 'ended' event fires.
-++ Test setting/removing the attribute.
-EXPECTED (video.getAttribute('loop') == 'null') OK
-EXPECTED (video.loop == 'false') OK
-RUN(video.loop = true)
-EXPECTED (video.loop == 'true') OK
-EXPECTED (video.getAttribute('loop') != 'null') OK
-RUN(video.removeAttribute('loop'))
-EXPECTED (video.loop == 'false') OK
-
-++ Set 'loop' to true and begin playing.
-RUN(video.loop = true)
-
-EVENT(play)
-
-++ seek to near the end, wait for 'seeked' event to announce loop.
-EXPECTED (video.paused == 'false') OK
-RUN(video.pause())
-RUN(video.currentTime = video.duration - 0.4)
-
-EVENT(pause)
-EVENT(seeked)
-
-++ first seek completed, beginning playback.
-EXPECTED (video.paused == 'true') OK
-EXPECTED (video.ended == 'false') OK
-RUN(video.play())
-
-EVENT(play)
-EVENT(seeked)
-
-++ second seek completed because video looped, toggle 'loop' and seek to near end again.
-EXPECTED (video.paused == 'false') OK
-EXPECTED (video.ended == 'false') OK
-RUN(video.pause())
-EXPECTED (mediaElement.currentTime >= '0') OK
-EXPECTED (mediaElement.currentTime < 'mediaElement.duration') OK
-RUN(video.loop = false)
-RUN(video.currentTime = video.duration - 0.4)
-
-EVENT(pause)
-EVENT(seeked)
-
-++ third seek completed, beginning playback for the last time.
-EXPECTED (video.paused == 'true') OK
-EXPECTED (video.ended == 'false') OK
-RUN(video.play())
-
-EVENT(play)
-EVENT(pause)
-EVENT(ended)
-
-++ played to end and stopped.
-EXPECTED (video.ended == 'true') OK
-EXPECTED (mediaElement.currentTime == 'mediaElement.duration') OK
-
-END OF TEST
-
« no previous file with comments | « third_party/WebKit/LayoutTests/media/video-loop.html ('k') | third_party/WebKit/LayoutTests/media/video-loop-from-ended.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698