Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf authored Oct 20, 2022
1 parent 0d1ad75 commit 5989797
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webcodecs/chunk-serialization.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ async_test(t => {
async_test(t => {
runTest(t, 'video');
}, 'Verify EncodedVideoChunk is serializable.');

test(() => {
const chunk = createDefaultChunk("video", defaultVideoInit);
if (window.history)
assert_throws_dom("DataCloneError", () => history.pushState({ chunk }, null));
}, "Verify EncodedVideoChunk cannot be stored");

0 comments on commit 5989797

Please sign in to comment.