mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 20:44:48 -04:00
uitest MockAPI接口增加. Signed-off-by: <cairui13@h-partners.com>
Signed-off-by: Your Name <you@example.com>
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user