OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 .editing { | |
5 border: 2px solid red; | |
6 font-size: 24px; | |
7 } | |
8 .explanation { | |
9 border: 2px solid blue; | |
10 padding: 12px; | |
11 font-size: 24px; | |
12 margin-bottom: 24px; | |
13 } | |
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> | |
21 | |
22 function editingTest() { | |
23 moveSelectionForwardByLineCommand(); | |
24 extendSelectionForwardByLineCommand(); | |
25 extendSelectionForwardByCharacterCommand(); | |
26 deleteCommand(); | |
27 | |
28 Markup.description(document.querySelector('.explanation').textContent); | |
29 Markup.dump('root'); | |
30 } | |
31 | |
32 </script> | |
33 | |
34 <title>Editing Test</title> | |
35 </head> | |
36 <body> | |
37 | |
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 pl
aceholder 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 li
nes should be empty. Insertion point should | |
48 be blinking on the second line (the first blank one). | |
49 </div> | |
50 </div> | |
51 | |
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> | |
60 | |
61 <script> | |
62 runEditingTest(); | |
63 </script> | |
64 | |
65 </body> | |
66 </html> | |
OLD | NEW |