Skip to content

Commit 8d151be

Browse files
committed
Add ImageData tests
1 parent 6fe2fbc commit 8d151be

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

tests/DOMAPI/ImageData.res__test.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
open DOMAPI
2+
3+
let imageData = ImageData.makeWithData(~data=Uint8ClampedArray.fromArray([]), ~sw=100, ~sh=100)
4+
5+
imageData.data->TypedArray.length->Console.log

0 commit comments

Comments
 (0)