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

Side by Side Diff: LayoutTests/media/video-not-paused-while-looping.html

Issue 585563003: Layout test to test that video should not be in a paused state while looping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test expectations due to Logs in waitForEventAndRunStep() call Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/media/video-not-paused-while-looping-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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');
10
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 });
16
17 video.src = getVideoURI("test");
18
19 // Verify video is not paused.
20 function seeking() {
21 assert_equals(video.paused, false, 'paused');
22 test.done();
23 }
24
25 // Play the video and wait for playback to loop.
26 function seeked() {
27 waitForEventAndRunStep('seeking', video, seeking, test);
28 video.play();
29 }
30 });
31 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/video-not-paused-while-looping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698