From a04ce0029592b00312067d064f1b575e6bf10fcf 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 | 41 - .../create-canvas-context-async.test.js | 25 - .../create-canvas-context-async.uvue | 943 ------------------ 3 files changed, 1009 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 e5381f51..00000000 --- a/pages/API/create-canvas-context-async/child-canvas.uvue +++ /dev/null @@ -1,41 +0,0 @@ - - - \ No newline at end of file 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 6144e53a..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) - - }) -}) \ No newline at end of file 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 5ae2dbfa..00000000 --- a/pages/API/create-canvas-context-async/create-canvas-context-async.uvue +++ /dev/null @@ -1,943 +0,0 @@ - - - - - -- GitLab