function test() {
  var startup_info = Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(Components.interfaces.nsIAppStartup_MOZILLA_2_0).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));
}
