tor-browser

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

test_execute_soon.js (444B)


      1 /* vim:set ts=2 sw=2 sts=2 et: */
      2 /*
      3  Any copyright is dedicated to the Public Domain.
      4  http://creativecommons.org/publicdomain/zero/1.0/
      5 */
      6 var complete = false;
      7 
      8 function run_test() {
      9  dump("Starting test\n");
     10  registerCleanupFunction(function () {
     11    dump("Checking test completed\n");
     12    Assert.ok(complete);
     13  });
     14 
     15  executeSoon(function execute_soon_callback() {
     16    dump("do_execute_soon callback\n");
     17    complete = true;
     18  });
     19 }