Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: toolkit/components/places/tests/expiration/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test that expiration runs on idle-daily.
add_task(async function test_expiration_on_idle_daily() {
// Set interval to a large value so we don't expire on it.
setInterval(3600); // 1h
let expirationPromise = TestUtils.topicObserved(
PlacesUtils.TOPIC_EXPIRATION_FINISHED
);
let expire = Cc["@mozilla.org/places/expiration;1"].getService(
Ci.nsIObserver
);
expire.observe(null, "idle-daily", null);
await expirationPromise;
});