mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 22:43:32 -04:00
feat: add wakeup suspend interface
Signed-off-by: qiuxiangdong <qiuxiangdong3@huawei.com>
This commit is contained in:
@@ -36,6 +36,14 @@ export function mockPower() {
|
|||||||
resolve(paramMock.paramBooleanMock);
|
resolve(paramMock.paramBooleanMock);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
wakeupDevice: function (...args) {
|
||||||
|
console.warn("power.wakeupDevice interface mocked in the Previewer. How this interface works on the" +
|
||||||
|
" Previewer may be different from that on a real device.")
|
||||||
|
},
|
||||||
|
suspendDevice: function (...args) {
|
||||||
|
console.warn("power.suspendDevice interface mocked in the Previewer. How this interface works on the" +
|
||||||
|
" Previewer may be different from that on a real device.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return power
|
return power
|
||||||
|
|||||||
Reference in New Issue
Block a user