Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1887ba6a
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看板
未验证
提交
1887ba6a
编写于
8月 29, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 29, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9924 Stack ZIndex xts用例增加日志
Merge pull request !9924 from zhouyan/xts0827
上级
7dab7c8b
a00cfdd5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
48 addition
and
1 deletion
+48
-1
arkui/ace_ets_layout_test/ace_ets_layout_stack_test/entry/src/main/ets/test/Stack/StackItem_change/stack_zIndex.test.ets
...ain/ets/test/Stack/StackItem_change/stack_zIndex.test.ets
+48
-1
未找到文件。
arkui/ace_ets_layout_test/ace_ets_layout_stack_test/entry/src/main/ets/test/Stack/StackItem_change/stack_zIndex.test.ets
浏览文件 @
1887ba6a
...
@@ -133,16 +133,24 @@ export default function Stack_ZIndex() {
...
@@ -133,16 +133,24 @@ export default function Stack_ZIndex() {
let
theTop
=
Stack_ZIndex_012
.
top
;
let
theTop
=
Stack_ZIndex_012
.
top
;
let
num
=
await
imageComparisonAssert
(
0
,
theTop
);
let
num
=
await
imageComparisonAssert
(
0
,
theTop
);
await
CommonFunc
.
sleep
(
1000
);
await
CommonFunc
.
sleep
(
1000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_01
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_011
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_011
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_012
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_012
.
left
);
console
.
log
(
'Stack_ZIndex_011.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
console
.
log
(
'Stack_ZIndex_012.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentStart] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentStart] END'
);
done
();
done
();
...
@@ -168,18 +176,27 @@ export default function Stack_ZIndex() {
...
@@ -168,18 +176,27 @@ export default function Stack_ZIndex() {
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
await
CommonFunc
.
sleep
(
1000
);
await
CommonFunc
.
sleep
(
1000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_011.left - Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
))
expect
(
Math
.
round
(
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_011
.
right
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_011
.
right
));
console
.
log
(
'Stack_ZIndex_012.left - Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
))
expect
(
Math
.
round
(
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_012
.
right
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_012
.
right
));
console
.
log
(
'Stack_ZIndex_011.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
console
.
log
(
'Stack_ZIndex_012.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentCenter] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentCenter] END'
);
done
();
done
();
...
@@ -205,16 +222,24 @@ export default function Stack_ZIndex() {
...
@@ -205,16 +222,24 @@ export default function Stack_ZIndex() {
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
await
CommonFunc
.
sleep
(
1000
);
await
CommonFunc
.
sleep
(
1000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_01.right is'
,
+
Stack_ZIndex_01
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_011
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_011
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_012
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_012
.
right
);
console
.
log
(
'Stack_ZIndex_011.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_011
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_011
.
bottom
));
console
.
log
(
'Stack_ZIndex_012.top - Stack_ZIndex_01.top is'
,
+
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
expect
(
Math
.
round
(
Stack_ZIndex_012
.
top
-
Stack_ZIndex_01
.
top
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
bottom
-
Stack_ZIndex_012
.
bottom
));
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentEnd] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentEnd] END'
);
done
();
done
();
...
@@ -239,14 +264,21 @@ export default function Stack_ZIndex() {
...
@@ -239,14 +264,21 @@ export default function Stack_ZIndex() {
let
theTop
=
Stack_ZIndex_012
.
top
;
let
theTop
=
Stack_ZIndex_012
.
top
;
let
num
=
await
imageComparisonAssert
(
0
,
theTop
);
let
num
=
await
imageComparisonAssert
(
0
,
theTop
);
await
CommonFunc
.
sleep
(
1000
);
await
CommonFunc
.
sleep
(
1000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_01
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_011
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_011
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_012
.
left
);
expect
(
Stack_ZIndex_01
.
left
)
.
assertEqual
(
Stack_ZIndex_012
.
left
);
console
.
log
(
'Stack_ZIndex_01.bottom is'
,
+
Stack_ZIndex_01
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentBottomStart] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentBottomStart] END'
);
done
();
done
();
...
@@ -271,17 +303,25 @@ export default function Stack_ZIndex() {
...
@@ -271,17 +303,25 @@ export default function Stack_ZIndex() {
let
theTop
=
Stack_ZIndex_012
.
top
;
let
theTop
=
Stack_ZIndex_012
.
top
;
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
await
CommonFunc
.
sleep
(
1000
);
await
CommonFunc
.
sleep
(
3000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_01.bottom is'
,
+
Stack_ZIndex_01
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
console
.
log
(
'Stack_ZIndex_011.left - Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
))
expect
(
Math
.
round
(
Stack_ZIndex_011
.
left
-
Stack_ZIndex_01
.
left
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_011
.
right
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_011
.
right
));
console
.
log
(
'Stack_ZIndex_012.left - Stack_ZIndex_01.left is'
,
+
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
))
expect
(
Math
.
round
(
Stack_ZIndex_012
.
left
-
Stack_ZIndex_01
.
left
))
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_012
.
right
));
.
assertEqual
(
Math
.
round
(
Stack_ZIndex_01
.
right
-
Stack_ZIndex_012
.
right
));
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentBottom] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentBottom] END'
);
done
();
done
();
...
@@ -307,14 +347,21 @@ export default function Stack_ZIndex() {
...
@@ -307,14 +347,21 @@ export default function Stack_ZIndex() {
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
theLeft
=
Stack_ZIndex_012
.
left
;
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
let
num
=
await
imageComparisonAssert
(
theLeft
,
theTop
);
await
CommonFunc
.
sleep
(
3000
);
await
CommonFunc
.
sleep
(
3000
);
console
.
log
(
'num is'
,
+
num
);
expect
(
num
)
.
assertEqual
(
true
);
expect
(
num
)
.
assertEqual
(
true
);
console
.
log
(
'Stack_ZIndex_01.bottom is'
,
+
Stack_ZIndex_01
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_011
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
expect
(
Stack_ZIndex_01
.
bottom
)
.
assertEqual
(
Stack_ZIndex_012
.
bottom
);
console
.
log
(
'Stack_ZIndex_01.right is'
,
+
Stack_ZIndex_01
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_011
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_011
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_012
.
right
);
expect
(
Stack_ZIndex_01
.
right
)
.
assertEqual
(
Stack_ZIndex_012
.
right
);
console
.
log
(
'Stack_ZIndex_011.bottom - Stack_ZIndex_011.top is'
,
+
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
bottom
-
Stack_ZIndex_011
.
top
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.bottom - Stack_ZIndex_012.top is'
,
+
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
bottom
-
Stack_ZIndex_012
.
top
))
.
assertEqual
(
vp2px
(
100
));
console
.
log
(
'Stack_ZIndex_011.right - Stack_ZIndex_011.left is'
,
+
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
expect
(
Math
.
round
(
Stack_ZIndex_011
.
right
-
Stack_ZIndex_011
.
left
))
.
assertEqual
(
vp2px
(
200
));
console
.
log
(
'Stack_ZIndex_012.right - Stack_ZIndex_012.left is'
,
+
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
);
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
expect
(
Math
.
round
(
Stack_ZIndex_012
.
right
-
Stack_ZIndex_012
.
left
))
.
assertEqual
(
vp2px
(
100
));
console
.
info
(
'[testStackZIndexWithAlignmentBottomEnd] END'
);
console
.
info
(
'[testStackZIndexWithAlignmentBottomEnd] END'
);
done
();
done
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录