Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d57f0f73
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d57f0f73
编写于
10月 10, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 10, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4918 无障碍xts api gesture测试用例对应新d.ts
Merge pull request !4918 from Mupceet/release_0804_xts_compile
上级
d956462c
36d5d741
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
168 addition
and
212 deletion
+168
-212
barrierfree/accessibilityextensioncontext/entry/src/main/ets/AccessibilityExtAbility/ExtensionContextTest.ts
.../main/ets/AccessibilityExtAbility/ExtensionContextTest.ts
+25
-28
barrierfree/accessibilitygestureevent/entry/src/main/ets/AccessibilityExtAbility/GestureEventTest.ts
.../src/main/ets/AccessibilityExtAbility/GestureEventTest.ts
+143
-184
未找到文件。
barrierfree/accessibilityextensioncontext/entry/src/main/ets/AccessibilityExtAbility/ExtensionContextTest.ts
浏览文件 @
d57f0f73
...
...
@@ -14,7 +14,8 @@
*/
import
commonEvent
from
'
@ohos.commonEvent
'
;
import
display
from
'
@ohos.display
'
import
accessibility
from
'
@ohos.accessibility
'
import
{
GesturePath
}
from
'
@ohos.accessibility.GesturePath
'
;
import
{
GesturePoint
}
from
'
@ohos.accessibility.GesturePoint
'
;
export
class
ExtensionContextTest
{
private
context
=
undefined
;
...
...
@@ -52,14 +53,10 @@ export class ExtensionContextTest {
private
async
processCase
(
caseName
)
{
console
.
info
(
'
ExtensionContextTest processCase:
'
+
caseName
);
let
eventType
:
Array
<
string
>
=
[];
let
bundleName
:
Array
<
string
>
=
[];
let
windowId
=
-
1
;
let
displayId
=
-
1
;
let
gesturePath
=
{};
let
gesturePos1
=
{};
let
gesturePos2
=
{};
let
gesturePos3
=
{};
let
gesturePath
;
switch
(
caseName
)
{
case
'
AccessibilityExtensionContextTest_setTargetBundleName_asyncCallback_1500
'
:
...
...
@@ -155,26 +152,26 @@ export class ExtensionContextTest {
this
.
getFocusElementByTypePromise
(
caseName
,
false
,
true
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncCallback_4500
'
:
gestureP
os1
=
{
positionX
:
10
,
positionY
:
10
}
;
gesturePath
=
{
points
:
[
gesturePos1
],
durationTime
:
100
}
;
gestureP
ath
=
new
GesturePath
(
100
)
;
gesturePath
.
points
.
push
(
new
GesturePoint
(
10
,
10
))
;
this
.
gestureInjectCallback
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncCallback_4600
'
:
gestureP
os1
=
{
positionX
:
50
,
positionY
:
50
}
;
gesturePath
=
{
points
:
[
gesturePos1
],
durationTime
:
60000
}
;
gestureP
ath
=
new
GesturePath
(
60000
)
;
gesturePath
.
points
.
push
(
new
GesturePoint
(
50
,
50
))
;
this
.
gestureInjectCallback
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncCallback_4700
'
:
gestureP
os1
=
{
positionX
:
200
,
positionY
:
200
}
;
gestureP
os2
=
{
positionX
:
100
,
positionY
:
100
};
gesturePath
=
{
points
:
[
gesturePos1
,
gesturePos2
],
durationTime
:
1000
}
;
gestureP
ath
=
new
GesturePath
(
1000
)
;
gestureP
ath
.
points
.
push
(
new
GesturePoint
(
200
,
200
),
new
GesturePoint
(
100
,
100
))
;
this
.
gestureInjectCallback
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncCallback_4800
'
:
gestureP
os1
=
{
positionX
:
50
,
positionY
:
50
}
;
gestureP
os2
=
{
positionX
:
100
,
positionY
:
100
};
gesturePos3
=
{
positionX
:
1000
,
positionY
:
1000
};
gesturePath
=
{
points
:
[
gesturePos1
,
gesturePos2
,
gesturePos3
],
durationTime
:
60000
}
;
gestureP
ath
=
new
GesturePath
(
60000
)
;
gestureP
ath
.
points
.
push
(
new
GesturePoint
(
50
,
50
),
new
GesturePoint
(
100
,
100
),
new
GesturePoint
(
1000
,
1000
))
;
this
.
gestureInjectCallback
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncCallback_4900
'
:
...
...
@@ -182,26 +179,26 @@ export class ExtensionContextTest {
this
.
gestureInjectCallback
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncPromise_5000
'
:
gestureP
os1
=
{
positionX
:
10
,
positionY
:
10
}
;
gesturePath
=
{
points
:
[
gesturePos1
],
durationTime
:
100
}
;
gestureP
ath
=
new
GesturePath
(
100
)
;
gesturePath
.
points
.
push
(
new
GesturePoint
(
10
,
10
))
;
this
.
gestureInjectPromise
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncPromise_5100
'
:
gestureP
os1
=
{
positionX
:
50
,
positionY
:
50
}
;
gesturePath
=
{
points
:
[
gesturePos1
],
durationTime
:
60000
}
;
gestureP
ath
=
new
GesturePath
(
60000
)
;
gesturePath
.
points
.
push
(
new
GesturePoint
(
50
,
50
))
;
this
.
gestureInjectPromise
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncPromise_5200
'
:
gestureP
os1
=
{
positionX
:
200
,
positionY
:
200
}
;
gestureP
os2
=
{
positionX
:
100
,
positionY
:
100
};
gesturePath
=
{
points
:
[
gesturePos1
,
gesturePos2
],
durationTime
:
1000
}
;
gestureP
ath
=
new
GesturePath
(
1000
)
;
gestureP
ath
.
points
.
push
(
new
GesturePoint
(
200
,
200
),
new
GesturePoint
(
100
,
100
))
;
this
.
gestureInjectPromise
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncPromise_5300
'
:
gestureP
os1
=
{
positionX
:
50
,
positionY
:
50
}
;
gestureP
os2
=
{
positionX
:
100
,
positionY
:
100
};
gesturePos3
=
{
positionX
:
1000
,
positionY
:
1000
};
gesturePath
=
{
points
:
[
gesturePos1
,
gesturePos2
,
gesturePos3
],
durationTime
:
60000
}
;
gestureP
ath
=
new
GesturePath
(
60000
)
;
gestureP
ath
.
points
.
push
(
new
GesturePoint
(
50
,
50
),
new
GesturePoint
(
100
,
100
),
new
GesturePoint
(
1000
,
1000
))
;
this
.
gestureInjectPromise
(
caseName
,
gesturePath
);
break
;
case
'
AccessibilityExtensionContextTest_gestureInject_asyncPromise_5400
'
:
...
...
barrierfree/accessibilitygestureevent/entry/src/main/ets/AccessibilityExtAbility/GestureEventTest.ts
浏览文件 @
d57f0f73
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录