2014-04-15 10:01:27 +00:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
|
2015-01-26 07:35:00 +00:00
|
|
|
const TEST_URI = "data:text/html;charset=utf-8," +
|
|
|
|
"<p>browser_telemetry_toolbox.js</p>";
|
2014-04-15 10:01:27 +00:00
|
|
|
|
|
|
|
// Because we need to gather stats for the period of time that a tool has been
|
|
|
|
// opened we make use of setTimeout() to create tool active times.
|
|
|
|
const TOOL_DELAY = 200;
|
|
|
|
|
2015-01-26 07:35:00 +00:00
|
|
|
add_task(function*() {
|
2015-11-10 19:48:51 +00:00
|
|
|
yield addTab(TEST_URI);
|
2015-01-26 07:35:00 +00:00
|
|
|
let Telemetry = loadTelemetryAndRecordLogs();
|
2014-04-15 10:01:27 +00:00
|
|
|
|
2015-01-26 07:35:00 +00:00
|
|
|
yield openAndCloseToolbox(3, TOOL_DELAY, "inspector");
|
|
|
|
checkTelemetryResults(Telemetry);
|
2014-04-15 10:01:27 +00:00
|
|
|
|
2015-01-26 07:35:00 +00:00
|
|
|
stopRecordingTelemetryLogs(Telemetry);
|
2014-04-15 10:01:27 +00:00
|
|
|
gBrowser.removeCurrentTab();
|
2015-01-26 07:35:00 +00:00
|
|
|
});
|