summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_522375.js
blob: ccc8f9dc646304fa353a5447c843841075d32767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function test() {
  var startup_info = Services.startup.getStartupInfo();
  // No .process info on mac

  ok(
    startup_info.process <= startup_info.main,
    "process created before main is run " + uneval(startup_info)
  );

  // on linux firstPaint can happen after everything is loaded (especially with remote X)
  if (startup_info.firstPaint) {
    ok(
      startup_info.main <= startup_info.firstPaint,
      "main ran before first paint " + uneval(startup_info)
    );
  }

  ok(
    startup_info.main < startup_info.sessionRestored,
    "Session restored after main " + uneval(startup_info)
  );
}