Bug 469062 - test_multiple_visits_around_sync.js leaks now, r=sdwilsh

This commit is contained in:
Marco Bonardo 2008-12-17 11:41:44 +01:00
parent 17817e4af5
commit c13d5fd1dd

View File

@ -80,9 +80,9 @@ var observer = {
let stmt = db.createStatement(
"SELECT place_id " +
"FROM moz_historyvisits " +
"WHERE id = :visit_id"
"WHERE id = ?1"
);
stmt.params["visit_id"] = this.visitId;
stmt.bindInt64Parameter(0, this.visitId);
do_check_true(stmt.executeStep());
this._placeId = stmt.getInt64(0);
this._lastVisitId = this.visitId;
@ -99,9 +99,9 @@ var observer = {
let stmt = db.createStatement(
"SELECT place_id " +
"FROM moz_historyvisits " +
"WHERE id = :visit_id"
"WHERE id = ?1"
);
stmt.params["visit_id"] = this.visitId;
stmt.bindInt64Parameter(0, this.visitId);
do_check_true(stmt.executeStep());
do_check_eq(this._placeId, stmt.getInt64(0));
stmt.finalize();
@ -110,7 +110,7 @@ var observer = {
// remove the observers
os.removeObserver(this, kSyncFinished);
hs.removeObserver(historyObserver, false);
do_test_finished();
finish_test();
}
else
do_throw("bad runCount!");