blob: f53c3528dea468788bb15a7840d309c990f555d6 [file] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ UnifiedPDFEnabled=true PDFPluginHUDEnabled=false ] -->
<html>
<head>
<style>
embed {
width: 600px;
height: 600px;
border: 1px solid red;
}
</style>
<script src="../resources/ui-helper.js"></script>
</head>
<body>
<embed id="plugin" src="../resources/image.pdf"></embed>
<pre id="layers"></pre>
<script>
testRunner?.waitUntilDone();
testRunner?.dumpAsText();
internals?.registerPDFTest(async () => {
await UIHelper.zoomToScale(1.3);
await UIHelper.waitForPDFFadeIn();
layers.textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS);
testRunner?.notifyDone();
}, plugin);
</script>
</body>
</html>