Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=761572
5 -->
6 <head>
7 <title>Test for Bug 761572</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" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=761572">Mozilla Bug 761572</a>
14 <div id="content">
15 <div id="d" style="background:lime; width:50px; height:50px" onmouseup="doUp()" onclick="doClick()"></div>
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
19 SimpleTest.waitForExplicitFinish();
21 var d = document.getElementById("d");
23 function doUp() {
24 d.style.display = "none";
25 }
26 function doClick() {
27 ok(true, "Check click received");
28 SimpleTest.finish();
29 }
31 function doTest() {
32 // synthesizes a mousedown/mouseup pair
33 synthesizeMouse(d, 10, 10, {});
34 }
36 SimpleTest.waitForFocus(doTest);
37 </script>
38 </pre>
39 </body>
40 </html>