1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug435293-interaction.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=435293 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 435293</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: skew(30deg, 60deg) scale(2, 5) rotate(45deg) translate(2%, 50px); 1.21 + -moz-transform-origin: 100% 50%; 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=435293">Mozilla Bug 435293</a> 1.27 +<div id="content"> 1.28 + <div id="test1" onclick="testFinish();"> 1.29 + test 1.30 + </div> 1.31 + 1.32 +<pre id="test"> 1.33 +<script type="application/javascript"> 1.34 +SimpleTest.waitForExplicitFinish(); 1.35 +runtests(); 1.36 + 1.37 +function runtests() { 1.38 + function doClick() { 1.39 + sendMouseEvent({type: 'click'}, 'test1'); 1.40 + } 1.41 + setTimeout(doClick, 300); 1.42 +} 1.43 + 1.44 +function testFinish(){ 1.45 + ok(1, "We can still interact with the item after it is transformed"); 1.46 + SimpleTest.finish(); 1.47 +} 1.48 +</script> 1.49 +</pre> 1.50 +</body> 1.51 +</html>