layout/base/tests/test_bug435293-interaction.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=435293
     5 -->
     6 <head>
     7   <title>Test for Bug 435293</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: skew(30deg, 60deg) scale(2, 5) rotate(45deg) translate(2%, 50px);
    18       -moz-transform-origin: 100% 50%;
    19     }
    20   </style>
    21 </head>
    22 <body>
    23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=435293">Mozilla Bug 435293</a>
    24 <div id="content">
    25   <div id="test1" onclick="testFinish();">
    26     test
    27   </div>
    29 <pre id="test">
    30 <script type="application/javascript">
    31 SimpleTest.waitForExplicitFinish();
    32 runtests();
    34 function runtests() {
    35   function doClick() {
    36     sendMouseEvent({type: 'click'}, 'test1');
    37   }
    38   setTimeout(doClick, 300);
    39 }
    41 function testFinish(){
    42   ok(1, "We can still interact with the item after it is transformed");
    43   SimpleTest.finish();
    44 }
    45 </script>
    46 </pre>
    47 </body>
    48 </html>

mercurial