summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit_ipc/test_alt-data_closeWithStatus_wrap.js
blob: a9d45a3f12036fff2219eefe1ae866b3effe2d63 (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_closeWithStatus.js");
}