2 <script src=
"../../../../resources/testharness.js"></script>
3 <script src=
"../../../../resources/testharnessreport.js"></script>
4 <div id=
"dragme">Make Selection Here
</div>
7 var dragme
= document
.getElementById('dragme');
9 if (!window
.eventSender
)
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.");