Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: LayoutTests/fast/events/hit-test-cache-iframes.html

Issue 1242593004: Fix invalidity in HitTestCache with LayoutParts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make clearHitTestCache recursive Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-cache-iframes-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #myframe {
4 height: 35px;
5 width: 100px;
6 }
7 </style>
8
9 <script src="../../resources/js-test.js"></script>
10 <script>
11
12 setPrintTestResultsLazily();
13 window.jsTestIsAsync = true;
14
15 description("Ensure hit test cache is cleared across iframes.");
16
17 function loaded() {
18 document.body.insertAdjacentHTML('beforeend', '<iframe id="myframe" srcdoc="" onload="iFrameLoaded()"></iframe>');
19 doHit();
20 }
21
22 function iFrameLoaded() {
23 doHit();
24 document.getElementById('myframe').contentDocument.body.insertAdjacentHTML('be foreend', '<div>AAA</div>');
25 doHit();
26 finishJSTest();
27 }
28
29 function doHit() {
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");
33 }
34 </script>
35 <body onload="loaded()" />
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-cache-iframes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698