Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D211841

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1898364
gecko-commit: 86a0535895e58b9e4e2a8c7ea7251a38732fca9c
gecko-reviewers: mgaudet
  • Loading branch information
saschanaz authored and moz-wptsync-bot committed Aug 21, 2024
1 parent 08519e7 commit 006422e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions streams/readable-streams/crashtests/from-cross-realm.https.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html class="test-wait">
<meta charset="utf-8">
<script type="module">
let a = window.open()
let dir = await a.navigator.storage.getDirectory()
let hdl = await dir.getFileHandle("7399d8cf-9ff9-494d-89eb-d3045f229c27", {"create": true})
let map = new Map([[]])
let b = ReadableStream.from(map)
let c = await hdl.createWritable({ })
await b.pipeTo(c, { }).catch(() => {
// Error expected as we are not piping the right form of chunk to FileHandle
})
document.documentElement.classList.remove("test-wait");
</script>

0 comments on commit 006422e

Please sign in to comment.