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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/gesture-tap-reset-selection-range.html

Issue 705733002: Make sure that selection is cleared after tapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | LayoutTests/fast/events/touch/gesture/gesture-tap-reset-selection-range-expected.txt » ('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/js-test.js"></script>
3 <div id="dragme">Make Selection Here</div>
4 <script>
5 description("This tests if the selection is reset after tapping of gesture");
6
7 if (window.eventSender) {
8 var dragme = document.getElementById('dragme');
9 window.getSelection().selectAllChildren(dragme);
10 shouldBeGreaterThan('window.getSelection().rangeCount', '0');
11
12 var x = dragme.offsetLeft + dragme.offsetWidth / 2;
13 var y = dragme.offsetTop + dragme.offsetHeight / 2;
14 eventSender.gestureTapDown(x, y);
15 eventSender.gestureShowPress(x, y);
16 eventSender.gestureTap(x, y);
17 shouldBeZero('window.getSelection().rangeCount');
Rick Byers 2014/11/14 21:48:40 Nice simple test now, thank you for the improvemen
18 }
19 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/gesture-tap-reset-selection-range-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698