Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / marquee-clone-crash.html
blob91e322ae16c15c2e0dd4fde71c41a2603ccec2a0
1 <!DOCTYPE html>
2 <script>
3 var ex = false;
4 var doc;
5 var count = 0;
7 if (window.testRunner)
8 testRunner.waitUntilDone();
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();
21 return;
25 doc = document.documentElement;
26 mq1 = document.createElement('marquee');
27 var iframe = document.createElement('iframe');
28 iframe.src = "nonexistent";
30 doc.appendChild(iframe);
31 mq2 = mq1.cloneNode(false);
33 iframe.onload = iframe_onload;
34 setTimeout('start_pause1()', 100);
37 function start_pause1() {
38 document.removeChild(doc);
39 document.appendChild(doc);
40 setTimeout('start_pause2()', 100);
43 function start_pause2() {
44 document.removeChild(doc);
45 gc();
46 document.appendChild(doc);
47 location.hash = '#' + ++count;
48 location.reload();
51 function iframe_onload() {
52 if (ex)
53 return;
54 ex = true;
56 var iframe = document.createElement('iframe');
57 iframe.src='resources/marquee-crash.svg';
58 doc.appendChild(iframe);
60 </script>
61 <body onload="start()"></body>