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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-pause-immediately.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test pause() pauses the clock immediately</title> 3 <title>Test pause() pauses the clock immediately</title>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 7 <script src=video-test.js></script>
6 <script> 8 <script>
7 var timeAfterPause; 9 var timeAfterPause;
8 10
9 function test() 11 function test()
10 { 12 {
11 findMediaElement(); 13 findMediaElement();
12 video.src = findMediaFile("video", "content/test"); 14 video.src = findMediaFile("video", "content/test");
13 waitForEvent("canplay", canplay); 15 waitForEvent("canplay", canplay);
14 waitForEvent("playing", playing); 16 waitForEvent("playing", playing);
(...skipping 25 matching lines...) Expand all
40 testExpected("(video.played.end(0) - timeAfterPause)", 0); 42 testExpected("(video.played.end(0) - timeAfterPause)", 0);
41 endTest(); 43 endTest();
42 } 44 }
43 </script> 45 </script>
44 </head> 46 </head>
45 <body onload="test()"> 47 <body onload="test()">
46 <p>Test that pausing the media element has an immediate effect on the cl ock.</p> 48 <p>Test that pausing the media element has an immediate effect on the cl ock.</p>
47 <video controls></video> 49 <video controls></video>
48 </body> 50 </body>
49 </html> 51 </html>
50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698