Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-line-endings-003.html
blobd18c9d6f5c61022cddbb766177172217e5169f8a
1 <html>
2 <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 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
21 <script>
23 function editingTest() {
24 for (i = 0; i < 8; i++)
25 moveSelectionForwardByCharacterCommand();
26 extendSelectionForwardByCharacterCommand();
27 copyCommand();
28 pasteCommand();
31 </script>
33 <title>Editing Test</title>
34 </head>
35 <body>
37 <div class="explanation">
38 <div class="scenario">
39 Tests:
40 <br>
41 Fix for this bug:
42 <a href="rdar://problem/4045511">&lt;rdar://problem/4045511&gt;</a> Copying and pasting end-of-paragraph selection puts insertion point in wrong place
43 </div>
44 <div class="expected-results">
45 Expected Results:
46 <br>
47 Should see two lines of text below, self-documenting themselves as "line one" and "line two". The insertion point must
48 be at the start of "line two".
49 </div>
50 </div>
52 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
53 <div id="test" class="editing">
54 <div>line one</div><div>line two</div>
55 </div>
56 </div>
58 <script>
59 runEditingTest();
60 </script>
62 </body>
63 </html>