Bug 422974 ? Prism uses old "Remember password?" mechanism. r=gavin
[wine-gecko.git] / content / base / test / test_bug343596.html
blob5e736b7e65154d3a2d9c917f761b4214de843e5e
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 /** Cut error handling, because we're going to throw on purpose**/
27 var errorHandler = window.onerror;
28 window.onerror = null;
31 try{
32 // Insert text into an empty script node that will cause a syntax error.
33 document.getElementById("foo").appendChild(document.createTextNode("("));
35 catch(ex){
36 // Note that this catch block does not execute.
37 ok(false, "this catch block should not execute");
40 setTimeout(function(){
41 ok(true,"setTimeout still executes after bogus script insertion");
42 window.error = errorHandler;
43 SimpleTest.finish();}, 200);
48 </script>
49 </pre>
50 </body>
51 </html>