2013-05-24 14:26:17 +04:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
|
2016-11-11 12:09:50 +03:00
|
|
|
"use strict";
|
|
|
|
|
2015-01-26 10:35:00 +03:00
|
|
|
const TEST_URI = "data:text/html;charset=utf-8," +
|
|
|
|
"<p>browser_telemetry_toolboxtabs_jsdebugger.js</p>";
|
2013-05-24 14:26:17 +04: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;
|
|
|
|
|
2016-05-17 21:25:54 +03:00
|
|
|
add_task(function* () {
|
2015-11-10 22:48:51 +03:00
|
|
|
yield addTab(TEST_URI);
|
2015-01-26 10:35:00 +03:00
|
|
|
let Telemetry = loadTelemetryAndRecordLogs();
|
2013-05-24 14:26:17 +04:00
|
|
|
|
2015-01-26 10:35:00 +03:00
|
|
|
yield openAndCloseToolbox(2, TOOL_DELAY, "jsdebugger");
|
|
|
|
checkTelemetryResults(Telemetry);
|
2013-05-24 14:26:17 +04:00
|
|
|
|
2015-01-26 10:35:00 +03:00
|
|
|
stopRecordingTelemetryLogs(Telemetry);
|
2013-05-24 14:26:17 +04:00
|
|
|
gBrowser.removeCurrentTab();
|
2015-01-26 10:35:00 +03:00
|
|
|
});
|