9 <script src=
"../../resources/js-test.js"></script>
12 setPrintTestResultsLazily();
13 window
.jsTestIsAsync
= true;
15 description("Ensure hit test cache is cleared across iframes.");
18 document
.body
.insertAdjacentHTML('beforeend', '<iframe id="myframe" srcdoc="" onload="iFrameLoaded()"></iframe>');
22 function iFrameLoaded() {
24 document
.getElementById('myframe').contentDocument
.body
.insertAdjacentHTML('beforeend', '<div>AAA</div>');
30 var rect
= document
.getElementById('myframe').getBoundingClientRect();
31 window
.internals
.elementFromPoint(document
, rect
.left
+ 8, rect
.top
+ 8, false, false);
32 shouldBe("window.internals.hitTestCacheHits(document)", "0");
35 <body onload=
"loaded()" />