Updated for fixes of:
[WebKit-https.git] / LayoutTests / editing / unsupported-content / table-type-before.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 < 3; i++)
25         typeCharacterCommand("x");
26 }
27
28 </script>
29
30 <title>Editing Test</title> 
31 </head> 
32 <body>
33
34 <div class="explanation">
35 <div class="scenario">
36 Tests: 
37 <br>
38 Our ability to "edit around" content the HTML editing code does not yet handle very well.
39 <br><i>For this test: </i>Test typing before a table.
40 </div>
41 <br>
42 <div class="expected">
43 Expected Results:
44 <br>
45 The content in the red box must exactly match the content in the green box (except for the border color).
46 <br><i>For this test: </i>Typed text should appear before (on the line above) the table.
47 </div>
48 </div>
49
50 <div class="results">
51 xxx
52 <table border="1">
53 <tr>
54 <td>1</td>
55 <td>2</td>
56 <td>3</td>
57 </tr>
58 <tr>
59 <td>4</td>
60 <td>5</td>
61 <td>6</td>
62 </tr>
63 <tr>
64 <td>7</td>
65 <td>8</td>
66 <td>9</td>
67 </tr>
68 </table>
69 </div>
70
71 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
72 <div id="test" class="editing">
73 <table border="1">
74 <tr>
75 <td>1</td>
76 <td>2</td>
77 <td>3</td>
78 </tr>
79 <tr>
80 <td>4</td>
81 <td>5</td>
82 <td>6</td>
83 </tr>
84 <tr>
85 <td>7</td>
86 <td>8</td>
87 <td>9</td>
88 </tr>
89 </table>
90 </div>
91 </div>
92
93 <script>
94 runEditingTest();
95 </script>
96
97 </body>
98 </html>