blob: 381350d13dd95578f024f32ec7d6b568d6cd3d08 [file] [log] [blame]
commit-queue@webkit.org905d2cb2014-02-15 18:00:22 +00001<!DOCTYPE html>
2<html>
3 <head>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
6 <script>
7 function start()
8 {
9 findMediaElement();
10 video.src = findMediaFile("video", "content/test");
11 waitForEventOnce('canplaythrough', canPlayThrough);
12 }
13
14 function canPlayThrough()
15 {
16 testDOMException("video.currentTime = 3", "DOMException.INVALID_STATE_ERR");
17 endTest();
18 }
19 </script>
20 </head>
21 <body onload="start()">
22 <video mediaGroup="group" controls></video>
23 <p>Test that seeking video with media controller throws invalid state exception.</p>
24 </body>
25</html>