On x86 compilers without fastcall, simulate it when invoking traces and un-simulate...
[wine-gecko.git] / content / media / video / test / test_playbackRate.html
blob39ea480f1eeca379f60f4bdec8ec3fb356b03a03
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: playbackRate</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.playbackRate, 1);
18 is(a1.playbackRate, 1);
20 v1.playbackRate = 2.5;
21 a1.playbackRate = 2.5;
22 is(v1.playbackRate, 2.5);
23 is(a1.playbackRate, 2.5);
25 try {
26 v1.playbackRate = 0
27 a1.playbackRate = 0
28 passed = false;
29 } catch(e) { }
30 todo(passed, "Should not be able to set playbackRate to 0");
32 </script>
33 </pre>
34 </body>
35 </html>