Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for Bug 770106</title>
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
7 </head>
8 <body>
9 <span id="s">Hello</span>
10 <button><div style="pointer-events:none; position:relative; width:100px; background:yellow; left:-100px;">Kitty</div></button>
12 <pre id="test">
13 <script type="application/javascript">
15 /** Test for Bug 770106 **/
17 var sRect = s.getBoundingClientRect();
18 is(document.elementFromPoint(sRect.left + sRect.width/2, sRect.top + sRect.height/2),
19 document.getElementById("s"), "Correct object selected");
21 </script>
22 </pre>
23 </body>
24 </html>