mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 20:44:48 -04:00
!166 screenshort js api mock
Merge pull request !166 from 我想送你上月球/master
This commit is contained in:
@@ -16,6 +16,23 @@
|
||||
import { paramMock } from "./utils"
|
||||
|
||||
export function mockScreenshot() {
|
||||
const RectMock = {
|
||||
left: '[PC preview] unknow Rect.left',
|
||||
top: '[PC preview] unknow Rect.top',
|
||||
width: '[PC preview] unknow Rect.width',
|
||||
height: '[PC preview] unknow Rect.height'
|
||||
}
|
||||
const SizeMock = {
|
||||
width: '[PC preview] unknow Size.width',
|
||||
height: '[PC preview] unknow Size.height',
|
||||
}
|
||||
const ScreenshotOptionsMock= {
|
||||
screenRect: RectMock,
|
||||
imageSize: SizeMock,
|
||||
rotation: '[PC preview] unknow Size.width',
|
||||
displayId: '[PC preview] unknow Size.width',
|
||||
}
|
||||
|
||||
const screenshotMock = {
|
||||
ImageSource: '[PC preview] unknow ImageSource'
|
||||
}
|
||||
@@ -34,4 +51,4 @@ export function mockScreenshot() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user