!578 补充 mock

Merge pull request !578 from binny1024/master
This commit is contained in:
openharmony_ci 2022-08-02 01:06:56 +00:00 committed by Gitee
commit c98c19a6cf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 0 deletions

View File

@ -78,6 +78,11 @@ export function mockDisplay() {
})
}
},
hasPrivateWindow: function (...args) {
console.warn("Display.hasPrivateWindow interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.")
return paramMock.paramBooleanMock
},
on: function (...args) {
console.warn("Display.on interface mocked in the Previewer. How this interface works on the Previewer may be" +
" different from that on a real device.")

View File

@ -349,6 +349,10 @@ export const Window = {
})
}
},
setSnapshotSkip: function(...args) {
console.warn("Window.setSnapshotSkip interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
},
setSystemBarEnable: function(...args) {
console.warn("Window.setSystemBarEnable interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")