mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-04 23:49:04 +00:00
21 lines
612 B
JavaScript
21 lines
612 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Check that TelemetrySession notifies correctly on idle-daily.
|
|
|
|
const Cu = Components.utils;
|
|
|
|
Cu.import("resource://gre/modules/Services.jsm", this);
|
|
Cu.import("resource://gre/modules/TelemetrySession.jsm", this);
|
|
|
|
function run_test() {
|
|
do_test_pending();
|
|
|
|
Services.obs.addObserver(function observeTelemetry() {
|
|
Services.obs.removeObserver(observeTelemetry, "gather-telemetry");
|
|
do_test_finished();
|
|
}, "gather-telemetry", false);
|
|
|
|
TelemetrySession.observe(null, "idle-daily", null);
|
|
}
|