blob: e303d23ab0ba92c8b028a47aa09264b348697536 [file] [log] [blame] [edit]
<!DOCTYPE html><!-- webkit-test-runner [ UnifiedPDFEnabled=true PDFPluginHUDEnabled=false ] -->
<html>
<meta name="fuzzy" content="maxDifference=0-40; totalPixels=0-311" />
<script src="../../resources/ui-helper.js"></script>
<body>
<embed style="width: 100%; height: 100vh;" id="plugin" src="../resources/annotation-two-radio-buttons-first-active.pdf"></embed>
<script>
let pluginElement = document.getElementById("plugin");
if (window.testRunner) {
testRunner.waitUntilDone();
window.internals.registerPDFTest(async () => {
let annotationBounds = window.internals.pdfAnnotationRectsForTesting(pluginElement)[1];
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>