harmony 鸿蒙Test Subsystem ChangeLog

  • 2023-02-17
  • 浏览 (520)

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

harmony 鸿蒙Media Subsystem ChangeLog

harmony 鸿蒙USB Subsystem API Changelog

0  赞