On x86 compilers without fastcall, simulate it when invoking traces and un-simulate...
[wine-gecko.git] / content / media / video / test / test_readyState.html
blob5d94eeb9933a0995fd329722a471600e7626dcc1
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: readyState</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='v1'></video><audio id='a1'></audio>
11 <pre id="test">
12 <script class="testbody" type="text/javascript">
13 var v1 = document.getElementById('v1');
14 var a1 = document.getElementById('a1');
15 var passed = true;
17 is(v1.readyState, 0);
18 is(a1.readyState, 0);
20 try {
21 v1.readyState = 0;
22 a1.readyState = 0;
23 passed = false;
24 } catch(e) { }
25 ok(passed, "Should not be able to set readyState (readonly attribute)");
27 </script>
28 </pre>
29 </body>
30 </html>