Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-at-paragraph-boundaries-001.html
blob5be3018466f79506fa9093bcd4187d35b7e3791d
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src="../editing.js"></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <script>
22 function editingTest() {
23 moveSelectionForwardByLineCommand();
24 extendSelectionForwardByLineCommand();
25 extendSelectionForwardByCharacterCommand();
26 deleteCommand();
28 Markup.description(document.querySelector('.explanation').textContent);
29 Markup.dump('root');
32 </script>
34 <title>Editing Test</title>
35 </head>
36 <body>
38 <div class="explanation">
39 <div class="scenario">
40 Tests:
41 <br>
42 Deleting when a selection starts in a blank line created by a block with a BR placeholder in it and extends to the end of a block.
43 </div>
44 <div class="expected-results">
45 Expected Results:
46 <br>
47 Should see the three lines in the red box. First line should be "A". Next two lines should be empty. Insertion point should
48 be blinking on the second line (the first blank one).
49 </div>
50 </div>
52 <div contenteditable id="root" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
53 <div id="test" class="editing">
54 <p style="margin-top: 0; margin-bottom: 0">A</p>
55 <p style="margin-top: 0; margin-bottom: 0"><BR class="webkit-block-placeholder"></p>
56 <p style="margin-top: 0; margin-bottom: 0">A</p>
57 <p style="margin-top: 0; margin-bottom: 0"><BR class="webkit-block-placeholder"></p>
58 </div>
59 </div>
61 <script>
62 runEditingTest();
63 </script>
65 </body>
66 </html>