Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-pre-001.html
blob95f2cc983a559a3db6e74a43013e23cf1e18ccea
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
18 </style>
19 </head>
20 <body>
21 <div class="explanation">
22 <div class="scenario">
23 Tests:
24 <br>
25 Copying and pasting content inside of a PRE tag. This test was created after fixing <A HREF="rdar://problem/3918056">3918056</A>.
26 </div>
27 <div class="expected-results">
28 Expected Results:
29 <br>
30 The PRE tag and the formatting of the text inside of the PRE should be maintained. Should see this content in the red box below:
31 <pre>foo
32 bar</pre>
33 </div>
34 </div>
36 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
37 <div id="test" class="editing">
38 <pre>foo
39 bar</pre>
40 </div>
41 </div>
42 <script src="../editing.js"></script>
43 <script>
45 function editingTest() {
46 extendSelectionForwardByLineCommand();
47 extendSelectionForwardByLineCommand();
48 cutCommand();
49 pasteCommand();
52 runDumpAsTextEditingTest();
53 </script>
54 </body>
55 </html>