4 <title>Media test: seek test
2</title>
5 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
10 <video id='v'
></video>
12 <script class=
"testbody" type=
"text/javascript">
13 // http://www.whatwg.org/specs/web-apps/current-work/#dom-media-seek
14 // If the media element's readyState is HAVE_NOTHING, then the user agent
15 // must raise an INVALID_STATE_ERR exception.
16 var v = document.getElementById('v');
19 ok(v.readyState == HTMLMediaElement.HAVE_NOTHING,
20 "Invalid ready state in media element");
29 ok(passed,
"Video did not raise error during invalid seek");