Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f7e021ae
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看板
提交
f7e021ae
编写于
7月 01, 2023
作者:
李
李鲲辉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug for "滚动类组件支持配置fling效果的参数"XTS用例
Signed-off-by:
N
李鲲辉
<
likunhui@huawei.com
>
上级
03e29671
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
101 addition
and
34 deletion
+101
-34
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Grid/Grid_attribute/GridFrictionPage.ets
...ainAbility/pages/Grid/Grid_attribute/GridFrictionPage.ets
+14
-0
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/List/List_attribute/ListFrictionPage.ets
...ainAbility/pages/List/List_attribute/ListFrictionPage.ets
+14
-0
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Scroll/Scroll_attribute/ScrollFrictionPage.ets
...lity/pages/Scroll/Scroll_attribute/ScrollFrictionPage.ets
+14
-0
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/WaterFlow/WaterFlow_attribute/WaterFlowDataSource.ets
...ges/WaterFlow/WaterFlow_attribute/WaterFlowDataSource.ets
+14
-3
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/WaterFlow/WaterFlow_attribute/WaterFlowFrictionPage.ets
...s/WaterFlow/WaterFlow_attribute/WaterFlowFrictionPage.ets
+14
-0
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
+9
-9
arkui/ace_ets_layout_test/entry/src/main/ets/test/List.test.ets
...ace_ets_layout_test/entry/src/main/ets/test/List.test.ets
+3
-3
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
+1
-1
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
+9
-9
arkui/ace_ets_layout_test/entry/src/main/ets/test/WaterFlow/WaterFlow_attribute/WaterFlow_WaterFlowFriction.test.ets
.../WaterFlow_attribute/WaterFlow_WaterFlowFriction.test.ets
+9
-9
未找到文件。
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Grid/Grid_attribute/GridFrictionPage.ets
浏览文件 @
f7e021ae
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { MessageManager, Callback } from '../../../common/MessageManager';
@Entry
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/List/List_attribute/ListFrictionPage.ets
浏览文件 @
f7e021ae
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { MessageManager, Callback } from '../../../common/MessageManager';
@Entry
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Scroll/Scroll_attribute/ScrollFrictionPage.ets
浏览文件 @
f7e021ae
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { MessageManager, Callback } from '../../../common/MessageManager';
@Entry
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/WaterFlow/WaterFlow_attribute/WaterFlowDataSource.ets
浏览文件 @
f7e021ae
// WaterFlowDataSource.ets
// 实现IDataSource接口的对象,用于瀑布流组件加载数据
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export class WaterFlowDataSource implements IDataSource {
private dataArray: number[] = []
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/WaterFlow/WaterFlow_attribute/WaterFlowFrictionPage.ets
浏览文件 @
f7e021ae
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { MessageManager, Callback } from '../../../common/MessageManager';
import { WaterFlowDataSource } from './WaterFlowDataSource';
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Grid/Grid_attribute/Grid_GridFriction.test.ets
浏览文件 @
f7e021ae
...
...
@@ -52,10 +52,10 @@ export default function Grid_GridFrictionTest() {
it('testGridFriction', 0, async function (done) {
console.info('[testGridFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
let
list
ContainerStrJson = getInspectorByKey('Grid_GridFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Grid');
expect(
list
ContainerObj.$friction).assertEqual(0.6);
let
grid
ContainerStrJson = getInspectorByKey('Grid_GridFriction');
let
gridContainerObj = JSON.parse(grid
ContainerStrJson);
expect(
grid
ContainerObj.$type).assertEqual('Grid');
expect(
grid
ContainerObj.$friction).assertEqual(0.6);
console.info('[testGridFriction] END');
done();
});
...
...
@@ -63,15 +63,15 @@ export default function Grid_GridFrictionTest() {
/**
* @tc.number SUB_ACE_GRID_GRIDFRICTION_002
* @tc.name testGridFriction
* @tc.desc set friction to 10
0
* @tc.desc set friction to 10
*/
it('testGridFriction', 0, async function (done) {
console.info('[testGridFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
let
list
ContainerStrJson = getInspectorByKey('Grid_GridFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Grid');
expect(
list
ContainerObj.$friction).assertEqual(10);
let
grid
ContainerStrJson = getInspectorByKey('Grid_GridFriction');
let
gridContainerObj = JSON.parse(grid
ContainerStrJson);
expect(
grid
ContainerObj.$type).assertEqual('Grid');
expect(
grid
ContainerObj.$friction).assertEqual(10);
console.info('[testGridFriction] END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/List.test.ets
浏览文件 @
f7e021ae
...
...
@@ -368,9 +368,9 @@ import Row_Padding from './Row/parentComponentChanged/Row_Padding.test';
import Row_Size from './Row/parentComponentChanged/Row_Size.test';
import Row_VerticalAlign from './Row/parentComponentChanged/Row_VerticalAlign.test';
import list_ListFrictionTest from './List/List_attribute/List_ListFriction.test';
import grid_GridFrictionTest from './
List/List
_attribute/Grid_GridFriction.test';
import waterflow_WaterFlowFrictionTest from './
List/List
_attribute/Waterflow_WaterFlowFriction.test';
import scroll_ScrollFrictionTest from './
List/List
_attribute/Scroll_ScrollFriction.test';
import grid_GridFrictionTest from './
Grid/Grid
_attribute/Grid_GridFriction.test';
import waterflow_WaterFlowFrictionTest from './
WaterFlow/WaterFlow
_attribute/Waterflow_WaterFlowFriction.test';
import scroll_ScrollFrictionTest from './
Scroll/Scroll
_attribute/Scroll_ScrollFriction.test';
import AlignContentFlex_Start from './Flex/alignContent/Start/AlignContentFlex_Start.test.ets';
import AlignContent_FlexAlign_Start_Margin from './Flex/alignContent/Start/AlignContent_FlexAlign_Start_Margin.test.ets';
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/List/List_attribute/List_ListFriction.test.ets
浏览文件 @
f7e021ae
...
...
@@ -63,7 +63,7 @@ export default function list_ListFrictionTest() {
/**
* @tc.number SUB_ACE_LIST_LISTFRICTION_002
* @tc.name testListFriction
* @tc.desc set friction to 10
0
* @tc.desc set friction to 10
*/
it('testListFriction', 0, async function (done) {
console.info('[testListFriction] START');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Scroll/Scroll_attribute/Scroll_ScrollFriction.test.ets
浏览文件 @
f7e021ae
...
...
@@ -52,10 +52,10 @@ export default function Scroll_ScrollFrictionTest() {
it('testScrollFriction', 0, async function (done) {
console.info('[testScrollFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
let
list
ContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Scroll');
expect(
list
ContainerObj.$friction).assertEqual(0.6);
let
scroll
ContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let
scrollContainerObj = JSON.parse(scroll
ContainerStrJson);
expect(
scroll
ContainerObj.$type).assertEqual('Scroll');
expect(
scroll
ContainerObj.$friction).assertEqual(0.6);
console.info('[testScrollFriction] END');
done();
});
...
...
@@ -63,15 +63,15 @@ export default function Scroll_ScrollFrictionTest() {
/**
* @tc.number SUB_ACE_SCROLL_SCROLLFRICTION_002
* @tc.name testScrollFriction
* @tc.desc set friction to 10
0
* @tc.desc set friction to 10
*/
it('testScrollFriction', 0, async function (done) {
console.info('[testScrollFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
let
list
ContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Scroll');
expect(
list
ContainerObj.$friction).assertEqual(10);
let
scroll
ContainerStrJson = getInspectorByKey('Scroll_ScrollFriction');
let
scrollContainerObj = JSON.parse(scroll
ContainerStrJson);
expect(
scroll
ContainerObj.$type).assertEqual('Scroll');
expect(
scroll
ContainerObj.$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
浏览文件 @
f7e021ae
...
...
@@ -52,10 +52,10 @@ export default function Waterflow_WaterflowFrictionTest() {
it('testWaterflowFriction', 0, async function (done) {
console.info('[testWaterflowFriction] START');
globalThis.value.message.notify({name:'friction', value:-1})
let
list
ContainerStrJson = getInspectorByKey('Waterflow_WaterflowFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Waterflow');
expect(
list
ContainerObj.$friction).assertEqual(0.6);
let
scroll
ContainerStrJson = getInspectorByKey('Waterflow_WaterflowFriction');
let
scrollContainerObj = JSON.parse(scroll
ContainerStrJson);
expect(
scroll
ContainerObj.$type).assertEqual('Waterflow');
expect(
scroll
ContainerObj.$friction).assertEqual(0.6);
console.info('[testWaterflowFriction] END');
done();
});
...
...
@@ -63,15 +63,15 @@ export default function Waterflow_WaterflowFrictionTest() {
/**
* @tc.number SUB_ACE_WATERFLOW_WATERFLOWFRICTION_002
* @tc.name testWaterflowFriction
* @tc.desc set friction to 10
0
* @tc.desc set friction to 10
*/
it('testWaterflowFriction', 0, async function (done) {
console.info('[testWaterflowFriction] START');
globalThis.value.message.notify({name:'friction', value:10})
let
list
ContainerStrJson = getInspectorByKey('Waterflow_WaterflowFriction');
let
listContainerObj = JSON.parse(list
ContainerStrJson);
expect(
list
ContainerObj.$type).assertEqual('Waterflow');
expect(
list
ContainerObj.$friction).assertEqual(10);
let
scroll
ContainerStrJson = getInspectorByKey('Waterflow_WaterflowFriction');
let
scrollContainerObj = JSON.parse(scroll
ContainerStrJson);
expect(
scroll
ContainerObj.$type).assertEqual('Waterflow');
expect(
scroll
ContainerObj.$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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录