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

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

Issue 517593003: Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 3
4 <video loop controls></video> 4 <video loop controls></video>
5 5
6 <p>Test that seeking video with no 'src' attribute throws an INVALID_STATE_E RR exception.</p> 6 <p>Test that seeking video with no 'src' attribute sets default playback sta rt position to that time.</p>
7 7
8 <script src=video-test.js></script> 8 <script src=video-test.js></script>
9 <script> 9 <script>
10 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); 10 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
11 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); 11 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING);
12 testDOMException("video.currentTime = 1.1", "DOMException.INVALID_STATE_ ERR"); 12 video.currentTime = 1.1;
13 setTimeout(endTest, 200) 13 testExpected("video.currentTime", 1.1);
14 endTest();
14 </script> 15 </script>
15 16
16 </body> 17 </body>
17 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698