harmony 鸿蒙Test Subsystem ChangeLog
Test Subsystem ChangeLog
cl.testfwk_arkxtest.1 API Name Change of Rect
The definition of Rect, an enumeration type that indicates the component bound information, is changed since version 4.0.2.1.
Change Impacts
This change affects the Rect API provided by @ohos.uitest. If you have used the Rect API of @ohos.uitest-api9 during test case development, adaptation is required so that the compilation can be successful in the SDK environment of the new version.
Key API/Component Changes
Rect9+
Before change
Name | Value | Description |
---|---|---|
leftX | 1 | X-coordinate of the upper left corner of the component bounds. |
topY | 2 | Y-coordinate of the upper left corner of the component bounds. |
rightX | 3 | X-coordinate of the lower right corner of the component bounds. |
bottomY | 4 | Y-coordinate of the lower right corner of the component bounds. |
After change
Name | Value | Description |
---|---|---|
left | 1 | X-coordinate of the upper left corner of the component bounds. |
top | 2 | Y-coordinate of the upper left corner of the component bounds. |
right | 3 | X-coordinate of the lower right corner of the component bounds. |
bottom | 4 | Y-coordinate of the lower right corner of the component bounds. |
Adaptation Guide
Adaptation to the API Name Change
You can replace the class name according to the following rules:
leftX-->left
topY-->top
rightX-->right
bottomY-->bottom
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Web Subsystem ChangeLog
harmony 鸿蒙Ability Subsystem ChangeLog
harmony 鸿蒙Bluetooth Subsystem ChangeLog
harmony 鸿蒙Distributed Data Management Subsystem JS API Changelog
harmony 鸿蒙File Management Subsystem ChangeLog
harmony 鸿蒙Globalization Subsystem ChangeLog
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦