Skip to content

Commit a56354e

Browse files
committed
test: add test case for offscreenCanvas
1 parent c6e2285 commit a56354e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/issue.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,10 @@ import WX = WechatMiniprogram
434434
}
435435
})
436436
}
437+
438+
// https://github.com/wechat-miniprogram/api-typings/issues/189
439+
{
440+
const offscreenCanvas = wx.createOffscreenCanvas(800, 600)
441+
expectType<number>(offscreenCanvas.height)
442+
expectType<number>(offscreenCanvas.width)
443+
}

0 commit comments

Comments
 (0)