blob: 253f87f4e7fa3519beb257c4d63c861623511a75 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<div id="sample"><table id="one"><caption></caption></table></div>
<div id="log"></div>
<script>
var one = document.querySelector('#one');
document.addEventListener('selectstart', function() {
one.remove();
});
test(function() {
if (!window.eventSender)
return;
eventSender.mouseMoveTo(one.offsetLeft, one.offsetTop);
eventSender.mouseDown();
var selection = getSelection();
assert_equals(selection.rangeCount, 1);
});
</script>