blob: 18475a3d67f7d8688269ee7b433617e1fbb5c6e6 [file] [log] [blame] [edit]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="utils.js"></script>
<script>
assert_true(document.prerendering);
async function startPresentationRequest() {
const bc = new PrerenderChannel('prerender-channel');
const presentationRequest = new PresentationRequest(
'https://example.com/presentation.html');
try {
const _ = await presentationRequest.start();
bc.postMessage('unexpected success');
} catch (err) {
bc.postMessage('request failed');
} finally {
bc.close();
}
}
startPresentationRequest();
</script>