diff --git a/pages/API/action-sheet/action-sheet.test.js b/pages/API/action-sheet/action-sheet.test.js index 2de304cd920578c83bf3473714bb7cfdff8eb75d..0d32a1333759d9f0d3bb30b589b54cce9e10554b 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 0a739a0c8376935efe97079372181f047c56aea9..07cb2e2c99746a33f2ad62c3080913739b09d03b 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 @@