From 9e3c08db40b8916968b9f30096c7be3f00ce9647 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:44:51 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- dom/push/test/xpcshell/broadcast_handler.sys.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dom/push/test/xpcshell/broadcast_handler.sys.mjs (limited to 'dom/push/test/xpcshell/broadcast_handler.sys.mjs') diff --git a/dom/push/test/xpcshell/broadcast_handler.sys.mjs b/dom/push/test/xpcshell/broadcast_handler.sys.mjs new file mode 100644 index 0000000000..eecf220a6f --- /dev/null +++ b/dom/push/test/xpcshell/broadcast_handler.sys.mjs @@ -0,0 +1,12 @@ +export var broadcastHandler = { + reset() { + this.notifications = []; + + this.wasNotified = new Promise((resolve, reject) => { + this.receivedBroadcastMessage = function () { + resolve(); + this.notifications.push(Array.from(arguments)); + }; + }); + }, +}; -- cgit v1.2.3