From b45fe3f5ac11f67e1d015a4d6ed9a984bdd26828 Mon Sep 17 00:00:00 2001 From: zhouke Date: Fri, 13 Jan 2023 11:49:53 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20ef0c440=20from=20https://gitee.com/zhou?= =?UTF-8?q?-ke-0929/docs=5F2/pulls/13465=20Rect=E7=B1=BB=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E8=A1=A5=E5=85=85changelog.Signed-o?= =?UTF-8?q?ff-by:=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- .../changelogs-testfwk_arkxtest.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md new file mode 100644 index 0000000000..d508e473d7 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md @@ -0,0 +1,42 @@ +# 测试子系统ChangeLog + +## cl.testfwk_arkxtest.1 Rect控件边框信息类接口名称变更 + +表示控件边框信息的枚举类型Rect定义自4.0.2.1版本起进行了变更。 + +## 变更影响 + +此变更影响@ohos.uitest提供的Rect接口。用户此前在测试用例开发中使用了@ohos.uitest-api9 中Rect接口的,需要进行适配才可以在新版本SDK环境正常编译通过。 + +## 关键的接口/组件变更 + +### Rect9+ + +变更前: + +| 名称 | 值 | 说明 | +| ------- | ---- | ------------------------- | +| leftX | 1 | 控件边框的左上角的X坐标。 | +| topY | 2 | 控件边框的左上角的Y坐标。 | +| rightX | 3 | 控件边框的右下角的X坐标。 | +| bottomY | 4 | 控件边框的右下角的Y坐标。 | + +变更后: + +| 名称 | 值 | 说明 | +| ------ | ---- | ------------------------- | +| left | 1 | 控件边框的左上角的X坐标。 | +| top | 2 | 控件边框的左上角的Y坐标。 | +| right | 3 | 控件边框的右下角的X坐标。 | +| bottom | 4 | 控件边框的右下角的Y坐标。 | + +## 适配指导 + +### 适配接口名称变更 + +可按照如下规则做类名替换: + +- `leftX-->left` +- `topY-->top` +- `rightX-->right` +- `bottomY-->bottom` -- GitLab