OLD | NEW |
---|---|
(Empty) | |
1 <!-- <!DOCTYPE html> - This test is run in quirks mode. --> | |
2 <style> | |
3 .float { float: right; } | |
4 </style> | |
5 <script> | |
6 var docElement = document.documentElement; | |
7 function runTest() { | |
8 docElement.appendChild(foo); | |
9 style = document.createElementNS("http://www.w3.org/TR/REC-html40", "style") ; | |
10 docElement.appendChild(style); | |
11 text = document.createTextNode("uuO,*MkR41 KE? , Wm?_8)}ej 0r{H!= ^.Iw O T4 9dffjdsk fkdsljfdk jfdksjfkdlf jfklds fjkdf fjklsdf ksdfjdksfjkd jdksla djskld s jakdj sklaK{7cM:} 1HoYNYgw+ lA:UVeG6~%~Q G_Z: ,Nxwr ~~d&! ILugpV4yR 7Q=zX iFhmm2 ;WSubT4o0 t` -F=. qsDYER U6Pm({x g=Q O, .V Au : ] ;/X57^{ k14[1p%{))k T-X. 1h%{T J$%~ u@ hHcWwy`CO( $3Dd"); | |
12 docElement.appendChild(text); | |
13 form = document.createElement("form"); | |
14 form.setAttribute("class", "float"); | |
15 docElement.appendChild(form); | |
16 setTimeout("attemptToCrash()"); | |
17 } | |
18 document.addEventListener("DOMContentLoaded", runTest, false); | |
19 function attemptToCrash() { | |
20 caption = document.createElement("figcaption"); | |
21 caption.setAttribute("class", "float"); | |
22 style.appendChild(caption); | |
23 span = document.createElement("span"); | |
24 foo.parentNode.appendChild(span); | |
25 } | |
26 </script> | |
27 <foo id="foo"></foo> | |
28 <p>crbug.com/449986: A float inserted into a clean line should dirty the line ot herwise it may avoid layout. </p> | |
29 <div id="result">Test passes if it does not crash.</div> | |
30 <script> | |
31 if (window.testRunner) { | |
leviw_travelin_and_unemployed
2015/07/07 21:09:28
Nit: unnecessary braces
| |
32 testRunner.dumpAsText(); | |
33 } | |
34 </script> | |
OLD | NEW |