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