summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js')
-rw-r--r--testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js b/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js
new file mode 100644
index 0000000000..1358a71fc0
--- /dev/null
+++ b/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js
@@ -0,0 +1,14 @@
+// META: title=structuredClone() tests
+// META: script=/common/sab.js
+// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests.js
+// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js
+// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js
+
+runStructuredCloneBatteryOfTests({
+ structuredClone: (obj, transfer) => {
+ return new Promise(resolve => {
+ resolve(self.structuredClone(obj, { transfer }));
+ });
+ },
+ hasDocument: typeof document !== "undefined",
+});