67807965a938001754b4755f14968c177ec53a8a
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / style / table-selection.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
12
13 <script>
14
15 function editingTest() {
16     var selection = window.getSelection();
17     selection.collapse(document.getElementById("selStart"), 0);
18     extendSelectionForwardByLineCommand();
19     extendSelectionForwardByLineCommand();
20     justifyCenterCommand();
21     fontSizeDeltaCommand();
22 }
23
24 </script>
25
26 <title>Editing Test</title> 
27 </head> 
28 <body id="root" contenteditable>
29 <div id="test" class="editing">
30 <table> <tr> <td id="selStart"> foo </td> </tr> <tr> <td id="selEnd"> bar </td> </tr> </table>
31 </div>
32 <script>
33 runEditingTest();
34 </script>
35
36 </body>
37 </html>