uitest MockAPI接口增加. Signed-off-by: <cairui13@h-partners.com>

Signed-off-by: Your Name <you@example.com>
This commit is contained in:
Your Name
2022-07-18 18:09:56 +08:00
parent fe66bf7d0b
commit e06e2cf392
@@ -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)
});