Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-pre-002.html
blob61b5150b4828d5e5fdbcc8bec1e97f515211e860
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div class="explanation">
5 This is a layout test for <a href="rdar://problem/4370209">rdar://problem/4370209</a> "Reproducible crash when pasting over whitespace:pre text".
6 The text below is selected, copied, and pasted over itself. You'll see foo/nbar if successful.
7 </div>
8 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
9 <div id="test" class="editing">
10 <pre>foo
11 bar</pre>
12 </div>
13 </div>
14 <script src="../editing.js"></script>
15 <script>
17 function editingTest() {
18 selectAllCommand();
19 copyCommand();
20 pasteCommand();
23 runDumpAsTextEditingTest();
24 </script>
25 </body>
26 </html>