layout/base/tests/test_bug677878.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=677878
     5 -->
     6 <head>
     7   <title>Test for Bug 677878</title>
     8   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    12   <style>
    13     #test1 {
    14       background: green;
    15       height: 100px;
    16       width: 100px;
    17       -moz-transform: scale(20, 20);
    18       -moz-transform-origin: 0 0%;
    19     }
    20   </style>
    21 </head>
    22 <body>
    23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=677878">Mozilla Bug 677878</a>
    24 <div id="content">
    25   <div id="test1">
    26     <div id="test2" onclick="testFinish();">
    27       test
    28     </div>
    29   </div>
    31 <pre id="test">
    32 <script type="application/javascript">
    33 SimpleTest.waitForExplicitFinish();
    34 runtests();
    36 function runtests() {
    37   function doClick() {
    38     document.getElementById("test2").addEventListener("mousedown", testFinish, true);
    39     // Don't target the center because the center could actually be outside the
    40     // viewport.
    41     synthesizeMouse(document.getElementById("test2"), 10, 10, { type: "mousedown" })
    42   }
    43   setTimeout(doClick, 300);
    44 }
    46 function testFinish(event){
    47   ok(true, "We can still interact with the item after it is transformed");
    48   SimpleTest.finish();
    49 }
    50 </script>
    51 </pre>
    52 </body>
    53 </html>

mercurial