| <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] --> |
| <meta name="viewport" content="initial-scale=1.0, width=device-width"> |
| <script src="../../../resources/js-test-pre.js"></script> |
| <script id="ui-script" type="text/plain"> |
| function fireSuccessiveTaps() { |
| uiController.singleTapAtPoint(200, 200, fireSuccessiveTaps); |
| uiController.uiScriptComplete(""); |
| var scriptCompleted = false; |
| testRunner.waitUntilDone(); |
| return document.getElementById("ui-script").text; |
| if (testRunner.runUIScript) |
| testRunner.runUIScript(getUIScript(), function(result) { |
| function handleClicked() { |
| document.body.appendChild(document.createTextNode("Click!")); |
| document.body.appendChild(document.createElement("br")); |
| if (clickCount == 3 && scriptCompleted) |
| <body onload="runTest()"> |
| <button id="target" onclick="handleClicked()"></button> |
| <p>Repeatedly tapping on the button should fire click events.</p> |
| <p>This test is best run in WebKitTestRunner. If you are running this test manually, verify that tapping the button causes a "Click!" message to appear below, and that click occurred without the regular 350ms delay for double tapping.</p> |
| <script src="../../../resources/js-test-post.js"></script> |