Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / selectstart-event-crash.html
blobc247f076ad15abd824e08965b4b8bbcdef5e6763
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>