Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / testing / mochitest / tests / test_bug343596.html
blob8ce10257a47dde8ced133471f52e3cb67f208b20
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=343596
5 -->
6 <head>
7 <title>Test for Bug 343596</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=343596">Mozilla Bug 343596</a>
14 <p id="display"></p>
15 <script id="foo"></script>
16 <div id="content" style="display: none">
18 </div>
19 <pre id="test">
20 <script class="testbody" type="text/javascript">
22 /** Test for Bug 343596 **/
24 SimpleTest.waitForExplicitFinish();
26 try{
27 // Insert text into an empty script node that will cause a syntax error.
28 document.getElementById("foo").appendChild(document.createTextNode("("));
30 catch(ex){
31 // Note that this catch block does not execute.
32 ok(false, "this catch block should not execute");
35 setTimeout(function(){ok(true,"setTimeout still executes after bogus script insertion"); SimpleTest.finish();}, 200);
40 </script>
41 </pre>
42 </body>
43 </html>