kocienda | e7ccb7c | 2004-06-14 17:59:46 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | |
| 4 | <style> |
| 5 | .editing { |
| 6 | border: 2px solid red; |
| 7 | padding: 12px; |
| 8 | font-size: 24px; |
| 9 | } |
| 10 | </style> |
| 11 | <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| 12 | |
| 13 | <script> |
| 14 | |
| 15 | function editingTest() { |
| 16 | for (i = 0; i < 3; i++) { |
| 17 | typeCharacterCommand(); |
| 18 | } |
| 19 | selectAllCommand(); |
| 20 | boldCommand(); |
| 21 | moveSelectionForwardByCharacterCommand(); |
| 22 | for (i = 0; i < 3; i++) { |
| 23 | typeCharacterCommand(); |
| 24 | } |
kocienda | 4b4f21f | 2004-12-03 17:31:30 +0000 | [diff] [blame] | 25 | insertLineBreakCommand(); |
kocienda | e7ccb7c | 2004-06-14 17:59:46 +0000 | [diff] [blame] | 26 | for (i = 0; i < 3; i++) { |
| 27 | typeCharacterCommand(); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | </script> |
| 32 | |
| 33 | <title>Editing Test</title> |
| 34 | </head> |
| 35 | <body> |
rniwa@webkit.org | ed35cb5 | 2010-09-11 05:08:40 +0000 | [diff] [blame] | 36 | <p>Test that inserting a line break will preserve bolding. All of the text below should be bold.</p> |
kocienda | e7ccb7c | 2004-06-14 17:59:46 +0000 | [diff] [blame] | 37 | <div contenteditable id="root" class="editing"> |
| 38 | <span id="test">test</span> |
| 39 | </div> |
| 40 | |
| 41 | <script> |
rniwa@webkit.org | ed35cb5 | 2010-09-11 05:08:40 +0000 | [diff] [blame] | 42 | runDumpAsTextEditingTest(); |
kocienda | e7ccb7c | 2004-06-14 17:59:46 +0000 | [diff] [blame] | 43 | </script> |
| 44 | |
| 45 | </body> |
| 46 | </html> |