Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / gesture / gesture-tap-reset-selection-range.html
blob9a6b48c1a4c4f8edeff2cfa5b6127022d97a0524
1 <!DOCTYPE html>
2 <script src="../../../../resources/testharness.js"></script>
3 <script src="../../../../resources/testharnessreport.js"></script>
4 <div id="dragme">Make Selection Here</div>
5 <div id="log"></div>
6 <script>
7 var dragme = document.getElementById('dragme');
8 test(function() {
9 if (!window.eventSender)
10 return;
11 window.getSelection().selectAllChildren(dragme);
13 var x = dragme.offsetLeft + dragme.offsetWidth / 2;
14 var y = dragme.offsetTop + dragme.offsetHeight / 2;
15 eventSender.gestureTapDown(x, y);
16 eventSender.gestureShowPress(x, y);
17 eventSender.gestureTap(x, y);
19 assert_equals(window.getSelection().rangeCount, 0);
20 }, "This tests if the selection is reset after tapping of gesture.");
21 </script>