Skip to content

Commit aca7383

Browse files
committed
Update test to include binding change
1 parent 161e455 commit aca7383

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

tests/DOMAPI/HTMLCanvasElement__test.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/DOMAPI/HTMLCanvasElement__test.res

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ switch ctx.fillStyle->FillStyle.decode {
1717
| FillStyle.CanvasGradient(_) => Console.log("CanvasGradient")
1818
| FillStyle.CanvasPattern(_) => Console.log("CanvasPattern")
1919
}
20+
21+
let img: DOMAPI.htmlImageElement = document->Document.createElement("img")->Obj.magic
22+
ctx->CanvasRenderingContext2D.drawImageWithDimensions(~image=img, ~dx=0., ~dy=0., ~dw=200., ~dh=200.)
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
open Global
22

33
let input: DOMAPI.htmlInputElement =
4-
document->Document.createElement(~localName="input")->Prelude.unsafeConversation
4+
document->Document.createElement("input")->Prelude.unsafeConversation
55
let value = input.value

0 commit comments

Comments
 (0)