Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-at-paragraph-boundaries-010.html
blobc561175ecec7925c9e3429bb056476a0f836da44
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 moveSelectionForwardByLineCommand();
25 moveSelectionForwardByLineCommand();
26 moveSelectionForwardByLineCommand();
27 extendSelectionForwardByLineCommand();
28 for (i = 0; i < 2; i++)
29 extendSelectionForwardByCharacterCommand();
30 deleteCommand();
33 </script>
35 <title>Editing Test</title>
36 </head>
37 <body>
39 <div class="explanation">
40 <div class="scenario">
41 Tests:
42 <br>
43 Deleting when a selection starts at the beginning of a text following a nested block, and extends out of the enclosing block into the following block.
44 <br>
45 FIXME: Currently broken! See rdar://problem/4099839/.
46 </div>
47 <div class="expected-results">
48 Expected Results:
49 <br>
50 Should see a total of five lines in the red box, with the third line inside of a nested red box. First line should be "one". Next line should be "two". Next line should be "cha cha cha", inside of a nested red box. Next line should be "ur". The last line should be "cha cha cha". Insertion point should be blinking at the start of the fourth line ("ur").
51 </div>
52 </div>
54 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
55 <div id="test" class="editing">
56 one
57 <div>two</div>
58 <div class="editing"><div>cha cha cha</div>three</div>
59 <div>four</div><div>cha cha cha</div>
60 </div>
61 </div>
63 <script>
64 runEditingTest();
65 </script>
67 </body></html>