mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Fix comment in head.js, and use do_execute_soon in mozapps/update/test/unit/test_bug497578.js.
This commit is contained in:
parent
c8b63eb9da
commit
e74e1c6bb6
@ -137,7 +137,7 @@ _Timer.prototype = {
|
||||
try {
|
||||
this._func.call(null);
|
||||
} catch (e) {
|
||||
do_throw("exception thrown from callLater callback: " + e);
|
||||
do_throw("exception thrown from do_timeout callback: " + e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ function run_test() {
|
||||
Services.prefs.setBoolPref(PREF_APP_UPDATE_ENABLED, true);
|
||||
Services.prefs.setBoolPref("browser.privatebrowsing.autostart", true);
|
||||
|
||||
do_timeout(0, run_test_pt1);
|
||||
do_execute_soon(run_test_pt1);
|
||||
}
|
||||
|
||||
function end_test() {
|
||||
@ -104,8 +104,8 @@ function run_test_pt1() {
|
||||
dump("Testing: private browsing is auto-started\n");
|
||||
do_check_true(privBrowsing.autoStarted);
|
||||
|
||||
// Use a timeout to give private browsing time to reset necko.
|
||||
do_timeout(0, run_test_pt2);
|
||||
// Give private browsing time to reset necko.
|
||||
do_execute_soon(run_test_pt2);
|
||||
}
|
||||
function run_test_pt2() {
|
||||
dump("Testing: update count should equal 1\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user