Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / layout-during-move-selection-crash.html
bloba99a587f6447992bbcfe76a5e2213a4e6a1d0826
1 <!DOCTYPE html>
2 <html>
3 <span id=span1></span><button id=button1>button</button>
4 <style>
5 .embedStyle { min-height: 13pc; -webkit-transition: 10s; }
6 </style>
7 <script>
8 function runTest() {
9 div1 = document.createElement("div");
10 document.body.appendChild(div1);
11 embed1 = document.createElementNS("http://www.w3.org/1999/xhtml", "embed");
12 document.body.offsetTop;
13 embed1.setAttribute("class", "embedStyle");
14 span1.appendChild(embed1);
15 embed1.setAttribute("type", "block");
16 document.body.offsetTop;
17 r = document.createRange();
18 r.setStart(button1, 0);
19 r.setEnd(div1, div1.childNodes.length);
20 window.getSelection().addRange(r);
21 o = r.extractContents();
22 document.body.appendChild(o);
23 window.getSelection().modify("move", "Right", "character");
25 if (window.testRunner) testRunner.dumpAsText();
27 document.addEventListener("DOMContentLoaded", runTest, false);
28 </script>PASS, if no crash or assert in debug
29 </html>