mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 22:43:32 -04:00
@@ -32,14 +32,14 @@ export function mockPointer() {
|
||||
isPointerVisible: function (...args) {
|
||||
console.warn("multimodalInput.pointer.isPointerVisible interface mocked in the Previewer." +
|
||||
"How this interface works on the" + " Previewer may be different from that on a real device.");
|
||||
const len = args.length
|
||||
if (typeof args[len - 1] === 'function') {
|
||||
args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock)
|
||||
} else {
|
||||
return new Promise((resolve) => {
|
||||
resolve(paramMock.paramBooleanMock)
|
||||
})
|
||||
}
|
||||
const len = args.length
|
||||
if (typeof args[len - 1] === 'function') {
|
||||
args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock)
|
||||
} else {
|
||||
return new Promise((resolve) => {
|
||||
resolve(paramMock.paramBooleanMock)
|
||||
})
|
||||
}
|
||||
},
|
||||
};
|
||||
return pointer
|
||||
|
||||
@@ -18,7 +18,7 @@ export const MemLevel = {
|
||||
MEM_LEVEL_DEFAULT: 8
|
||||
};
|
||||
export const ErrorCode = {
|
||||
ERROR_CODE_OK: 0,
|
||||
ERROR_CODE_OK: 1,
|
||||
ERROR_CODE_ERRNO: -1,
|
||||
};
|
||||
export const CompressLevel = {
|
||||
|
||||
Reference in New Issue
Block a user