| <!DOCTYPE html><!-- webkit-test-runner [ UnifiedPDFEnabled=true PDFPluginHUDEnabled=false ] --> |
| <html> |
| <meta name="fuzzy" content="maxDifference=0-10;totalPixels=0-25" /> |
| <script src="../../resources/ui-helper.js"></script> |
| <body> |
| <embed style="width: 100%; height: 100vh;" id="plugin" src="../resources/annotation-checkbox-inactive.pdf"></embed> |
| <script> |
| let pluginElement = document.getElementById("plugin"); |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| window.internals.registerPDFTest(async () => { |
| let annotationBounds = window.internals.pdfAnnotationRectsForTesting(pluginElement)[0]; |
| let centerX = annotationBounds["x"] + annotationBounds["width"] / 2; |
| let centerY = annotationBounds["y"] + annotationBounds["height"] / 2; |
| |
| UIHelper.activateAt(centerX, centerY); |
| await UIHelper.renderingUpdate(); |
| |
| testRunner.notifyDone(); |
| }, pluginElement); |
| } |
| </script> |
| </body> |
| </html> |