Skip to content

Commit

Permalink
Add tests for structuredClone
Browse files Browse the repository at this point in the history
  • Loading branch information
surma authored Jul 27, 2021
1 parent 48b6d27 commit 7cfc0be
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions html/webappapis/structured-clone/structured-clone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<title>structuredClone() tests</title>
<meta charset=utf-8>
<div id=log></div>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/html/webappapis/structured-clone/structured-clone-battery-of-tests.js></script>
<script src=/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js></script>
<script src=/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js></script>
<script>
runStructuredCloneBatteryOfTests({
structuredClone: (obj, transfer) => structuredClone(obj, {transfer});
});
</script>

0 comments on commit 7cfc0be

Please sign in to comment.