Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
/* Any shared setup for these tests lives here. */
const { PlacesUtils } = ChromeUtils.importESModule(
"resource://gre/modules/PlacesUtils.sys.mjs"
);
const { PlacesTestUtils } = ChromeUtils.importESModule(
);
add_task(async function setup_profile() {
do_get_profile(); // ensure a profile dir (needed by Places)
// Start from a clean history DB
await PlacesUtils.history.clear();
});