Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-associated-element-crash2.html
blob39d310a2f508185453d9579f4af3c1878f8cacbb
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function gc() {
10 var array = [];
11 for (var i = 0x30000; i--; )
12 if (!(Math.round(Math.random() * 20)))
13 array = [];
14 else
15 array.push(new String(Math.random()))
18 function test()
20 var element = document.createElement('input');
21 element.setAttribute('form', 'form1');
22 var div = document.createElement('div');
23 div.appendChild(element);
24 element.removeAttribute('form');
25 div.innerHTML = '';
26 element = 0;
27 gc();
28 setTimeout(delay, 0);
31 function delay()
33 var form = document.createElement('form');
34 form.setAttribute('id', 'form2');
35 document.body.appendChild(form);
36 location.reload();
37 if (window.testRunner)
38 testRunner.notifyDone();
40 </script>
41 </head>
42 <body onload="test()">
43 <p>
44 This page is a test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=51905">Bug 51905</a>. WebKit should not crash when this page is loaded.
45 </p>
46 PASS
47 </body>
48 </html>