Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-at-paragraph-boundaries-005.html
blobeb4c462553efef0194835479f3da4719eaf4be8c
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 extendSelectionForwardByLineCommand();
26 extendSelectionForwardByLineCommand();
27 deleteCommand();
30 </script>
32 <title>Editing Test</title>
33 </head>
34 <body>
36 <div class="explanation">
37 <div class="scenario">
38 Tests:
39 <br>
40 Deleting when a selection starts in a blank line created by a BR element and extends to the end of the document.
41 </div>
42 <div class="expected-results">
43 Expected Results:
44 <br>
45 Should see the two lines in the red box. First line should be "A". Next one should be empty. Insertion point should
46 be blinking at the start of the second line.
47 </div>
48 </div>
50 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
51 <div id="test" class="editing">
52 <p style="margin-top: 0; margin-bottom: 0">A</p>
53 <BR>
54 <p style="margin-top: 0; margin-bottom: 0">A</p>
55 <BR>
56 </div>
57 </div>
59 <script>
60 runEditingTest();
61 </script>
63 </body>
64 </html>