diff --git a/barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets b/barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets index ca71992cf6af2450c9891519cbe2f00cf6419ad2..cb2df2c1d2a3b2d28946820025dc43711137d996 100644 --- a/barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets +++ b/barrierfree/accessibilityevent/entry/src/main/ets/test/AccessibilityEventTest.test.ets @@ -326,10 +326,9 @@ export default function abilityTest(abilityContext) { await accessibility.sendEvent(event); setTimeout(() => { - let types = eventTypes; let findResult = false; - for (let type of types) { - if (type == eventType) { + for (let item of events) { + if (item.eventType == eventType) { findResult = true; } }