js/xpconnect/tests/mochitest/file_bug760131.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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>

mercurial