Fix comment in head.js, and use do_execute_soon in mozapps/update/test/unit/test_bug497578.js.

This commit is contained in:
Dan Witte 2010-08-13 23:03:36 -07:00
parent c8b63eb9da
commit e74e1c6bb6
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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");