summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/presentation-api/receiving-ua/support/PresentationReceiver_unreached_receiving-ua.html
blob: 2b2a8b315efad53ab7d3b6fb51888d14aae5aa48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>

<meta charset="utf-8">
<title>Creating a receiving browsing context</title>
<link rel="author" title="Tomoyuki Shimizu" href="https://github.com/tomoyukilabs/">
<link rel="help" href="https://w3c.github.io/presentation-api/#creating-a-receiving-browsing-context">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../common.js"></script>
<script src="stash.js"></script>
<script>
add_completion_callback((tests, status) => {
    const stash = new Stash(stashIds.toReceiver, stashIds.toController);
    const log = document.getElementById('log');
    stash.send(JSON.stringify({ test: tests[0], status: status, log: log.innerHTML }));
});

test(() => {
    assert_unreached('Top-level navigation is disabled.');
});
</script>