Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug731471.html
blobe74b07734a7e780608c042346cb8d29eeae5b058
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=731471
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 731471</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body onload="setTimeout(boom, 0);">
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=731471">Mozilla Bug 731471</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 731471. This is effectively a crashtest, but it uses window.open, which
22 doesn't work in the crashtest harness. **/
23 SimpleTest.waitForExplicitFinish();
24 SimpleTest.requestFlakyTimeout("untriaged");
25 function boom()
27 w = window.open("file_bug731471.html");
28 setTimeout(function() {
29 w.document.write("2");
30 w.document.close();
31 w.document.write("3 - Done");
32 w.document.close();
33 w.close();
34 ok(true, "Didn't assert!");
35 SimpleTest.finish();
36 }, 400);
39 </script>
40 </pre>
41 </body>
42 </html>