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

Side by Side Diff: LayoutTests/fast/loader/policy-delegate-action-hit-test-zoomed.html

Issue 14328011: Remove hit test from dispatchDecidePolicyForNavigationAction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with rebaselines Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <p>
2 This is a test for <i><a href="rdar://problem/6755137">rdar://problem/675513 7</a>
3 Action dictionary for policy decision is missing keys when full-page zoom is used</i>.
4 </p>
5 <a id="link" href="about:blank">Link</a>
6 <pre id="log"></pre>
7 <script>
8 function log(message)
9 {
10 document.getElementById("log").appendChild(document.createTextNode(messa ge + '\n'));
11 }
12
13 if (window.testRunner) {
14 testRunner.dumpAsText();
15
16 eventSender.zoomPageIn();
17 eventSender.zoomPageIn();
18
19 var zoomFactor = 1.2 * 1.2;
20
21 var link = document.getElementById("link");
22 var x = (link.offsetLeft + link.offsetWidth / 2) * zoomFactor;
23 var y = (link.offsetTop + link.offsetHeight / 2) * zoomFactor;
24
25 testRunner.setCustomPolicyDelegate(true, false);
26
27 log("The policy delegate message should indicate that the originating no de is the text child of an anchor element.");
28
29 eventSender.mouseMoveTo(x, y);
30 eventSender.mouseDown();
31 eventSender.mouseUp();
32 } else
33 log("The test can only be run in DumpRenderTree.");
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698