1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug646757.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=646757 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 646757</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.13 +</head> 1.14 +<body style="margin:0" id="body"> 1.15 +<div style="height:20.3px; width:400px; background:pink" id="d1"></div> 1.16 +<div style="height:20px; width:400px; background:yellow" id="d2"></div> 1.17 +<div style="height:9.7px; width:400px;" id="space1"></div> 1.18 +<div style="height:20.7px; width:400px; background:pink" id="d3"></div> 1.19 +<div style="height:20px; width:400px; background:yellow" id="d4"></div> 1.20 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=646757">Mozilla Bug 646757</a> 1.21 +<p id="display"></p> 1.22 +<div id="content" style="display: none"> 1.23 + 1.24 +</div> 1.25 +<pre id="test"> 1.26 +<script class="testbody" type="text/javascript"> 1.27 +function testPoint(x, y, id) { 1.28 + is(document.elementFromPoint(x, y).id, id, 1.29 + "checking element at " + x + "," + y); 1.30 +} 1.31 + 1.32 +/** Test for Bug 646757 **/ 1.33 +testPoint(200, 20, "d1"); 1.34 +testPoint(200, 20.2, "d1"); 1.35 +testPoint(200, 20.4, "d2"); 1.36 +testPoint(200, 21, "d2"); 1.37 + 1.38 +testPoint(200, 70, "d3"); 1.39 +testPoint(200, 70.6, "d3"); 1.40 +testPoint(200, 70.8, "d4"); 1.41 +testPoint(200, 71, "d4"); 1.42 +</script> 1.43 +</pre> 1.44 +</body> 1.45 +</html> 1.46 +