mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1356079 - Ensure the queried db snapshot is current in test_root_icons.js. r=adw
MozReview-Commit-ID: FTDwcFkbiOL --HG-- extra : rebase_source : 9deaf76548426b2b0b2413d0161959c69bcac583
This commit is contained in:
parent
1a5d673f57
commit
baa6ae6f16
@ -19,6 +19,7 @@ add_task(function* () {
|
||||
faviconURI.spec);
|
||||
|
||||
// Check database entries.
|
||||
yield PlacesTestUtils.promiseAsyncUpdates();
|
||||
let db = yield PlacesUtils.promiseDBConnection();
|
||||
let rows = yield db.execute("SELECT * FROM moz_icons");
|
||||
Assert.equal(rows.length, 1, "There should only be 1 icon entry");
|
||||
@ -70,6 +71,7 @@ add_task(function* test_removePagesByTimeframe() {
|
||||
);
|
||||
|
||||
// Check database entries.
|
||||
yield PlacesTestUtils.promiseAsyncUpdates();
|
||||
let db = yield PlacesUtils.promiseDBConnection();
|
||||
let rows = yield db.execute("SELECT * FROM moz_icons");
|
||||
Assert.equal(rows.length, 1, "There should only be 1 icon entry");
|
||||
|
Loading…
Reference in New Issue
Block a user