Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: LayoutTests/editing/selection/selectstart-event-crash.html

Issue 1288883002: Make SelectionController not to set invalid selection by mouse down (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-13T18:48:09 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698