Index: LayoutTests/fast/forms/range/slider-onchange-event.html |
diff --git a/LayoutTests/fast/forms/range/slider-onchange-event.html b/LayoutTests/fast/forms/range/slider-onchange-event.html |
index 3dc3ca1016fc865942c39b7dd589b57e4136104e..f382e7f948b6c0009d82152aedbc74a37a9e8316 100644 |
--- a/LayoutTests/fast/forms/range/slider-onchange-event.html |
+++ b/LayoutTests/fast/forms/range/slider-onchange-event.html |
@@ -24,13 +24,24 @@ |
eventSender.mouseMoveTo(slider.offsetLeft + 7, slider.offsetTop + 7); |
eventSender.mouseDown(); |
eventSender.mouseUp(); |
+ // On touch events, check if change event is dispatched at touch end |
+ var x = slider.offsetLeft; |
+ var y = slider.offsetTop + slider.clientHeight / 2; |
+ var w = slider.clientWidth; |
+ |
+ eventSender.clearTouchPoints(); |
+ eventSender.addTouchPoint(x + w / 2, y); |
+ eventSender.touchStart(); |
+ eventSender.touchMove(); |
+ eventSender.releaseTouchPoint(0); |
+ eventSender.touchEnd(); |
} |
} |
</script> |
</head> |
<body onload="test()"> |
This tests that slider controls get the onchange event and that it is sent after the DOMInput event.<br> |
- <input type="range" id="slider" onchange="log('change')" oninput="log('input')" value=0> |
+ <input type="range" id="slider" onchange="log('change')" oninput="log('input')" value=0 width=200px height=300px> |
<div id="res"></div> |
</body> |
</html> |