blob: d8e4635c53cf18d9c4f9e9b79f171092150d859a [file] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ UnifiedPDFEnabled=true ] -->
<html>
<head>
<script src="../resources/ui-helper.js"></script>
<body>
<embed id="plugin" src="../http/tests/pdf/resources/non-linearized.pdf" style="width: 100%; height: 100vh;">
</body>
<script>
window.addEventListener('load', async () => {
if (!window.internals || !window.testRunner)
return;
let pluginElement = document.getElementById("plugin");
testRunner.waitUntilDone();
window.internals.registerPDFTest(async () => {
internals.setPDFDisplayModeForTesting(pluginElement, "TwoUpContinuous");
internals.setPDFDisplayModeForTesting(pluginElement, "TwoUpDiscrete");
await UIHelper.ensureStablePresentationUpdate();
testRunner.notifyDone();
}, pluginElement);
});
</script>
</head>
</html>