Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/base/tests/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="run()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1226904">Mozilla Bug 1226904</a>
<pre id="test">
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
function run() {
var iframe = document.getElementById("iframe");
var doc = iframe.contentDocument;
var container = doc.getElementById("container");
var separator = doc.getElementById("separator");
var transformed = doc.getElementById("transformed");
function check(x, y, expected_element, description)
{
is(doc.elementFromPoint(x, y), expected_element,
"point (" + x + ", " + y + "): " + description);
}
check(600, 200, separator, "Separator object should be at right side");
check(900, 200, container, "Check bounds of separator object");
check(200, 600, transformed, "Transformed object should be at left side");
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>