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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-seek-no-src.html

Issue 2091973003: Convert video-seek* 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 unified diff | Download patch
OLDNEW
1 <html> 1 <!DOCTYPE HTML>
2 <body> 2 <title>Test that seeking video with no "src" attribute, sets default playback st art position to that time.</title>
3 3 <script src="../resources/testharness.js"></script>
4 <video loop controls></video> 4 <script src="../resources/testharnessreport.js"></script>
5 5 <video></video>
6 <p>Test that seeking video with no 'src' attribute sets default playback sta rt position to that time.</p> 6 <script>
7 7 test(function() {
8 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 8 var video = document.querySelector("video");
9 (Please avoid writing new tests using video-test.js) --> 9 assert_equals(video.networkState, HTMLMediaElement.NETWORK_EMPTY);
10 <script src=video-test.js></script> 10 assert_equals(video.readyState, HTMLMediaElement.HAVE_NOTHING);
11 <script> 11 video.currentTime = 1.1;
12 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); 12 assert_equals(video.currentTime, 1.1);
13 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); 13 });
14 video.currentTime = 1.1; 14 </script>
15 testExpected("video.currentTime", 1.1);
16 endTest();
17 </script>
18
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698