1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug677878.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=677878 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 677878</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.14 + 1.15 + <style> 1.16 + #test1 { 1.17 + background: green; 1.18 + height: 100px; 1.19 + width: 100px; 1.20 + -moz-transform: scale(20, 20); 1.21 + -moz-transform-origin: 0 0%; 1.22 + } 1.23 + </style> 1.24 +</head> 1.25 +<body> 1.26 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=677878">Mozilla Bug 677878</a> 1.27 +<div id="content"> 1.28 + <div id="test1"> 1.29 + <div id="test2" onclick="testFinish();"> 1.30 + test 1.31 + </div> 1.32 + </div> 1.33 + 1.34 +<pre id="test"> 1.35 +<script type="application/javascript"> 1.36 +SimpleTest.waitForExplicitFinish(); 1.37 +runtests(); 1.38 + 1.39 +function runtests() { 1.40 + function doClick() { 1.41 + document.getElementById("test2").addEventListener("mousedown", testFinish, true); 1.42 + // Don't target the center because the center could actually be outside the 1.43 + // viewport. 1.44 + synthesizeMouse(document.getElementById("test2"), 10, 10, { type: "mousedown" }) 1.45 + } 1.46 + setTimeout(doClick, 300); 1.47 +} 1.48 + 1.49 +function testFinish(event){ 1.50 + ok(true, "We can still interact with the item after it is transformed"); 1.51 + SimpleTest.finish(); 1.52 +} 1.53 +</script> 1.54 +</pre> 1.55 +</body> 1.56 +</html>