On x86 compilers without fastcall, simulate it when invoking traces and un-simulate...
[wine-gecko.git] / content / media / video / test / test_autoplay.html
blob60de46abc2cde1dabe29af79ec23cfca878b4e23
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: autoplay attribute get</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 <video id='v2' autoplay></video><audio id='a2' autoplay></audio>
12 <pre id="test">
13 <script class="testbody" type="text/javascript">
14 var v1 = document.getElementById('v1');
15 var a1 = document.getElementById('a1');
16 var v2 = document.getElementById('v2');
17 var a2 = document.getElementById('a2');
18 ok(!v1.autoplay, "v1.autoplay should be false by default");
19 ok(!a1.autoplay, "v1.autoplay should be false by default");
20 ok(v2.autoplay, "v2.autoplay should be true");
21 ok(a2.autoplay, "v2.autoplay should be true");
23 v1.autoplay = true;
24 v1.autoplay = true;
25 ok(v1.autoplay, "video.autoplay not true");
26 ok(v1.autoplay, "audio.autoplay not true");
27 </script>
28 </pre>
29 </body>
30 </html>