!523 EventPriority白屏问题修复

Merge pull request !523 from liuyanzhi2020/liu0722
This commit is contained in:
openharmony_ci
2022-07-22 03:00:00 +00:00
committed by Gitee
3 changed files with 15 additions and 2 deletions
@@ -252,7 +252,8 @@ export function mockCommonEvent() {
if (typeof args[len - 1] === 'function') {
args[len - 1].call(this, paramMock.businessErrorMock);
}
}
},
Support
}
return commonEvent
}
@@ -55,6 +55,9 @@ export function mockEmitter() {
console.warn("emitter.emit interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
},
EventData,
InnerEvent,
EventPriority
}
return emitter
}
@@ -419,6 +419,9 @@ export function mockNotification() {
});
}
},
SlotType,
ContentType,
SlotLevel,
subscribe: function (...args) {
console.warn('notification.subscribe interface mocked in the Previewer. How this interface works on the' +
' Previewer may be different from that on a real device.');
@@ -778,7 +781,13 @@ export function mockNotification() {
resolve(paramMock.paramBooleanMock);
})
}
}
},
BundleOption,
NotificationKey,
DoNotDisturbType,
DoNotDisturbDate,
DeviceRemindType,
SourceType
}
return notification
}