From ac5e5fc558244d7c061c8a9ef2e215f48d4ff1fa Mon Sep 17 00:00:00 2001 From: jixinbao Date: Tue, 6 Aug 2024 13:47:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=20createCanvasContex?= =?UTF-8?q?tAsync=20=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../child-canvas.uvue | 43 - .../create-canvas-context-async.test.js | 25 - .../create-canvas-context-async.uvue | 943 ------------------ 3 files changed, 1011 deletions(-) delete mode 100644 pages/API/create-canvas-context-async/child-canvas.uvue delete mode 100644 pages/API/create-canvas-context-async/create-canvas-context-async.test.js delete mode 100644 pages/API/create-canvas-context-async/create-canvas-context-async.uvue diff --git a/pages/API/create-canvas-context-async/child-canvas.uvue b/pages/API/create-canvas-context-async/child-canvas.uvue deleted file mode 100644 index 0736f5a2..00000000 --- a/pages/API/create-canvas-context-async/child-canvas.uvue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/pages/API/create-canvas-context-async/create-canvas-context-async.test.js b/pages/API/create-canvas-context-async/create-canvas-context-async.test.js deleted file mode 100644 index c92f53ea..00000000 --- a/pages/API/create-canvas-context-async/create-canvas-context-async.test.js +++ /dev/null @@ -1,25 +0,0 @@ -const PAGE_PATH = '/pages/API/create-canvas-context-async/create-canvas-context-async' - -describe('create-canvas-context-async', () => { - let page - beforeAll(async () => { - page = await program.reLaunch(PAGE_PATH) - await page.waitFor('view') - }) - - it('page canvas', async () => { - await page.waitFor(100) - const data = await page.data() - expect(data.testCreateCanvasContextAsyncSuccess).toBe(true) - }) - - it('component canvas', async () => { - // child-canvas - await page.waitFor(100) - // const element = await page.$('.node-child-component') - const element = await page.$('child-canvas') - const data = await page.data() - expect(data.isCanvasContextNull).toBe(true) - - }) -}) diff --git a/pages/API/create-canvas-context-async/create-canvas-context-async.uvue b/pages/API/create-canvas-context-async/create-canvas-context-async.uvue deleted file mode 100644 index e4f6f789..00000000 --- a/pages/API/create-canvas-context-async/create-canvas-context-async.uvue +++ /dev/null @@ -1,943 +0,0 @@ - - - - - -- GitLab