7 testRunner
.dumpAsText();
9 var edit
= document
.getElementById("edit");
10 while (edit
.nextSibling
)
11 edit
.nextSibling
.parentNode
.removeChild(edit
.nextSibling
);
13 var source
= document
.getElementById("source");
14 var selection
= getSelection();
16 selection
.collapse(source
.firstChild
, 5);
17 selection
.modify("extend", "forward", "word");
19 document
.execCommand("Copy");
21 document
.execCommand("SelectAll");
22 document
.execCommand("Paste");
26 <body onload=
"test()">
28 Test for
<i><a href=
"rdar://problem/6864786">rdar://problem/
6864786</a>: REGRESSION: Crash below ApplyStyleCommand::applyInlineStyleToRange when reviewing a patch in Bugzilla
</i>.
31 The test passes if it does not crash.
33 <div id=
"source" style=
"font-size: 36px">Copy the second word in this sentence.
</div>
34 <pre id=
"edit" style=
"-webkit-user-modify: read-write-plaintext-only;">Select All here and paste
<br></pre>