4 <script src=
"../../../resources/js-test.js"></script>
5 <style type=
"text/css">
14 <div id=
"box" ontouchstart=
""></div>
15 <div><input type=
"number" id=
"number" value=
"1"></div>
17 description('Test if a spin-button works correctly after touch events.');
18 if (window
.eventSender
) {
19 eventSender
.addTouchPoint(50, 50);
20 eventSender
.touchStart();
22 var numberInput
= document
.getElementById('number');
24 eventSender
.mouseMoveTo(numberInput
.offsetLeft
+ numberInput
.offsetWidth
- 10, numberInput
.offsetTop
+ numberInput
.offsetHeight
/ 4);
25 eventSender
.mouseDown();
26 eventSender
.mouseUp();
27 shouldBe('numberInput.value', '"2"');
29 debug('Needs eventSender.');