Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=677878 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 677878</title> |
michael@0 | 8 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 11 | |
michael@0 | 12 | <style> |
michael@0 | 13 | #test1 { |
michael@0 | 14 | background: green; |
michael@0 | 15 | height: 100px; |
michael@0 | 16 | width: 100px; |
michael@0 | 17 | -moz-transform: scale(20, 20); |
michael@0 | 18 | -moz-transform-origin: 0 0%; |
michael@0 | 19 | } |
michael@0 | 20 | </style> |
michael@0 | 21 | </head> |
michael@0 | 22 | <body> |
michael@0 | 23 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=677878">Mozilla Bug 677878</a> |
michael@0 | 24 | <div id="content"> |
michael@0 | 25 | <div id="test1"> |
michael@0 | 26 | <div id="test2" onclick="testFinish();"> |
michael@0 | 27 | test |
michael@0 | 28 | </div> |
michael@0 | 29 | </div> |
michael@0 | 30 | |
michael@0 | 31 | <pre id="test"> |
michael@0 | 32 | <script type="application/javascript"> |
michael@0 | 33 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 34 | runtests(); |
michael@0 | 35 | |
michael@0 | 36 | function runtests() { |
michael@0 | 37 | function doClick() { |
michael@0 | 38 | document.getElementById("test2").addEventListener("mousedown", testFinish, true); |
michael@0 | 39 | // Don't target the center because the center could actually be outside the |
michael@0 | 40 | // viewport. |
michael@0 | 41 | synthesizeMouse(document.getElementById("test2"), 10, 10, { type: "mousedown" }) |
michael@0 | 42 | } |
michael@0 | 43 | setTimeout(doClick, 300); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | function testFinish(event){ |
michael@0 | 47 | ok(true, "We can still interact with the item after it is transformed"); |
michael@0 | 48 | SimpleTest.finish(); |
michael@0 | 49 | } |
michael@0 | 50 | </script> |
michael@0 | 51 | </pre> |
michael@0 | 52 | </body> |
michael@0 | 53 | </html> |