On x86 compilers without fastcall, simulate it when invoking traces and un-simulate...
[wine-gecko.git] / content / media / video / test / test_bug448534.html
bloba3ec966233c41ae918bddb29f43caeed295b9370
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=448534
5 -->
7 <head>
8 <title>Test for Bug 448534</title>
9 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
10 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=448535">Mozilla Bug 448534</a>
15 <!-- Ogg video obtained from Theora test suite: http://v2v.cc/~j/theora_testsuite/ -->
16 <video id='v'
17 src='320x240.ogg'
18 onplay='return started();'
19 onpause='return stopped();'></video>
20 <pre id="test">
21 <script class="testbody" type="text/javascript">
22 var v = $('v');
23 var played = false;
24 var passed = false;
25 function started() {
26 ok(!v.paused, "Video should not be paused while playing");
27 v.parentNode.removeChild(v);
28 played = true;
29 return false;
32 function stopped() {
33 ok(v.paused, "Video should be paused after removing from the Document");
34 passed = true;
35 return false;
38 setTimeout(function () {
39 ok(played, "Video did not send play event");
40 ok(passed, "Video was not paused when removed from the Document");
41 SimpleTest.finish();
42 return false;
43 }, 6000);
45 v.play();
47 SimpleTest.waitForExplicitFinish();
48 </script>
49 </pre>
50 </body>
51 </html>