提交 6d978b8d 编写于 作者: M Mupceet

update xts case

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 945d765f
...@@ -79,7 +79,7 @@ export default function abilityTest(abilityContext) { ...@@ -79,7 +79,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0100', 0, async function (done) { it('AccessibilityEventTest_0100', 0, async function (done) {
console.info(`AccessibilityEventTest_0100`); console.info(`AccessibilityEventTest_0100`);
let eventType = 'accessibilityFocus'; let eventType = 'accessibilityFocus';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'accessibilityFocus'; event.triggerAction = 'accessibilityFocus';
...@@ -110,7 +110,7 @@ export default function abilityTest(abilityContext) { ...@@ -110,7 +110,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0200', 0, async function (done) { it('AccessibilityEventTest_0200', 0, async function (done) {
console.info(`AccessibilityEventTest_0200`); console.info(`AccessibilityEventTest_0200`);
let eventType = 'accessibilityFocusClear'; let eventType = 'accessibilityFocusClear';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'clearAccessibilityFocus'; event.triggerAction = 'clearAccessibilityFocus';
...@@ -141,7 +141,7 @@ export default function abilityTest(abilityContext) { ...@@ -141,7 +141,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0300', 0, async function (done) { it('AccessibilityEventTest_0300', 0, async function (done) {
console.info(`AccessibilityEventTest_0300`); console.info(`AccessibilityEventTest_0300`);
let eventType = 'click'; let eventType = 'click';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'click'; event.triggerAction = 'click';
...@@ -172,7 +172,7 @@ export default function abilityTest(abilityContext) { ...@@ -172,7 +172,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0400', 0, async function (done) { it('AccessibilityEventTest_0400', 0, async function (done) {
console.info(`AccessibilityEventTest_0400`); console.info(`AccessibilityEventTest_0400`);
let eventType = 'longClick'; let eventType = 'longClick';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'longClick'; event.triggerAction = 'longClick';
...@@ -203,7 +203,7 @@ export default function abilityTest(abilityContext) { ...@@ -203,7 +203,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0500', 0, async function (done) { it('AccessibilityEventTest_0500', 0, async function (done) {
console.info(`AccessibilityEventTest_0500`); console.info(`AccessibilityEventTest_0500`);
let eventType = 'focus'; let eventType = 'focus';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'focus'; event.triggerAction = 'focus';
...@@ -234,7 +234,7 @@ export default function abilityTest(abilityContext) { ...@@ -234,7 +234,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0600', 0, async function (done) { it('AccessibilityEventTest_0600', 0, async function (done) {
console.info(`AccessibilityEventTest_0600`); console.info(`AccessibilityEventTest_0600`);
let eventType = 'select'; let eventType = 'select';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'select'; event.triggerAction = 'select';
...@@ -265,7 +265,7 @@ export default function abilityTest(abilityContext) { ...@@ -265,7 +265,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0700', 0, async function (done) { it('AccessibilityEventTest_0700', 0, async function (done) {
console.info(`AccessibilityEventTest_0700`); console.info(`AccessibilityEventTest_0700`);
let eventType = 'hoverEnter'; let eventType = 'hoverEnter';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'focus'; event.triggerAction = 'focus';
...@@ -296,7 +296,7 @@ export default function abilityTest(abilityContext) { ...@@ -296,7 +296,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0800', 0, async function (done) { it('AccessibilityEventTest_0800', 0, async function (done) {
console.info(`AccessibilityEventTest_0800`); console.info(`AccessibilityEventTest_0800`);
let eventType = 'hoverExit'; let eventType = 'hoverExit';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'focus'; event.triggerAction = 'focus';
...@@ -327,7 +327,7 @@ export default function abilityTest(abilityContext) { ...@@ -327,7 +327,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_0900', 0, async function (done) { it('AccessibilityEventTest_0900', 0, async function (done) {
console.info(`AccessibilityEventTest_0900`); console.info(`AccessibilityEventTest_0900`);
let eventType = 'textUpdate'; let eventType = 'textUpdate';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'cut'; event.triggerAction = 'cut';
...@@ -358,7 +358,7 @@ export default function abilityTest(abilityContext) { ...@@ -358,7 +358,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_1000', 0, async function (done) { it('AccessibilityEventTest_1000', 0, async function (done) {
console.info(`AccessibilityEventTest_1000`); console.info(`AccessibilityEventTest_1000`);
let eventType = 'textSelectionUpdate'; let eventType = 'textSelectionUpdate';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'setSelection'; event.triggerAction = 'setSelection';
...@@ -389,7 +389,7 @@ export default function abilityTest(abilityContext) { ...@@ -389,7 +389,7 @@ export default function abilityTest(abilityContext) {
it('AccessibilityEventTest_1100', 0, async function (done) { it('AccessibilityEventTest_1100', 0, async function (done) {
console.info(`AccessibilityEventTest_1100`); console.info(`AccessibilityEventTest_1100`);
let eventType = 'scroll'; let eventType = 'scroll';
let event = new accessibility.EventInfo(); let event = new accessibility.EventInfo({});
event.type = eventType; event.type = eventType;
event.bundleName = targetBundleName; event.bundleName = targetBundleName;
event.triggerAction = 'scrollForward'; event.triggerAction = 'scrollForward';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册