REGRESSION (r264117): [ Mac iOS ] imported/w3c/web-platform-tests/html/cross-origin...
[WebKit-https.git] / LayoutTests / imported / blink / editing / selection / selectstart-event-crash.html
1 <!DOCTYPE html>
2 <script src="../../../../resources/testharness.js"></script>
3 <script src="../../../../resources/testharnessreport.js"></script>
4 <div id="sample"><table id="one"><caption></caption></table></div>
5 <div id="log"></div>
6 <script>
7 var one = document.querySelector('#one');
8 document.addEventListener('selectstart', function() {
9     one.remove();
10 });
11 test(function() {
12     if (!window.eventSender)
13         return;
14     eventSender.mouseMoveTo(one.offsetLeft, one.offsetTop);
15     eventSender.mouseDown();
16     var selection = getSelection();
17     assert_equals(selection.rangeCount, 0);
18 });
19 </script>