Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / clear-selection.html
blobdfc1f19b441cfac70e051eb39d61ba743cee57a8
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpEditingCallbacks();
6 </script>
8 <script>
9 function runTest() {
10 var d = document.getElementById('d');
11 window.getSelection().setBaseAndExtent(d, 0, d, 1);
12 window.getSelection().empty();
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>