Reviewed by Chris
[WebKit-https.git] / LayoutTests / editing / deleting / delete-select-all-002.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 "you can't see this." span.
33
34 -->
35
36 </head> 
37 <body>
38 <div contenteditable id="root" class="editing">
39 <span style="display: hidden">you can't see this.</span> 
40 <span id="test">you can see this.</span>
41 </div>
42
43 <script>
44 runEditingTest();
45 </script>
46
47 </body>
48 </html>