summaryrefslogtreecommitdiff
path: root/browser/devtools/profiler/test/browser_profiler_controller.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2014-07-02 00:07:24 -0400
committerMatt A. Tobin <email@mattatobin.com>2014-07-02 05:58:53 -0400
commit77707b62085f862709562185e615634e7431080a (patch)
treecb1d173d0dbae3332df6d4a1160336e04c2286a7 /browser/devtools/profiler/test/browser_profiler_controller.js
parent432326d2eae38aaacaeff9e790a2835d6578ee3b (diff)
downloadpalemoon-gre-77707b62085f862709562185e615634e7431080a.tar.gz
Remove tests from /browser (except /browser/metro)
Diffstat (limited to 'browser/devtools/profiler/test/browser_profiler_controller.js')
-rw-r--r--browser/devtools/profiler/test/browser_profiler_controller.js64
1 files changed, 0 insertions, 64 deletions
diff --git a/browser/devtools/profiler/test/browser_profiler_controller.js b/browser/devtools/profiler/test/browser_profiler_controller.js
deleted file mode 100644
index 8881f01bd..000000000
--- a/browser/devtools/profiler/test/browser_profiler_controller.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ */
-
-const URL = "data:text/html;charset=utf8,<p>JavaScript Profiler test</p>";
-
-let gTab, gPanel;
-
-function test() {
- waitForExplicitFinish();
-
- setUp(URL, function onSetUp(tab, browser, panel) {
- gTab = tab;
- gPanel = panel;
-
- testInactive(startFirstProfile);
- });
-}
-
-function testInactive(next=function(){}) {
- gPanel.controller.isActive(function (err, isActive) {
- ok(!err, "isActive didn't return any errors");
- ok(!isActive, "Profiler is not active");
- next();
- });
-}
-
-function testActive(next=function(){}) {
- gPanel.controller.isActive(function (err, isActive) {
- ok(!err, "isActive didn't return any errors");
- ok(isActive, "Profiler is active");
- next();
- });
-}
-
-function startFirstProfile() {
- gPanel.controller.start("Profile 1", function (err) {
- ok(!err, "Profile 1 started without errors");
- testActive(startSecondProfile);
- });
-}
-
-function startSecondProfile() {
- gPanel.controller.start("Profile 2", function (err) {
- ok(!err, "Profile 2 started without errors");
- testActive(stopFirstProfile);
- });
-}
-
-function stopFirstProfile() {
- gPanel.controller.stop("Profile 1", function (err, data) {
- ok(!err, "Profile 1 stopped without errors");
- ok(data, "Profiler returned some data");
-
- testActive(stopSecondProfile);
- });
-}
-
-function stopSecondProfile() {
- gPanel.controller.stop("Profile 2", function (err, data) {
- ok(!err, "Profile 2 stopped without errors");
- ok(data, "Profiler returned some data");
- testInactive(tearDown.call(null, gTab, function () gTab = gPanel = null));
- });
-} \ No newline at end of file