Reviewed by Chris
[WebKit-https.git] / LayoutTests / editing / deleting / delete-select-all-001.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px;
9     word-wrap: break-word;
10     -khtml-nbsp-mode: space;
11     -khtml-line-break: after-white-space;
12 }
13 </style>
14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
15
16 <script>
17
18 function editingTest() {
19     selectAllCommand();
20     deleteCommand();
21 }
22
23 </script>
24
25 <title>Editing Test</title> 
26
27 <!-- 
28
29 Expected results:
30
31 All the content in the contenteditable div should be deleted, 
32 including the table structure.
33
34 -->
35
36 </head> 
37 <body>
38 <div contenteditable id="root" class="editing">
39 <table border="1">
40 <tr><td id="test">One</td><td>Two</td><td>Three</td></tr>
41 <tr><td>One</td><td>Two</td><td>Three</td></tr>
42 <tr><td>One</td><td>Two</td><td>Three</td></tr>
43 </table>
44 </div>
45
46 <script>
47 runEditingTest();
48 </script>
49
50 </body>
51 </html>