Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / base / test / test_bug371576-5.html
blobe3074403e5a0f59849d8b522b968503606d451b1
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=371576
5 -->
6 <head id="head">
7 <title>Test for Bug 371576</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" />
12 <script>
13 SimpleTest.waitForExplicitFinish();
15 addLoadEvent(
16 function doe(){
17 var x=document.createElement('script');
18 x.src='data:text/html,var scr=document.createElement("script");\
19 scr.innerHTML = "function doe3(){$(\'display\').innerHTML = \'You should see this text\';}";\
20 $("head").appendChild(scr);';
21 x.onload= function (){
22 doe3();
23 ok(true,"function doe3 is defined, and the body content has been replaced.");
24 is($("display").textContent, "You should see this text", "text set properly");
25 SimpleTest.finish();
27 $('head').appendChild(x);
30 </script>
32 </head>
33 <body>
34 <p id="display">You shouldn't see this</p>
35 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=371576">Mozilla Bug 371576</a>
36 </body>
37 </html>