| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <style> | |
| 5 .editing { | |
| 6 border: 2px solid red; | |
| 7 padding: 12px; | |
| 8 font-size: 24px; | |
| 9 } | |
| 10 .scenario:first-line { font-weight: bold; font-size: 24px; } | |
| 11 .expected:first-line { font-weight: bold; font-size: 24px; } | |
| 12 .citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; } | |
| 13 </style> | |
| 14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 15 | |
| 16 <script> | |
| 17 | |
| 18 function editingTest() { | |
| 19 moveSelectionForwardByCharacterCommand(); | |
| 20 moveSelectionForwardByCharacterCommand(); | |
| 21 moveSelectionForwardByCharacterCommand(); | |
| 22 moveSelectionForwardByCharacterCommand(); | |
| 23 insertNewlineInQuotedContentCommand(); | |
| 24 } | |
| 25 | |
| 26 </script> | |
| 27 | |
| 28 <title>Editing Test</title> | |
| 29 </head> | |
| 30 <body id="root"> | |
| 31 <div class="explanation"> | |
| 32 <div class="scenario"> | |
| 33 Splitting Mail blockquotes. | |
| 34 </div> | |
| 35 <div class="expected"> | |
| 36 Expected Results: | |
| 37 <br> | |
| 38 Two blockquotes, with an unquoted blank line in between.<br> | |
| 39 The first blockquote contains two lines, the second one is blank.<br> | |
| 40 The second blockquote contains two non-blank lines. | |
| 41 </div> | |
| 42 </div> | |
| 43 <div contenteditable class="editing">My citation: | |
| 44 <div id="test"> | |
| 45 <blockquote class="citation" type="cite"><div>one</div><div style="min-height: 2
4px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div>on
e and a half</div></div><div>two</div></blockquote> | |
| 46 </div> | |
| 47 </div> | |
| 48 | |
| 49 <script> | |
| 50 runEditingTest(); | |
| 51 </script> | |
| 52 | |
| 53 </body> | |
| 54 </html> | |
| OLD | NEW |