Index: LayoutTests/media/video-not-paused-while-looping.html |
diff --git a/LayoutTests/media/video-not-paused-while-looping.html b/LayoutTests/media/video-not-paused-while-looping.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e40e87767e77242e69c6a8c8326d08eac30331c6 |
--- /dev/null |
+++ b/LayoutTests/media/video-not-paused-while-looping.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<title>video is not paused while looping</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="w3c-media-utils.js"></script> |
+<video controls loop></video> |
+<script> |
+async_test(function(test) { |
+ var video = document.querySelector('video'); |
+ |
+ // Seek to near the end. |
+ video.onloadeddata = test.step_func(function() { |
+ waitForEventAndRunStep('seeked', video, seeked, test); |
+ video.currentTime = video.duration - 0.4; |
+ }); |
+ |
+ video.src = getVideoURI("test"); |
+ |
+ // Verify video is not paused. |
+ function seeking() { |
+ assert_equals(video.paused, false, 'paused'); |
+ test.done(); |
+ } |
+ |
+ // Play the video and wait for playback to loop. |
+ function seeked() { |
+ waitForEventAndRunStep('seeking', video, seeking, test); |
+ video.play(); |
+ } |
+}); |
+</script> |