Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / media / video / test / test_seek2.html
blob93f855495372457ca5a0f3bbfba3a8b2673f0f50
1 <!DOCTYPE HTML>
2 <html>
3 <head>
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" />
8 </head>
9 <body>
10 <video id='v'></video>
11 <pre id="test">
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');
17 var passed = false;
19 ok(v.readyState == HTMLMediaElement.HAVE_NOTHING,
20 "Invalid ready state in media element");
22 try {
23 v.seek(1);
25 catch(e) {
26 passed = true;
29 ok(passed, "Video did not raise error during invalid seek");
30 </script>
31 </pre>
32 </body>
33 </html>