harmony(鸿蒙)JS API Changes of the Test Subsystem

  • 2022-10-28
  • 浏览 (507)

JS API Changes of the Test Subsystem

The table below lists the APIs changes of the test subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.uitest PointerMatrix setPoint(finger: number, step: number, point: Point):void; Added
ohos.uitest PointerMatrix static create(fingers: number, steps: number):PointerMatrix; Added
ohos.uitest UiDriver injectMultiPointerAction(pointers: PointerMatrix, speed?: number):Promise<boolean>; Added
ohos.uitest UiDriver fling(from: Point, to: Point, stepLen: number, speed: number):Promise<void>; Added
ohos.uitest UiDriver waitForIdle(idleTime: number, timeout: number):Promise<boolean>; Added
ohos.uitest UiDriver pressHome():Promise<void>; Added
ohos.uitest UiDriver wakeUpDisplay():Promise<void>; Added
ohos.uitest UiDriver getDisplayDensity():Promise<Point>; Added
ohos.uitest UiDriver getDisplaySize():Promise<Point>; Added
ohos.uitest UiDriver setDisplayRotationEnabled(enabled:boolean):Promise<void>; Added
ohos.uitest UiDriver getDisplayRotation():Promise<DisplayRotation>; Added
ohos.uitest UiDriver setDisplayRotation(rotation: DisplayRotation):Promise<void>; Added
ohos.uitest DisplayRotation ROTATION_270 Added
ohos.uitest DisplayRotation ROTATION_180 Added
ohos.uitest DisplayRotation ROTATION_90 Added
ohos.uitest DisplayRotation ROTATION_0 Added

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the Accessibility Subsystem

harmony(鸿蒙)JS API Changes of the Account Subsystem

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Power Management Subsystem

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

0  赞