| Index: LayoutTests/editing/selection/selectstart-event-crash.html
|
| diff --git a/LayoutTests/editing/selection/selectstart-event-crash.html b/LayoutTests/editing/selection/selectstart-event-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c247f076ad15abd824e08965b4b8bbcdef5e6763
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/selection/selectstart-event-crash.html
|
| @@ -0,0 +1,19 @@
|
| +<!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, 0);
|
| +});
|
| +</script>
|
|
|