From e06e2cf3927aeeeb63d1b4e3d20ac2b8b28eea86 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 Jul 2022 18:09:56 +0800 Subject: [PATCH] =?UTF-8?q?uitest=20MockAPI=E6=8E=A5=E5=8F=A3=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0.=20Signed-off-by:=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Your Name --- .../extend/systemplugin/napi/ohos_uitest.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_uitest.js b/runtime/main/extend/systemplugin/napi/ohos_uitest.js index 738af166..20eb6313 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_uitest.js +++ b/runtime/main/extend/systemplugin/napi/ohos_uitest.js @@ -45,22 +45,22 @@ export const WindowMode = { } export const Point = { - X: '[PC Preview] unknown X'; - Y: '[PC Preview] unknown Y'; + X: '[PC Preview] unknown X', + Y: '[PC Preview] unknown Y' } export const Rect = { - leftX: '[PC Preview] unknown leftX'; - topY: '[PC Preview] unknown topY'; - rightX: '[PC Preview] unknown rightX'; - bottomY: '[PC Preview] unknown bottomY'; + leftX: '[PC Preview] unknown leftX', + topY: '[PC Preview] unknown topY', + rightX: '[PC Preview] unknown rightX', + bottomY: '[PC Preview] unknown bottomY' } export const WindowFilter = { - bundleName: '[PC Preview] unknown bundleName'; - title: '[PC Preview] unknown title'; - focused: '[PC Preview] unknown focused'; - actived: '[PC Preview] unknown actived'; + bundleName: '[PC Preview] unknown bundleName', + title: '[PC Preview] unknown title', + focused: '[PC Preview] unknown focused', + actived: '[PC Preview] unknown actived' } const ByClass = class ByMock { @@ -425,8 +425,8 @@ const UiWindowClass = class UiWindowMock { resolve(paramMock.paramBoolMock) }); }; - this.focuse = function(...args) { - console.warn('uitest.UiWindowMock.focuse' + warnMessage) + this.focus = function(...args) { + console.warn('uitest.UiWindowMock.focus' + warnMessage) return new Promise((resolve) => { resolve(paramMock.paramBoolMock) });