Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test runs only with pattern: os != 'android'
- Manifest: toolkit/components/places/tests/maintenance/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
// Tests that history initialization correctly handles a corrupt favicons file
// that can't be opened.
add_task(async function () {
await createCorruptDb("favicons.sqlite");
Assert.equal(
PlacesUtils.history.databaseStatus,
PlacesUtils.history.DATABASE_STATUS_CREATE
);
let db = await PlacesUtils.promiseDBConnection();
await db.execute("SELECT * FROM moz_icons"); // Should not fail.
});