diff options
author | Matt A. Tobin <email@mattatobin.com> | 2016-10-16 19:34:53 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2016-10-16 19:34:53 -0400 |
commit | 81805ce3f63e2e4a799bd54f174083c58a9b5640 (patch) | |
tree | 6e13374b213ac9b2ae74c25d8aac875faf71fdd0 /toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js | |
parent | 28c8da71bf521bb3ee76f27b8a241919e24b7cd5 (diff) | |
download | palemoon-gre-81805ce3f63e2e4a799bd54f174083c58a9b5640.tar.gz |
Move Mozilla DevTools to Platform - Part 3: Merge the browser/devtools and toolkit/devtools adjusting for directory collisions
Diffstat (limited to 'toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js')
-rw-r--r-- | toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js b/toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js new file mode 100644 index 000000000..a86255183 --- /dev/null +++ b/toolkit/devtools/shared/test/browser_telemetry_toolboxtabs_jsdebugger.js @@ -0,0 +1,20 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +const TEST_URI = "data:text/html;charset=utf-8," + + "<p>browser_telemetry_toolboxtabs_jsdebugger.js</p>"; + +// 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; + +add_task(function*() { + yield promiseTab(TEST_URI); + let Telemetry = loadTelemetryAndRecordLogs(); + + yield openAndCloseToolbox(2, TOOL_DELAY, "jsdebugger"); + checkTelemetryResults(Telemetry); + + stopRecordingTelemetryLogs(Telemetry); + gBrowser.removeCurrentTab(); +}); |