Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
166733e6
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看板
未验证
提交
166733e6
编写于
7月 06, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 06, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9231 修复"滚动类组件支持配置fling效果的参数"XTS用例测试异常
Merge pull request !9231 from 李鲲辉/master
上级
9efe6e89
b01eeeb8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
54 addition
and
49 deletion
+54
-49
arkui/ace_ets_layout_test/entry/src/main/ets/test/Grid/Grid_attribute/Grid_GridFriction.test.ets
...n/ets/test/Grid/Grid_attribute/Grid_GridFriction.test.ets
+14
-13
arkui/ace_ets_layout_test/entry/src/main/ets/test/List/List_attribute/List_ListFriction.test.ets
...n/ets/test/List/List_attribute/List_ListFriction.test.ets
+15
-13
arkui/ace_ets_layout_test/entry/src/main/ets/test/Scroll/Scroll_attribute/Scroll_ScrollFriction.test.ets
...st/Scroll/Scroll_attribute/Scroll_ScrollFriction.test.ets
+13
-12
arkui/ace_ets_layout_test/entry/src/main/ets/test/WaterFlow/WaterFlow_attribute/WaterFlow_WaterFlowFriction.test.ets
.../WaterFlow_attribute/WaterFlow_WaterFlowFriction.test.ets
+12
-11
未找到文件。
arkui/ace_ets_layout_test/entry/src/main/ets/test/Grid/Grid_attribute/Grid_GridFriction.test.ets
浏览文件 @
166733e6
...
...
@@ -15,34 +15,33 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import router from '@ohos.router';
import CommonFunc from '../../../MainAbility/common/Common';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection,
WindowMode, PointerMatrix, UiDirection, MouseButton } from '@ohos.UiTest';
import { MessageManager,Callback } from '../../../MainAbility/common/MessageManager';
export default function grid_GridFrictionTest() {
describe('
G
rid_GridFrictionTest', function () {
describe('
g
rid_GridFrictionTest', function () {
beforeEach(async function (done) {
console.info("Grid
_GridFrictionTest
beforeEach start");
console.info("Grid
FrictionPage
beforeEach start");
let options = {
url: 'MainAbility/pages/Grid/Grid_attribute/GridFrictionPage',
}
try {
router.clear();
let pages = router.getState();
console.info("get Grid
_GridFrictionTest
state pages:" + JSON.stringify(pages));
if (!("Grid
_GridFrictionTest
" == pages.name)) {
console.info("get Grid
_GridInitialIndex1
pages.name:" + JSON.stringify(pages.name));
console.info("get Grid
FrictionPage
state pages:" + JSON.stringify(pages));
if (!("Grid
FrictionPage
" == pages.name)) {
console.info("get Grid
FrictionPage
pages.name:" + JSON.stringify(pages.name));
let result = await router.push(options);
await CommonFunc.sleep(2000);
console.info("push Grid
_GridFrictionTest
page result:" + JSON.stringify(result));
console.info("push Grid
FrictionPage
page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push Grid
_GridFrictionTest
page error:" + err);
console.error("push Grid
FrictionPage
page error:" + err);
}
console.info("Grid
_GridFrictionTest
beforeEach end");
console.info("Grid
FrictionPage
beforeEach end");
done();
});
afterEach(async function () {
await CommonFunc.sleep(1000);
console.info("Grid
_GridFrictionTest
after each called");
console.info("Grid
FrictionPage
after each called");
});
/**
* @tc.number SUB_ACE_GRID_GRIDFRICTION_001
...
...
@@ -52,10 +51,11 @@ export default function grid_GridFrictionTest() {
it('testGridFriction', 0, async function (done) {
console.info('[testGridFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
await CommonFunc.sleep(2000);
let gridContainerStrJson = getInspectorByKey('Grid_GridFriction');
let gridContainerObj = JSON.parse(gridContainerStrJson);
expect(gridContainerObj.$type).assertEqual('Grid');
expect(gridContainerObj.$friction).assertEqual(0.6);
expect(gridContainerObj.$
attrs.
friction).assertEqual(0.6);
console.info('[testGridFriction] END');
done();
});
...
...
@@ -68,10 +68,11 @@ export default function grid_GridFrictionTest() {
it('testGridFriction', 0, async function (done) {
console.info('[testGridFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
await CommonFunc.sleep(2000);
let gridContainerStrJson = getInspectorByKey('Grid_GridFriction');
let gridContainerObj = JSON.parse(gridContainerStrJson);
expect(gridContainerObj.$type).assertEqual('Grid');
expect(gridContainerObj.$friction).assertEqual(10);
expect(gridContainerObj.$
attrs.
friction).assertEqual(10);
console.info('[testGridFriction] END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/List/List_attribute/List_ListFriction.test.ets
浏览文件 @
166733e6
...
...
@@ -15,34 +15,34 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import router from '@ohos.router';
import CommonFunc from '../../../MainAbility/common/Common';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection,
WindowMode, PointerMatrix, UiDirection, MouseButton } from '@ohos.UiTest';
import { MessageManager,Callback } from '../../../MainAbility/common/MessageManager';
export default function list_ListFrictionTest() {
describe('List_ListFrictionTest', function () {
describe('list_ListFrictionTest', function () {
beforeEach(async function (done) {
console.info("List
_ListFrictionTest
beforeEach start");
console.info("List
FrictionPage
beforeEach start");
let options = {
url: 'MainAbility/pages/List/List_attribute/ListFrictionPage',
}
try {
router.clear();
let pages = router.getState();
console.info("get List
_ListFrictionTest
state pages:" + JSON.stringify(pages));
if (!("
list_ListFrictionTest
" == pages.name)) {
console.info("get List
_ListInitialIndex1
pages.name:" + JSON.stringify(pages.name));
console.info("get List
FrictionPage
state pages:" + JSON.stringify(pages));
if (!("
ListFrictionPage
" == pages.name)) {
console.info("get List
FrictionPage
pages.name:" + JSON.stringify(pages.name));
let result = await router.push(options);
await CommonFunc.sleep(2000);
console.info("push List
_ListFrictionTest
page result:" + JSON.stringify(result));
console.info("push List
FrictionPage
page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push List
_ListFrictionTest
page error:" + err);
console.error("push List
FrictionPage
page error:" + err);
}
console.info("List
_ListFrictionTest
beforeEach end");
console.info("List
FrictionPage
beforeEach end");
done();
});
afterEach(async function () {
await CommonFunc.sleep(1000);
console.info("List
_ListFrictionTest
after each called");
console.info("List
FrictionPage
after each called");
});
/**
* @tc.number SUB_ACE_LIST_LISTFRICTION_001
...
...
@@ -52,10 +52,11 @@ export default function list_ListFrictionTest() {
it('testListFriction', 0, async function (done) {
console.info('[testListFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
await CommonFunc.sleep(2000);
let listContainerStrJson = getInspectorByKey('List_ListFriction');
let listContainerObj = JSON.parse(listContainerStrJson);
expect(listContainerObj.$type).assertEqual('List');
expect(listContainerObj.$friction).assertEqual(0.6);
expect(listContainerObj.$
attrs.
friction).assertEqual(0.6);
console.info('[testListFriction] END');
done();
});
...
...
@@ -68,10 +69,11 @@ export default function list_ListFrictionTest() {
it('testListFriction', 0, async function (done) {
console.info('[testListFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
await CommonFunc.sleep(2000);
let listContainerStrJson = getInspectorByKey('List_ListFriction');
let listContainerObj = JSON.parse(listContainerStrJson);
expect(listContainerObj.$type).assertEqual('List');
expect(listContainerObj.$friction).assertEqual(10);
expect(listContainerObj.$
attrs.
friction).assertEqual(10);
console.info('[testListFriction] END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Scroll/Scroll_attribute/Scroll_ScrollFriction.test.ets
浏览文件 @
166733e6
...
...
@@ -15,34 +15,33 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import router from '@ohos.router';
import CommonFunc from '../../../MainAbility/common/Common';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection,
WindowMode, PointerMatrix, UiDirection, MouseButton } from '@ohos.UiTest';
import { MessageManager,Callback } from '../../../MainAbility/common/MessageManager';
export default function scroll_ScrollFrictionTest() {
describe('
S
croll_ScrollFrictionTest', function () {
describe('
s
croll_ScrollFrictionTest', function () {
beforeEach(async function (done) {
console.info("Scroll
_ScrollFrictionTest
beforeEach start");
console.info("Scroll
FrictionPage
beforeEach start");
let options = {
url: 'MainAbility/pages/Scroll/Scroll_attribute/ScrollFrictionPage',
}
try {
router.clear();
let pages = router.getState();
console.info("get Scroll
_ScrollFrictionTest
state pages:" + JSON.stringify(pages));
if (!("Scroll
_ScrollFrictionTest
" == pages.name)) {
console.info("get Scroll
FrictionPage
state pages:" + JSON.stringify(pages));
if (!("Scroll
FrictionPage
" == pages.name)) {
console.info("get Scroll_ScrollInitialIndex1 pages.name:" + JSON.stringify(pages.name));
let result = await router.push(options);
await CommonFunc.sleep(2000);
console.info("push Scroll
_ScrollFrictionTest
page result:" + JSON.stringify(result));
console.info("push Scroll
FrictionPage
page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push Scroll
_ScrollFrictionTest
page error:" + err);
console.error("push Scroll
FrictionPage
page error:" + err);
}
console.info("Scroll
_ScrollFrictionTest
beforeEach end");
console.info("Scroll
FrictionPage
beforeEach end");
done();
});
afterEach(async function () {
await CommonFunc.sleep(1000);
console.info("Scroll
_ScrollFrictionTest
after each called");
console.info("Scroll
FrictionPage
after each called");
});
/**
* @tc.number SUB_ACE_SCROLL_SCROLLFRICTION_001
...
...
@@ -52,10 +51,11 @@ export default function scroll_ScrollFrictionTest() {
it('testScrollFriction', 0, async function (done) {
console.info('[testScrollFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
await CommonFunc.sleep(2000);
let scrollContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let scrollContainerObj = JSON.parse(scrollContainerStrJson);
expect(scrollContainerObj.$type).assertEqual('Scroll');
expect(scrollContainerObj.$friction).assertEqual(0.6);
expect(scrollContainerObj.$
attrs.
friction).assertEqual(0.6);
console.info('[testScrollFriction] END');
done();
});
...
...
@@ -68,10 +68,11 @@ export default function scroll_ScrollFrictionTest() {
it('testScrollFriction', 0, async function (done) {
console.info('[testScrollFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
await CommonFunc.sleep(2000);
let scrollContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let scrollContainerObj = JSON.parse(scrollContainerStrJson);
expect(scrollContainerObj.$type).assertEqual('Scroll');
expect(scrollContainerObj.$friction).assertEqual(10);
expect(scrollContainerObj.$
attrs.
friction).assertEqual(10);
console.info('[testScrollFriction] END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/WaterFlow/WaterFlow_attribute/WaterFlow_WaterFlowFriction.test.ets
浏览文件 @
166733e6
...
...
@@ -15,29 +15,28 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import router from '@ohos.router';
import CommonFunc from '../../../MainAbility/common/Common';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection,
WindowMode, PointerMatrix, UiDirection, MouseButton } from '@ohos.UiTest';
import { MessageManager,Callback } from '../../../MainAbility/common/MessageManager';
export default function waterFlow_WaterFlowFrictionTest() {
describe('
W
aterFlow_WaterFlowFrictionTest', function () {
describe('
w
aterFlow_WaterFlowFrictionTest', function () {
beforeEach(async function (done) {
console.info("WaterFlow
_WaterFlowFrictionTest
beforeEach start");
console.info("WaterFlow
FrictionPage
beforeEach start");
let options = {
url: 'MainAbility/pages/WaterFlow/WaterFlow_attribute/WaterFlowFrictionPage',
}
try {
router.clear();
let pages = router.getState();
console.info("get WaterFlow
_WaterFlowFrictionTest
state pages:" + JSON.stringify(pages));
if (!("WaterFlow
_WaterFlowFrictionTest
" == pages.name)) {
console.info("get WaterFlow
FrictionPage
state pages:" + JSON.stringify(pages));
if (!("WaterFlow
FrictionPage
" == pages.name)) {
console.info("get WaterFlow_WaterFlow pages.name:" + JSON.stringify(pages.name));
let result = await router.push(options);
await CommonFunc.sleep(2000);
console.info("push WaterFlow
_WaterFlowFrictionTest
page result:" + JSON.stringify(result));
console.info("push WaterFlow
FrictionPage
page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push WaterFlow
_WaterFlowFrictionTest
page error:" + err);
console.error("push WaterFlow
FrictionPage
page error:" + err);
}
console.info("WaterFlow
_WaterFlowFrictionTest
beforeEach end");
console.info("WaterFlow
FrictionPage
beforeEach end");
done();
});
afterEach(async function () {
...
...
@@ -52,10 +51,11 @@ export default function waterFlow_WaterFlowFrictionTest() {
it('testWaterFlowFriction', 0, async function (done) {
console.info('[testWaterFlowFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
await CommonFunc.sleep(2000);
let scrollContainerStrJson = getInspectorByKey('WaterFlow_WaterFlowFriction');
let scrollContainerObj = JSON.parse(scrollContainerStrJson);
expect(scrollContainerObj.$type).assertEqual('WaterFlow');
expect(scrollContainerObj.$friction).assertEqual(0.6);
expect(scrollContainerObj.$
attrs.
friction).assertEqual(0.6);
console.info('[testWaterFlowFriction] END');
done();
});
...
...
@@ -68,10 +68,11 @@ export default function waterFlow_WaterFlowFrictionTest() {
it('testWaterFlowFriction', 0, async function (done) {
console.info('[testWaterFlowFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
await CommonFunc.sleep(2000);
let scrollContainerStrJson = getInspectorByKey('WaterFlow_WaterFlowFriction');
let scrollContainerObj = JSON.parse(scrollContainerStrJson);
expect(scrollContainerObj.$type).assertEqual('WaterFlow');
expect(scrollContainerObj.$friction).assertEqual(10);
expect(scrollContainerObj.$
attrs.
friction).assertEqual(10);
console.info('[testWaterFlowFriction] END');
done();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录