tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_pb_notification_ipc.js (379B)


      1 function run_test() {
      2  var notifications = 0;
      3  var obs = {
      4    observe(aSubject, aTopic) {
      5      Assert.equal(aTopic, "last-pb-context-exited");
      6      notifications++;
      7    },
      8  };
      9  Services.obs.addObserver(obs, "last-pb-context-exited");
     10 
     11  run_test_in_child("../unit/test_pb_notification.js", function () {
     12    Assert.equal(notifications, 1);
     13    do_test_finished();
     14  });
     15 }