Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / clear-selection.html
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5      testRunner.dumpEditingCallbacks();
6 </script>
7
8     <script>
9         function runTest() {
10             var d = document.getElementById('d');
11             window.getSelection().setBaseAndExtent(d, 0, d, 1);            
12             window.getSelection().empty();
13         }
14     </script>
15 </head>
16 <body onload="runTest()">
17     <div id="d">This tests that window.getSelection().clear() clears the selection correctly. If this test is successful, this text should not be selected.</div>
18 <body>
19 </html>