DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5b81998bb7ab)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<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>