Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a8a543af
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a8a543af
编写于
1月 17, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 17, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7185 uitest d.ts调整,arkXtest测试套做对应适配。for monthly 1018
Merge pull request !7185 from 周柯/cherry-pick-1673408427
上级
f340db42
3d381d2d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
arkXtest/uitest/src/main/ets/test/uitest.test.ets
arkXtest/uitest/src/main/ets/test/uitest.test.ets
+6
-6
未找到文件。
arkXtest/uitest/src/main/ets/test/uitest.test.ets
浏览文件 @
a8a543af
...
@@ -808,8 +808,8 @@ export default function UiTest() {
...
@@ -808,8 +808,8 @@ export default function UiTest() {
expect
(
text
!==
null
)
.
assertTrue
()
expect
(
text
!==
null
)
.
assertTrue
()
let
bounds
=
await
text
.
getBounds
();
let
bounds
=
await
text
.
getBounds
();
expect
(
bounds
!==
null
)
.
assertTrue
()
expect
(
bounds
!==
null
)
.
assertTrue
()
expect
(
bounds
.
right
X
)
.
assertLarger
(
bounds
.
leftX
)
expect
(
bounds
.
right
)
.
assertLarger
(
bounds
.
left
)
expect
(
bounds
.
bottom
Y
)
.
assertLarger
(
bounds
.
topY
)
expect
(
bounds
.
bottom
)
.
assertLarger
(
bounds
.
top
)
await
stopApplication
(
'com.uitestScene.acts'
)
await
stopApplication
(
'com.uitestScene.acts'
)
})
})
...
@@ -1204,22 +1204,22 @@ export default function UiTest() {
...
@@ -1204,22 +1204,22 @@ export default function UiTest() {
let
window5
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
window5
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
bounds5
=
await
window5
.
getBounds
()
let
bounds5
=
await
window5
.
getBounds
()
await
window5
.
resize
(
bounds5
.
right
X
-
bounds5
.
leftX
,
300
,
ResizeDirection
.
DOWN
)
await
window5
.
resize
(
bounds5
.
right
-
bounds5
.
left
,
300
,
ResizeDirection
.
DOWN
)
let
window6
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
window6
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
bounds6
=
await
window6
.
getBounds
()
let
bounds6
=
await
window6
.
getBounds
()
expect
(
bounds6
!=
bounds5
)
.
assertTrue
()
expect
(
bounds6
!=
bounds5
)
.
assertTrue
()
await
window6
.
resize
(
bounds6
.
right
X
-
bounds6
.
leftX
,
500
,
ResizeDirection
.
UP
)
await
window6
.
resize
(
bounds6
.
right
-
bounds6
.
left
,
500
,
ResizeDirection
.
UP
)
let
window7
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
window7
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
bounds7
=
await
window7
.
getBounds
()
let
bounds7
=
await
window7
.
getBounds
()
expect
(
bounds7
!=
bounds6
)
.
assertTrue
()
expect
(
bounds7
!=
bounds6
)
.
assertTrue
()
await
window7
.
resize
(
300
,
bounds7
.
bottom
Y
-
bounds7
.
topY
,
ResizeDirection
.
LEFT
)
await
window7
.
resize
(
300
,
bounds7
.
bottom
-
bounds7
.
top
,
ResizeDirection
.
LEFT
)
let
window8
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
window8
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
bounds8
=
await
window8
.
getBounds
()
let
bounds8
=
await
window8
.
getBounds
()
expect
(
bounds8
!=
bounds7
)
.
assertTrue
()
expect
(
bounds8
!=
bounds7
)
.
assertTrue
()
await
window8
.
resize
(
500
,
bounds8
.
bottom
Y
-
bounds8
.
topY
,
ResizeDirection
.
RIGHT
)
await
window8
.
resize
(
500
,
bounds8
.
bottom
-
bounds8
.
top
,
ResizeDirection
.
RIGHT
)
let
window9
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
window9
=
await
driver
.
findWindow
({
bundleName
:
'com.uitestScene.acts'
})
let
bounds9
=
await
window9
.
getBounds
()
let
bounds9
=
await
window9
.
getBounds
()
expect
(
bounds9
!=
bounds8
)
.
assertTrue
()
expect
(
bounds9
!=
bounds8
)
.
assertTrue
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录