summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/workers/image_data_worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/workers/image_data_worker.ts')
-rw-r--r--cli/tests/testdata/workers/image_data_worker.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/testdata/workers/image_data_worker.ts b/cli/tests/testdata/workers/image_data_worker.ts
new file mode 100644
index 000000000..bf920d2f3
--- /dev/null
+++ b/cli/tests/testdata/workers/image_data_worker.ts
@@ -0,0 +1,2 @@
+const data = new ImageData(2, 2, { colorSpace: "display-p3" });
+postMessage(data.data.length);