提交 28f396fe 编写于 作者: H hdx

create-canvas-context-async: 新增所有 context API

上级 05e3024a
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
return { isCanvasContextNull : false return { isCanvasContextNull : false
} }
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
uni.createCanvasContextAsync({ uni.createCanvasContextAsync({
......
...@@ -10,7 +10,7 @@ describe('create-canvas-context-async', () => { ...@@ -10,7 +10,7 @@ describe('create-canvas-context-async', () => {
it('page canvas', async () => { it('page canvas', async () => {
await page.waitFor(100) await page.waitFor(100)
const data = await page.data() const data = await page.data()
expect(data.isCanvasContextNull).toBe(true) expect(data.testCreateCanvasContextAsyncSuccess).toBe(true)
}) })
it('component canvas', async () => { it('component canvas', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册