| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 .editing { | |
| 5 border: 2px solid red; | |
| 6 padding: 12px; | |
| 7 } | |
| 8 blockquote { | |
| 9 border-left: 2px solid blue; | |
| 10 padding: 1em; | |
| 11 margin: 0; | |
| 12 } | |
| 13 </style> | |
| 14 <script src="../../resources/dump-as-markup.js"></script> | |
| 15 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></scri
pt> | |
| 16 | |
| 17 <script> | |
| 18 | |
| 19 function editingTest() { | |
| 20 Markup.description('rdar://problems/4038408&4154187&4125087&4125381, This te
sts deletion from underneath quoted text:'); | |
| 21 | |
| 22 Markup.dump('test', 'before deletion'); | |
| 23 | |
| 24 // Move the caret to the end of #test | |
| 25 selectAllCommand(); | |
| 26 moveSelectionForwardByCharacterCommand(); | |
| 27 | |
| 28 // Delete the reply text | |
| 29 deleteCommand(); | |
| 30 deleteCommand(); | |
| 31 deleteCommand(); | |
| 32 deleteCommand(); | |
| 33 Markup.dump('test', 'after deletion'); | |
| 34 | |
| 35 insertNewlineInQuotedContentCommand(); | |
| 36 document.execCommand("InsertText", false, "This text should not be quoted.")
; | |
| 37 | |
| 38 Markup.dump('test', 'after insert text'); | |
| 39 } | |
| 40 | |
| 41 </script> | |
| 42 | |
| 43 <title>Editing Test</title> | |
| 44 </head> | |
| 45 <body> | |
| 46 <p>Radar: <a href="rdar://problems/4038408&4154187&4125087&4125381">rdar://probl
ems/4038408&4154187&4125087&4125381</a> | |
| 47 Deletion of reply text should not produce reply text style unless the caret is i
nside the reply text blockquote.</p> | |
| 48 <p>This tests deletion from underneath quoted text:</p> | |
| 49 <div contenteditable id="test" class="editing"> | |
| 50 <div><BR class="khtml-block-placeholder"></div> | |
| 51 <div> | |
| 52 <blockquote style="color:blue;" type="cite"> | |
| 53 <div>Here is some reply text</div> | |
| 54 <div>It should have the reply text style</div> | |
| 55 <div><BR class="khtml-block-placeholder"></div> | |
| 56 <div><BR class="khtml-block-placeholder"></div> | |
| 57 <div><BR class="khtml-block-placeholder"></div> | |
| 58 </blockquote> | |
| 59 | |
| 60 | |
| 61 <div><BR class="khtml-block-placeholder"></div> | |
| 62 </div> | |
| 63 | |
| 64 </div> | |
| 65 </div> | |
| 66 | |
| 67 </div> | |
| 68 | |
| 69 <script> | |
| 70 runEditingTest(); | |
| 71 </script> | |
| 72 | |
| 73 </body> | |
| 74 </html> | |
| OLD | NEW |