gecko/js/xpconnect/tests/mochitest/file_bug760131.html
Peter Van der Beken c13ddebfa6 Fix for bug 760131 (Quickstub argument unwrapping fails for security-wrapped list proxy and paris binding objects). r=bz.
--HG--
extra : rebase_source : 945d58f3b73f25f05528e6c6d69745215cb4793a
2012-06-01 18:24:52 +02:00

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>