From 9e0f3292e7e3798874eaa7379c8e350881134ed2 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 26 Mar 2024 21:20:02 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=94=AF=E6=8C=81=20ios=20=E7=AB=AF=20?= =?UTF-8?q?webview=20&=20app=20=E6=88=AA=E5=9B=BE=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/action-sheet/action-sheet.test.js | 52 +++++++------- .../API/get-window-info/get-window-info.uvue | 56 +++++++++------ pages/API/modal/modal.test.js | 72 +++++++++---------- pages/API/navigator/new-page/onLoad.test.js | 8 +-- pages/API/toast/toast.test.js | 24 +++---- .../template/navbar-lite/navbar-lite.test.js | 6 +- .../webview-screenshot-comparison.test.js | 9 +-- .../webview-screenshot-comparison.uvue | 3 +- .../webview-screenshot.test.js | 6 +- store/index.uts | 28 +++++++- 10 files changed, 151 insertions(+), 113 deletions(-) diff --git a/pages/API/action-sheet/action-sheet.test.js b/pages/API/action-sheet/action-sheet.test.js index 2de304cd..0d32a133 100644 --- a/pages/API/action-sheet/action-sheet.test.js +++ b/pages/API/action-sheet/action-sheet.test.js @@ -18,7 +18,7 @@ describe('API-loading', () => { const windowHeight = res.windowHeight * res.pixelRatio; const windowWidth = res.windowWidth * res.pixelRatio; const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -30,7 +30,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -59,7 +59,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -70,7 +70,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -101,7 +101,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -112,7 +112,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -142,7 +142,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -153,7 +153,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -183,7 +183,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -194,7 +194,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -224,7 +224,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -235,7 +235,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -268,7 +268,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -279,7 +279,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -309,7 +309,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -320,7 +320,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -350,7 +350,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -361,7 +361,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -391,7 +391,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -402,7 +402,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -433,7 +433,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -444,7 +444,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -474,7 +474,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -485,7 +485,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() @@ -515,7 +515,7 @@ describe('API-loading', () => { if (isAndroid) { const image = await program.screenshot({ - adb: true, + deviceShot: true, area: { x: 0, y: 200, @@ -526,7 +526,7 @@ describe('API-loading', () => { expect(image).toMatchImageSnapshot(); }else{ const image = await program.screenshot({ - adb: true, + deviceShot: true, fullPage: true }); expect(image).toMatchImageSnapshot() diff --git a/pages/API/get-window-info/get-window-info.uvue b/pages/API/get-window-info/get-window-info.uvue index 0a739a0c..07cb2e2c 100644 --- a/pages/API/get-window-info/get-window-info.uvue +++ b/pages/API/get-window-info/get-window-info.uvue @@ -19,7 +19,8 @@