Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / multiple-captions-crash3.html
blob31f49c00057dfde973166cdefce4106baa890086
1 <html>
2 <head>
3 <style>
4 .c2 { display: table-caption; position: relative; }
5 .c9 { visibility: collapse; height: 65536px; }
6 .c15 { display: inline; float: right;}
7 </style>
8 <script>
9 if (window.testRunner) {
10 testRunner.waitUntilDone();
13 var nodes = Array();
15 function tryToCrash()
17 document.execCommand("SelectAll", false, "");
18 setTimeout('testRunner.notifyDone();',1000);
21 function boom() {
22 try { nodes[3] = document.createElement('tbody'); } catch(e) {}
23 try { nodes[3].setAttribute('class', 'c2'); } catch(e) {}
24 try { document.documentElement.appendChild(nodes[3]); } catch(e) {}
25 try { nodes[4] = document.createElement('col'); } catch(e) {}
26 try { nodes[4].setAttribute('class', 'c15'); } catch(e) {}
27 try { nodes[3].appendChild(nodes[4]); } catch(e) {}
28 try { nodes[6] = document.createElement('keygen'); } catch(e) {}
29 try { nodes[6].setAttribute('class', 'c2'); } catch(e) {}
30 try { document.documentElement.appendChild(nodes[6]); } catch(e) {}
31 try { nodes[8] = document.createElement('a'); } catch(e) {}
32 try { nodes[4].appendChild(nodes[8]); } catch(e) {}
33 try { nodes[21] = document.createElement('tr'); } catch(e) {}
34 try { nodes[21].setAttribute('class', 'c9'); } catch(e) {}
35 try { nodes[8].appendChild(nodes[21]); } catch(e) {}
36 try { nodes[29] = document.createElement('caption'); } catch(e) {}
37 setTimeout('try { nodes[29].appendChild(nodes[4]); } catch(e) {}', 561);
38 setTimeout('window.scrollBy(-37, 59);', 203);
39 setTimeout('tryToCrash();', 402);
41 </script>
42 </head>
43 <body onLoad="setTimeout('boom();',0)">
44 Passes if it doesn't crash!
45 </body>
46 </html>