file_bug760131.html 406 B

123456789101112131415161718192021222324
  1. <html>
  2. <div id="target" ontouchstart="alert();"></div>
  3. <script type="application/javascript">
  4. /** Test for Bug 760131 **/
  5. function accessTouches(evt)
  6. {
  7. var thrown = false;
  8. try {
  9. var a = evt.touches;
  10. } catch (e) {
  11. thrown = true;
  12. }
  13. ok(!thrown, "Unwrapping a TouchList shouldn't throw");
  14. }
  15. document.getElementById("target").ontouchstart = accessTouches;
  16. </script>
  17. </pre>
  18. </body>
  19. </html>