mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 14:33:33 -04:00
aaaa
Signed-off-by: liuyanzhi <liuyanzhi3@huawei.com> Change-Id: Icacfe143b9dc1284577699364ea3f2163d646692
This commit is contained in:
@@ -252,7 +252,8 @@ export function mockCommonEvent() {
|
|||||||
if (typeof args[len - 1] === 'function') {
|
if (typeof args[len - 1] === 'function') {
|
||||||
args[len - 1].call(this, paramMock.businessErrorMock);
|
args[len - 1].call(this, paramMock.businessErrorMock);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
Support
|
||||||
}
|
}
|
||||||
return commonEvent
|
return commonEvent
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ export function mockEmitter() {
|
|||||||
console.warn("emitter.emit interface mocked in the Previewer. How this interface works on the" +
|
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.");
|
" Previewer may be different from that on a real device.");
|
||||||
},
|
},
|
||||||
|
EventData,
|
||||||
|
InnerEvent,
|
||||||
|
EventPriority
|
||||||
}
|
}
|
||||||
return emitter
|
return emitter
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -419,6 +419,9 @@ export function mockNotification() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
SlotType,
|
||||||
|
ContentType,
|
||||||
|
SlotLevel,
|
||||||
subscribe: function (...args) {
|
subscribe: function (...args) {
|
||||||
console.warn('notification.subscribe interface mocked in the Previewer. How this interface works on the' +
|
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.');
|
' Previewer may be different from that on a real device.');
|
||||||
@@ -778,7 +781,13 @@ export function mockNotification() {
|
|||||||
resolve(paramMock.paramBooleanMock);
|
resolve(paramMock.paramBooleanMock);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
BundleOption,
|
||||||
|
NotificationKey,
|
||||||
|
DoNotDisturbType,
|
||||||
|
DoNotDisturbDate,
|
||||||
|
DeviceRemindType,
|
||||||
|
SourceType
|
||||||
}
|
}
|
||||||
return notification
|
return notification
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user