commit-queue@webkit.org | 6b19ff6 | 2011-06-23 22:11:50 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
kocienda | dd92f79 | 2004-10-25 21:52:20 +0000 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
| 4 | |
| 5 | <style> |
| 6 | .editing { |
| 7 | border: 2px solid red; |
| 8 | padding: 12px; |
| 9 | font-size: 24px; |
| 10 | word-wrap: break-word; |
| 11 | -khtml-nbsp-mode: space; |
| 12 | -khtml-line-break: after-white-space; |
| 13 | } |
| 14 | </style> |
| 15 | <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| 16 | |
| 17 | <script> |
| 18 | |
| 19 | function editingTest() { |
| 20 | selectAllCommand(); |
| 21 | deleteCommand(); |
| 22 | } |
| 23 | |
| 24 | </script> |
| 25 | |
| 26 | <title>Editing Test</title> |
| 27 | |
| 28 | <!-- |
| 29 | |
| 30 | Expected results: |
| 31 | |
| 32 | All the content in the contenteditable div should be deleted, |
| 33 | including the "you can't see this." span. |
| 34 | |
| 35 | --> |
| 36 | |
| 37 | </head> |
| 38 | <body> |
| 39 | <div contenteditable id="root" class="editing"> |
| 40 | <span style="display: hidden">you can't see this.</span> |
| 41 | <span id="test">you can see this.</span> |
| 42 | </div> |
| 43 | |
| 44 | <script> |
commit-queue@webkit.org | 6b19ff6 | 2011-06-23 22:11:50 +0000 | [diff] [blame] | 45 | runDumpAsTextEditingTest(true); |
kocienda | dd92f79 | 2004-10-25 21:52:20 +0000 | [diff] [blame] | 46 | </script> |
| 47 | |
| 48 | </body> |
| 49 | </html> |