5 Ensure hit test cache works in correct scenarios of scrolling, dom and style changes.
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
10 PASS successfullyParsed is true
13 PASS successfullyParsed is true
18 PASS document.elementFromPoint(60,60) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 60, 60, false, false)
19 PASS hitTestCountDelta() is 2
20 PASS hitTestCacheHitsDelta() is 0
21 PASS document.elementFromPoint(60,60) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 60, 60, false, false)
22 PASS hitTestCountDelta() is 2
23 PASS hitTestCacheHitsDelta() is 1
25 Hit test fixed div after scroll
27 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
28 PASS hitTestCountDelta() is 2
29 PASS hitTestCacheHitsDelta() is 0
30 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
31 PASS hitTestCountDelta() is 2
32 PASS hitTestCacheHitsDelta() is 0
33 PASS document.lastHitNode is document.elementFromPoint(12, 12)
35 Hit test after main frame scroll
37 PASS document.elementFromPoint(60,75) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 60, 75, false, false)
38 PASS hitTestCountDelta() is 2
39 PASS hitTestCacheHitsDelta() is 0
40 PASS document.elementFromPoint(60,25) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 60, 25, false, false)
41 PASS hitTestCountDelta() is 2
42 PASS hitTestCacheHitsDelta() is 0
43 PASS document.lastHitNode is document.elementFromPoint(60, 25)
45 Hit test after style change
47 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
48 PASS hitTestCountDelta() is 2
49 PASS hitTestCacheHitsDelta() is 0
50 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
51 PASS hitTestCountDelta() is 2
52 PASS hitTestCacheHitsDelta() is 0
54 Hit test after dom manipulation
56 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
57 PASS hitTestCountDelta() is 2
58 PASS hitTestCacheHitsDelta() is 0
59 PASS document.elementFromPoint(12,12) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 12, 12, false, false)
60 PASS hitTestCountDelta() is 2
61 PASS hitTestCacheHitsDelta() is 0
63 Hit test iframe; ensuring child co-ordinates are not in parent cache
65 PASS internals.elementFromPoint(document, 25, 80, false, true) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 25, 80, false, true)
66 PASS internals.elementFromPoint(document, 15, 40, false, true) is internals.clearHitTestCache(document); internals.elementFromPoint(document, 15, 40, false, true)
67 PASS successfullyParsed is true