Index: LayoutTests/fast/events/touch/emulated-touch-iframe.html |
=================================================================== |
--- LayoutTests/fast/events/touch/emulated-touch-iframe.html (revision 145698) |
+++ LayoutTests/fast/events/touch/emulated-touch-iframe.html (working copy) |
@@ -7,7 +7,9 @@ |
<script type="text/javascript"> |
var touchstartCount = 0; |
+var touchmoveCount = 0; |
var EXPECTED_TOUCHSTART_COUNT = 1; |
+var EXPECTED_TOUCHMOVE_COUNT = 1; |
var shouldBail; |
function testComplete() |
@@ -20,11 +22,21 @@ |
shouldBail = true; |
} |
+ if (!touchmoveCount) |
+ debug("touchmove not fired for the iframe!"); |
+ else if (touchmoveCount > EXPECTED_TOUCHMOVE_COUNT) |
+ debug("touchmove fired too many times!"); |
+ |
debug("touchend (test will time out if broken)"); |
window.internals.settings.setTouchEventEmulationEnabled(false); |
window.testRunner.notifyDone(); |
} |
+function handleTouchmove() |
+{ |
+ ++touchmoveCount; |
+} |
+ |
function handleTouchstart() |
{ |
++touchstartCount; |