Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
25e109b6
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看板
未验证
提交
25e109b6
编写于
6月 26, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 26, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9067 【ACE子系统】修复失败用例
Merge pull request !9067 from 张立哲/master
上级
9dccf421
16591dd5
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
79 addition
and
81 deletion
+79
-81
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Grid/Grid_Row/onBreakpointChange/onBreakpointChange.ets
...s/Grid/Grid_Row/onBreakpointChange/onBreakpointChange.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Grid/Grid_Row/onBreakpointChange/onBreakpointChange.test.ets
...d/Grid_Row/onBreakpointChange/onBreakpointChange.test.ets
+6
-8
arkui/ace_ets_layout_test/entry/src/main/ets/test/Stack/Stack_change/stackAlignChange.test.ets
...ain/ets/test/Stack/Stack_change/stackAlignChange.test.ets
+72
-72
未找到文件。
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Grid/Grid_Row/onBreakpointChange/onBreakpointChange.ets
浏览文件 @
25e109b6
...
...
@@ -21,7 +21,7 @@ struct GridRow_onBreakpoint {
build() {
Column() {
Text(this.textBreakpoint).fontSize(9).fontColor(0xCCCCCC).key('
textBreakpointChange
')
Text(this.textBreakpoint).fontSize(9).fontColor(0xCCCCCC).key('
GridRowText
')
GridRow({
columns: { xs: 1, sm: 2, md: 3, lg: 4, xl: 5, xxl: 6},
gutter: {
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Grid/Grid_Row/onBreakpointChange/onBreakpointChange.test.ets
浏览文件 @
25e109b6
...
...
@@ -14,7 +14,6 @@
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest';
import router from '@ohos.router';
import CommonFunc from '../../../../MainAbility/common/Common';
export default function GridRow_onBreakpoint() {
...
...
@@ -51,8 +50,8 @@ export default function GridRow_onBreakpoint() {
* @tc.name testOnBreakChange
* @tc.desc Trigger event printing xxl
*/
it('SUB_ACE_GridRow
O
nBreakPointChange_0100', 0, async function (done) {
console.info('SUB_ACE_GridRow
O
nBreakPointChange_0100 START');
it('SUB_ACE_GridRow
_o
nBreakPointChange_0100', 0, async function (done) {
console.info('SUB_ACE_GridRow
_o
nBreakPointChange_0100 START');
await CommonFunc.sleep(2000)
let Breakpoint_1 = CommonFunc.getComponentRect('GridRow_onBreakpoint001');
...
...
@@ -65,11 +64,10 @@ export default function GridRow_onBreakpoint() {
let seventhBreakpoint = CommonFunc.getComponentRect('GridRow_onBreakpoint_6');
let gridRowBreakpointJson = getInspectorByKey('GridRow_onBreakpoint001');
let gridRow = JSON.parse(gridRowBreakpointJson);
let driver = await UiDriver.create()
let textComponent2 = await driver.findComponent(BY.key('textBreakpointChange'));
let text2 = await textComponent2.getText();
let textComponent2 = getInspectorByKey('GridRowText');
let text2 = JSON.parse(textComponent2);
expect(gridRow.$type).assertEqual('GridRow');
expect(text2).assertEqual('xxl');
expect(text2
.$attrs.content
).assertEqual('xxl');
expect(firstBreakpoint.top).assertEqual(Breakpoint_1.top);
expect(secondBreakpoint.top).assertEqual(secondBreakpoint.top);
...
...
@@ -81,7 +79,7 @@ export default function GridRow_onBreakpoint() {
expect(Math.round(fourthBreakpoint.left - thirdBreakpoint.right)).assertEqual(vp2px(30));
expect(Math.round(seventhBreakpoint.top - firstBreakpoint.bottom)).assertEqual(vp2px(30));
console.info('SUB_ACE_GridRow
O
nBreakPointChange_0100 END');
console.info('SUB_ACE_GridRow
_o
nBreakPointChange_0100 END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Stack/Stack_change/stackAlignChange.test.ets
浏览文件 @
25e109b6
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录