Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-not-paused-while-looping.html
blobe40e87767e77242e69c6a8c8326d08eac30331c6
1 <!DOCTYPE html>
2 <title>video is not paused while looping</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="w3c-media-utils.js"></script>
6 <video controls loop></video>
7 <script>
8 async_test(function(test) {
9 var video = document.querySelector('video');
11 // Seek to near the end.
12 video.onloadeddata = test.step_func(function() {
13 waitForEventAndRunStep('seeked', video, seeked, test);
14 video.currentTime = video.duration - 0.4;
15 });
17 video.src = getVideoURI("test");
19 // Verify video is not paused.
20 function seeking() {
21 assert_equals(video.paused, false, 'paused');
22 test.done();
25 // Play the video and wait for playback to loop.
26 function seeked() {
27 waitForEventAndRunStep('seeking', video, seeking, test);
28 video.play();
30 });
31 </script>