未验证 提交 53509aae 编写于 作者: O openharmony_ci 提交者: Gitee

!6092 新增无障碍属性用例覆盖

Merge pull request !6092 from 邓显俊/cherry-pick-1666677905
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602", "power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602", "power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import commonEvent from '@ohos.commonEvent' import commonEvent from '@ohos.commonEvent'
import config from '@ohos.accessibility.config' import config from '@ohos.accessibility.config'
import { GesturePath } from '@ohos.accessibility.GesturePath';
import { GesturePoint } from '@ohos.accessibility.GesturePoint';
function publishCaseExecute(caseName: string) { function publishCaseExecute(caseName: string) {
let commonEventPublishData = { let commonEventPublishData = {
...@@ -654,5 +656,34 @@ export default function abilityTest() { ...@@ -654,5 +656,34 @@ export default function abilityTest() {
done(); done();
} }
}) })
/*
* @tc.number AccessibilityGestureEventTest_1700
* @tc.name AccessibilityGestureEventTest_1700
* @tc.desc test positionX positionX
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityGestureEventTest_1700', 0, async function (done) {
let caseName = 'AccessibilityGestureEventTest_1700';
console.info(caseName + 'start');
let gesturePoint = new GesturePoint(676, 735);
expect(gesturePoint.positionX == 676).assertTrue();
expect(gesturePoint.positionY == 735).assertTrue();
let gesturePath = new GesturePath(100);
expect(gesturePath.durationTime == 100).assertTrue();
gesturePath.points.push(new GesturePoint(676, 735),
new GesturePoint(567, 729),
new GesturePoint(444, 719),
new GesturePoint(255, 714),
new GesturePoint(153, 715),
new GesturePoint(15, 729));
expect(gesturePath.points.length == 6).assertTrue();
console.info(caseName + 'start');
done();
})
}) })
} }
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册