4 https://bugzilla.mozilla.org/show_bug.cgi?id=343596
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=343596">Mozilla Bug
343596</a>
15 <script id=
"foo"></script>
16 <div id=
"content" style=
"display: none">
20 <script class=
"testbody" type=
"text/javascript">
22 /** Test for Bug
343596 **/
24 SimpleTest.waitForExplicitFinish();
27 // Insert text into an empty script node that will cause a syntax error.
28 document.getElementById(
"foo").appendChild(document.createTextNode(
"("));
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);