From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../test/unit_ipc/test_alt-data_closeWithStatus_wrap.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js (limited to 'netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js') diff --git a/netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js b/netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js new file mode 100644 index 0000000000..a9d45a3f12 --- /dev/null +++ b/netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js @@ -0,0 +1,17 @@ +// needs to be rooted +var cacheFlushObserver = { + observe() { + cacheFlushObserver = null; + do_send_remote_message("flushed"); + }, +}; + +function run_test() { + do_get_profile(); + do_await_remote_message("flush").then(() => { + Services.cache2 + .QueryInterface(Ci.nsICacheTesting) + .flush(cacheFlushObserver); + }); + run_test_in_child("../unit/test_alt-data_closeWithStatus.js"); +} -- cgit v1.2.3