mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 20:44:48 -04:00
!268 add ToggleShownStateForAllAppWindow interface mock
Merge pull request !268 from xiaojianfeng/master
This commit is contained in:
@@ -466,6 +466,18 @@ export function mockWindow() {
|
||||
})
|
||||
}
|
||||
},
|
||||
ToggleShownStateForAllAppWindows: function (...args) {
|
||||
console.warn("window.ToggleShownStateForAllAppWindows 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)
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
},
|
||||
AvoidAreaType: {
|
||||
TYPE_SYSTEM: 0,
|
||||
TYPE_CUTOUT: 1,
|
||||
|
||||
Reference in New Issue
Block a user