| This test checks that a long press gesture on an file input button does not crash on iOS. |
| Press and hold on the file input button below until you see the word "PASS". |
| <p id="result">Test not running</p> |
| <input type="file" id="filecontrol"> |
| document.getElementById("result").innerHTML = s; |
| var input = document.getElementById("filecontrol"); |
| input.onclick = function(e) { e.preventDefault(); } |
| input.ontouchstart = function() { |
| timer = window.setTimeout(function() { setText("PASS"); passed = true; }, 1000); |
| input.ontouchend = input.ontouchmove = function() { |
| window.clearTimeout(timer); |