layout/forms/test/test_bug957562.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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=957562
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 903715</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    12 </head>
    13 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=957562">Mozilla Bug 957562</a>
    15 <p id="display"></p>
    16 <input id="n" onfocus="kill()" type="number" style="border:20px solid black">
    17 <pre id="test">
    18 </pre>
    19 <script type="application/javascript">
    20 SimpleTest.waitForExplicitFinish();
    21 SimpleTest.waitForFocus(runTests, window);
    23 var killed = false;
    24 function kill() {
    25   if (killed) {
    26     return;
    27   }
    28   killed = true;
    29   n.style.display = 'none';
    30   r = n.getBoundingClientRect();
    31   setTimeout(function() {
    32     ok(true, "Didn't crash");
    33     SimpleTest.finish();
    34   }, 0);
    35 }
    37 function runTests()
    38 {
    39   synthesizeMouse(n, 2, 2, {});
    40 }
    41 </script>
    42 </body>
    43 </html>

mercurial