Add an editing command for creating and inserting child lists
[WebKit-https.git] / LayoutTests / editing / execCommand / insert-nested-lists-in-table-expected.txt
1 Verifies that 'InsertNestedUnorderedList' and 'InsertNestedOrderedList' work as expected in table cells. This test requires WebKitTestRunner or DumpRenderTree.
2
3 After inserting a list in a table cell:
4 | "
5     "
6 | <table>
7 |   "
8         "
9 |   <tbody>
10 |     "
11             "
12 |     <tr>
13 |       <th>
14 |         "Left"
15 |       <th>
16 |         "Right"
17 |     "
18             "
19 |     <tr>
20 |       <td>
21 |         id="foo"
22 |         "Foo"
23 |       <td>
24 |         "Bar"
25 |     "
26             "
27 |     <tr>
28 |       <td>
29 |         "Baz"
30 |       <td>
31 |         id="garply"
32 |         <ol>
33 |           <li>
34 |             "<#selection-caret>Garply"
35 |             <br>
36 |       " "
37 |     "
38         "
39 |   "
40     "
41 | "
42 "
43
44 After wrapping the table in a list:
45 | "
46     "
47 | <ul>
48 |   <li>
49 |     <#selection-anchor>
50 |     <table>
51 |       <tbody>
52 |         <tr>
53 |           <th>
54 |             "Left"
55 |           <th>
56 |             "Right"
57 |         <tr>
58 |           <td>
59 |             id="foo"
60 |             "Foo"
61 |           <td>
62 |             "Bar"
63 |         <tr>
64 |           <td>
65 |             "Baz"
66 |           <td>
67 |             id="garply"
68 |             <ol>
69 |               <li>
70 |                 "Garply"
71 |                 <br>
72 |     <#selection-focus>
73 | "
74 "
75
76 After inserting a nested list below the outer list:
77 | "
78     "
79 | <ul>
80 |   <li>
81 |     <table>
82 |       <tbody>
83 |         <tr>
84 |           <th>
85 |             "Left"
86 |           <th>
87 |             "Right"
88 |         <tr>
89 |           <td>
90 |             id="foo"
91 |             "Foo"
92 |           <td>
93 |             "Bar"
94 |         <tr>
95 |           <td>
96 |             "Baz"
97 |           <td>
98 |             id="garply"
99 |             <ol>
100 |               <li>
101 |                 "Garply"
102 |                 <br>
103 |   <ul>
104 |     <li>
105 |       <#selection-caret>
106 | "
107 "
108
109 After inserting another list under a table cell:
110 | "
111     "
112 | <ul>
113 |   <li>
114 |     <table>
115 |       <tbody>
116 |         <tr>
117 |           <th>
118 |             "Left"
119 |           <th>
120 |             "Right"
121 |         <tr>
122 |           <td>
123 |             id="foo"
124 |             "Foo"
125 |           <td>
126 |             "Bar"
127 |         <tr>
128 |           <td>
129 |             "Baz"
130 |           <td>
131 |             id="garply"
132 |             <ol>
133 |               <li>
134 |                 "Garply"
135 |                 <br>
136 |               <ol>
137 |                 <li>
138 |                   <#selection-caret>
139 |   <ul>
140 |     <li>
141 | "
142 "