| OLD | NEW |
| (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> | |
| OLD | NEW |