Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: seek test 2</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <video id='v'></video>
10 <pre id="test">
11 <script class="testbody" type="text/javascript">
12 // http://www.whatwg.org/specs/web-apps/current-work/#dom-media-seek
13 // If the media element's readyState is HAVE_NOTHING, then the user agent
14 // must raise an InvalidStateError exception.
15 var v = document.getElementById('v');
16 var passed = false;
18 ok(v.readyState == HTMLMediaElement.HAVE_NOTHING,
19 "Invalid ready state in media element");
21 try {
22 v.seek(1);
23 }
24 catch(e) {
25 passed = true;
26 }
28 ok(passed, "Video did not raise error during invalid seek");
29 </script>
30 </pre>
31 </body>
32 </html>