summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit_ipc/test_alt-data_simple_wrap.js
blob: ae4f12fde9966c17452c23650aad67148a507dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_simple.js");
}