robert@webkit.org | 8f6be6b | 2012-01-17 02:25:52 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style> |
| 4 | .c0 { display: table-caption; width: 0px; } |
| 5 | .c7 { float: right; padding-right: 100px; padding-bottom: 100px;} |
| 6 | </style> |
| 7 | <script> |
rniwa@webkit.org | 224c8b5 | 2012-08-04 01:13:22 +0000 | [diff] [blame] | 8 | if (window.testRunner) { |
| 9 | testRunner.waitUntilDone(); |
robert@webkit.org | 8f6be6b | 2012-01-17 02:25:52 +0000 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | var nodes = Array(); |
| 13 | |
| 14 | function tryToCrash() |
| 15 | { |
| 16 | try { nodes[91].appendChild(nodes[39]); } catch(e) {} |
rniwa@webkit.org | 224c8b5 | 2012-08-04 01:13:22 +0000 | [diff] [blame] | 17 | setTimeout('testRunner.notifyDone();',1000); |
robert@webkit.org | 8f6be6b | 2012-01-17 02:25:52 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | function boom() { |
| 21 | try { nodes[8] = document.createElement('dfn'); } catch(e) {} |
| 22 | try { nodes[8].setAttribute('class', 'c7'); } catch(e) {} |
| 23 | try { nodes[30] = document.createElement('span'); } catch(e) {} |
| 24 | try { nodes[39] = document.createElement('strong'); } catch(e) {} |
| 25 | try { nodes[69] = document.createElement('header'); } catch(e) {} |
| 26 | try { nodes[39].appendChild(nodes[69]); } catch(e) {} |
| 27 | try { nodes[89] = document.createElement('nav'); } catch(e) {} |
| 28 | try { nodes[89].setAttribute('class', 'c0'); } catch(e) {} |
| 29 | try { document.documentElement.appendChild(nodes[89]); } catch(e) {} |
| 30 | try { nodes[91] = document.createElement('form'); } catch(e) {} |
| 31 | try { nodes[91].setAttribute('class', 'c0'); } catch(e) {} |
| 32 | try { document.documentElement.appendChild(nodes[91]); } catch(e) {} |
| 33 | try { nodes[89].appendChild(nodes[8]); } catch(e) {} |
| 34 | setTimeout('try { nodes[30].appendChild(nodes[89]); } catch(e) {}', 4); |
| 35 | setTimeout('tryToCrash();', 0); |
| 36 | } |
| 37 | </script> |
| 38 | </head> |
| 39 | <body onLoad="setTimeout('boom();',0)"> |
| 40 | Passes if it doesn't crash! |
| 41 | </body> |
| 42 | </html> |