diff --git a/runtime/main/extend/systemplugin/accessibility.js b/runtime/main/extend/systemplugin/accessibility.js index 7ef3527b..9bcd34ce 100755 --- a/runtime/main/extend/systemplugin/accessibility.js +++ b/runtime/main/extend/systemplugin/accessibility.js @@ -82,20 +82,6 @@ export function mockAccessibility() { const TextMoveUnitMock = '[PC Preview] unknown TextMoveUnit'; const EventInfoClass = class EventInfo { - type = null; - windowUpdateType = null; - bundleName = null; - componentType = null; - pageId = null; - description = null; - triggerAction = null; - textMoveUnit = null; - contents = null; - lastContent = null; - beginIndex = null; - currentIndex = null; - endIndex = null; - itemCount = null; constructor(jsonObject) { console.warn('accessibility.EventInfoClass.constructor interface mocked in the Previewer.' + @@ -189,7 +175,7 @@ export function mockAccessibility() { args[len - 1].call(this, paramMock.businessErrorMock); } else { return new Promise((resolve, reject) => { - resolve(null); + resolve(); }); } }, diff --git a/runtime/main/extend/systemplugin/napi/ohos_accessibility_Config.js b/runtime/main/extend/systemplugin/napi/ohos_accessibility_Config.js index 130a0bb5..1a8bc84d 100755 --- a/runtime/main/extend/systemplugin/napi/ohos_accessibility_Config.js +++ b/runtime/main/extend/systemplugin/napi/ohos_accessibility_Config.js @@ -40,7 +40,7 @@ export function mockAccessibilityConfig() { args[len - 1].call(this, paramMock.businessErrorMock); } else { return new Promise((resolve, reject) => { - resolve(null); + resolve(); }); } },