tor-browser

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

browser_522375.js (658B)


      1 function test() {
      2  var startup_info = Services.startup.getStartupInfo();
      3  // No .process info on mac
      4 
      5  Assert.lessOrEqual(
      6    startup_info.process,
      7    startup_info.main,
      8    "process created before main is run " + uneval(startup_info)
      9  );
     10 
     11  // on linux firstPaint can happen after everything is loaded (especially with remote X)
     12  if (startup_info.firstPaint) {
     13    Assert.lessOrEqual(
     14      startup_info.main,
     15      startup_info.firstPaint,
     16      "main ran before first paint " + uneval(startup_info)
     17    );
     18  }
     19 
     20  Assert.less(
     21    startup_info.main,
     22    startup_info.sessionRestored,
     23    "Session restored after main " + uneval(startup_info)
     24  );
     25 }