| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script> | |
| 3 var ex = false; | |
| 4 var doc; | |
| 5 var count = 0; | |
| 6 | |
| 7 if (window.testRunner) | |
| 8 testRunner.waitUntilDone(); | |
| 9 | |
| 10 function start() { | |
| 11 if (location.hash == "") { | |
| 12 location.hash = "#0"; | |
| 13 } else { | |
| 14 count = parseInt(location.hash.substring(1)); | |
| 15 if (count >= 5) { | |
| 16 document.write('PASS'); | |
| 17 if (window.testRunner) { | |
| 18 testRunner.dumpAsText(); | |
| 19 testRunner.notifyDone(); | |
| 20 } | |
| 21 return; | |
| 22 } | |
| 23 } | |
| 24 | |
| 25 doc = document.documentElement; | |
| 26 mq1 = document.createElement('marquee'); | |
| 27 var iframe = document.createElement('iframe'); | |
| 28 iframe.src = "nonexistent"; | |
| 29 | |
| 30 doc.appendChild(iframe); | |
| 31 mq2 = mq1.cloneNode(false); | |
| 32 | |
| 33 iframe.onload = iframe_onload; | |
| 34 setTimeout('start_pause1()', 100); | |
| 35 } | |
| 36 | |
| 37 function start_pause1() { | |
| 38 document.removeChild(doc); | |
| 39 document.appendChild(doc); | |
| 40 setTimeout('start_pause2()', 100); | |
| 41 } | |
| 42 | |
| 43 function start_pause2() { | |
| 44 document.removeChild(doc); | |
| 45 gc(); | |
| 46 document.appendChild(doc); | |
| 47 location.hash = '#' + ++count; | |
| 48 location.reload(); | |
| 49 } | |
| 50 | |
| 51 function iframe_onload() { | |
| 52 if (ex) | |
| 53 return; | |
| 54 ex = true; | |
| 55 | |
| 56 var iframe = document.createElement('iframe'); | |
| 57 iframe.src='resources/marquee-crash.svg'; | |
| 58 doc.appendChild(iframe); | |
| 59 } | |
| 60 </script> | |
| 61 <body onload="start()"></body> | |
| OLD | NEW |