mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
24 lines
406 B
HTML
24 lines
406 B
HTML
|
<html>
|
||
|
<div id="target" ontouchstart="alert();"></div>
|
||
|
<script type="application/javascript">
|
||
|
|
||
|
/** Test for Bug 760131 **/
|
||
|
|
||
|
function accessTouches(evt)
|
||
|
{
|
||
|
var thrown = false;
|
||
|
try {
|
||
|
var a = evt.touches;
|
||
|
} catch (e) {
|
||
|
thrown = true;
|
||
|
}
|
||
|
ok(!thrown, "Unwrapping a TouchList shouldn't throw");
|
||
|
}
|
||
|
|
||
|
document.getElementById("target").ontouchstart = accessTouches;
|
||
|
|
||
|
</script>
|
||
|
</pre>
|
||
|
</body>
|
||
|
</html>
|