head.js (654B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /* Any shared setup for these tests lives here. */ 6 const { PlacesUtils } = ChromeUtils.importESModule( 7 "resource://gre/modules/PlacesUtils.sys.mjs" 8 ); 9 const { PlacesTestUtils } = ChromeUtils.importESModule( 10 "resource://testing-common/PlacesTestUtils.sys.mjs" 11 ); 12 13 add_task(async function setup_profile() { 14 do_get_profile(); // ensure a profile dir (needed by Places) 15 // Start from a clean history DB 16 await PlacesUtils.history.clear(); 17 });