33aef4f34a1a7a24f7c1d1c132af5b38cc985970
[WebKit-https.git] / LayoutTests / editing / unsupported-content / table-delete-003.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     font-size: 24px; 
8 }
9 .explanation { 
10     border: 4px solid blue; 
11     padding: 16px; 
12     font-size: 18px; 
13     margin-bottom: 10px;
14 }
15 .scenario:first-line { font-weight: bold; font-size: 24px; }
16 .expected:first-line { font-weight: bold; font-size: 24px; }
17 .results { margin-bottom: 10px; border: 2px solid green; font-size: 24px; }
18 </style>
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
20
21 <script>
22
23 function editingTest() {
24     for (i = 0; i < 9; i++)
25         extendSelectionForwardByLineCommand();
26     extendSelectionForwardByCharacterCommand();
27     deleteCommand();
28 }
29
30 </script>
31
32 <title>Editing Test</title> 
33 </head> 
34 <body>
35
36 <div class="explanation">
37 <div class="scenario">
38 Tests: 
39 <br>
40 Our ability to "edit around" content the HTML editing code does not yet handle very well.
41 <br><i>For this test: </i>Select and delete a list and some surrounding content.
42 </div>
43 <br>
44 <div class="expected">
45 Expected Results:
46 <br>
47 The content in the red box must exactly match the content in the green box (except for the border color).
48 <br><i>For this test: </i>Only selected content should get deleted. 
49 Surrounding content that is not selected should (obviously) not be affected.
50 </div>
51 </div>
52
53 <div class="results">
54 after
55 </div>
56
57 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
58 <div id="test" class="editing">
59 before
60 <table border="1">
61 <tr>
62 <td>1</td>
63 <td>2</td>
64 <td>3</td>
65 </tr>
66 <tr>
67 <td>4</td>
68 <td>5</td>
69 <td>6</td>
70 </tr>
71 <tr>
72 <td>7</td>
73 <td>8</td>
74 <td>9</td>
75 </tr>
76 </table>
77 after
78 </div>
79 </div>
80
81 <script>
82 runEditingTest();
83 </script>
84
85 </body>
86 </html>