Skip to content

Commit

Permalink
[WPT] BFCache: eligibility (BroadcastChannel)
Browse files Browse the repository at this point in the history
Bug: 1107415
Change-Id: I25afa41274278b0976ad1fa0fdd50015a3f6ce77
  • Loading branch information
hiroshige-g authored and chromium-wpt-export-bot committed Oct 14, 2021
1 parent 2c83d2e commit 730ae9d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="../resources/helper.sub.js"></script>
<script>
runEventTest(
{funcBeforeNavigation: () => {
window.bc = new BroadcastChannel('foo');
window.addEventListener('pagehide', () => window.bc.close());
}},
'Eligibility (BroadcastChannel closed in pagehide event)');
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE HTML>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="../resources/helper.sub.js"></script>
<script>
runEventTest(
{funcBeforeNavigation: () => {
window.bc = new BroadcastChannel('foo');
}},
'Eligibility (BroadcastChannel)');
</script>

0 comments on commit 730ae9d

Please sign in to comment.