2 <script src=
"../../../resources/js-test.js"></script>
4 description("Document.elementFromPoint() against empty document shouldn't crash.");
5 window
.jsTestIsAsync
= true;
6 toBeRemoved
= document
.documentElement
;
8 window
.setTimeout(function() {
9 document
.elementFromPoint(0, 0);
10 document
.appendChild(toBeRemoved
);
11 debug("PASS unless crash");