Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <html>
2 <div id="target" ontouchstart="alert();"></div>
3 <script type="application/javascript">
5 /** Test for Bug 760131 **/
7 function accessTouches(evt)
8 {
9 var thrown = false;
10 try {
11 var a = evt.touches;
12 } catch (e) {
13 thrown = true;
14 }
15 ok(!thrown, "Unwrapping a TouchList shouldn't throw");
16 }
18 document.getElementById("target").ontouchstart = accessTouches;
20 </script>
21 </pre>
22 </body>
23 </html>