Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / display-table-text.html
1 <html> 
2 <head>
3 <script>
4 function editingTest() {
5     if (window.testRunner)
6         testRunner.dumpEditingCallbacks();
7
8     var elem = document.getElementById("test").firstChild;
9     var selection = window.getSelection();
10
11     selection.setBaseAndExtent(elem, 9, elem, 14);
12 }
13 </script>
14 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=11271</title> 
15 </head> 
16 <body>
17 <div id="test" style="display: table;">Only the third word in this sentence should be selected.</div>
18 <script>
19 editingTest();
20 </script>
21 </body>
22 </html>