--- a/devtools/client/commandline/test/browser.ini
+++ b/devtools/client/commandline/test/browser.ini
@@ -6,31 +6,18 @@ support-files =
head.js
helpers.js
mockCommands.js
[browser_cmd_calllog.js]
skip-if = true # Bug 845831
[browser_cmd_calllog_chrome.js]
skip-if = true # Bug 845831
-[browser_cmd_cookie.js]
-support-files =
- browser_cmd_cookie.html
-[browser_cmd_cookie_host.js]
-support-files =
- browser_cmd_cookie.html
-[browser_cmd_folder.js]
-skip-if = (e10s && debug) # Bug 1034511 (docShell leaks on debug)
-[browser_cmd_inject.js]
-support-files =
- browser_cmd_inject.html
[browser_cmd_csscoverage_util.js]
skip-if = (e10s && debug) # Bug 1034511 (docShell leaks on debug)
-[browser_cmd_qsa.js]
-[browser_cmd_restart.js]
[browser_cmd_settings.js]
[browser_gcli_async.js]
[browser_gcli_canon.js]
[browser_gcli_cli1.js]
[browser_gcli_cli2.js]
[browser_gcli_completion1.js]
[browser_gcli_completion2.js]
[browser_gcli_date.js]
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_cookie.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>GCLI cookie command test</title>
-</head>
-<body>
-
- <p>Cookie test</p>
- <p id=result></p>
- <script type="text/javascript">
- document.cookie = "zap=zep";
- document.cookie = "zip=zop";
- document.cookie = "zig=zag; domain=.mochi.test";
- document.getElementById("result").innerHTML = document.cookie;
- </script>
-
-</body>
-</html>
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_cookie.js
+++ /dev/null
@@ -1,170 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Tests that the cookie commands works as they should
-
-const TEST_URI = "http://example.com/browser/devtools/client/commandline/" +
- "test/browser_cmd_cookie.html";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "cookie",
- check: {
- input: "cookie",
- hints: " list",
- markup: "IIIIII",
- status: "ERROR"
- },
- },
- {
- setup: "cookie lis",
- check: {
- input: "cookie lis",
- hints: "t",
- markup: "IIIIIIVIII",
- status: "ERROR"
- },
- },
- {
- setup: "cookie list",
- check: {
- input: "cookie list",
- hints: "",
- markup: "VVVVVVVVVVV",
- status: "VALID"
- },
- },
- {
- setup: "cookie remove",
- check: {
- input: "cookie remove",
- hints: " <name>",
- markup: "VVVVVVVVVVVVV",
- status: "ERROR"
- },
- },
- {
- setup: "cookie set",
- check: {
- input: "cookie set",
- hints: " <name> <value> [options]",
- markup: "VVVVVVVVVV",
- status: "ERROR"
- },
- },
- {
- setup: "cookie set fruit",
- check: {
- input: "cookie set fruit",
- hints: " <value> [options]",
- markup: "VVVVVVVVVVVVVVVV",
- status: "ERROR"
- },
- },
- {
- setup: "cookie set fruit ban",
- check: {
- input: "cookie set fruit ban",
- hints: " [options]",
- markup: "VVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- name: { value: "fruit" },
- value: { value: "ban" },
- secure: { value: false },
- }
- },
- },
- {
- setup: 'cookie set fruit ban --path ""',
- check: {
- input: 'cookie set fruit ban --path ""',
- hints: " [options]",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- name: { value: "fruit" },
- value: { value: "ban" },
- path: { value: "" },
- secure: { value: false },
- }
- },
- },
- {
- setup: "cookie list",
- exec: {
- output: [ /zap=zep/, /zip=zop/, /Edit/ ]
- }
- },
- {
- setup: "cookie set zup banana",
- check: {
- args: {
- name: { value: "zup" },
- value: { value: "banana" },
- }
- },
- exec: {
- output: ""
- }
- },
- {
- setup: "cookie list",
- exec: {
- output: [ /zap=zep/, /zip=zop/, /zup=banana/, /Edit/ ]
- }
- },
- {
- setup: "cookie remove zip",
- exec: { },
- },
- {
- setup: "cookie list",
- exec: {
- output: [ /zap=zep/, /zup=banana/, /Edit/ ]
- },
- post: function (output, text) {
- ok(!text.includes("zip"), "");
- ok(!text.includes("zop"), "");
- }
- },
- {
- setup: "cookie remove zap",
- exec: { },
- },
- {
- setup: "cookie list",
- exec: {
- output: [ /zup=banana/, /Edit/ ]
- },
- post: function (output, text) {
- ok(!text.includes("zap"), "");
- ok(!text.includes("zep"), "");
- ok(!text.includes("zip"), "");
- ok(!text.includes("zop"), "");
- }
- },
- {
- setup: "cookie remove zup",
- exec: { }
- },
- {
- setup: "cookie list",
- exec: {
- output: "No cookies found for host example.com"
- },
- post: function (output, text) {
- ok(!text.includes("zap"), "");
- ok(!text.includes("zep"), "");
- ok(!text.includes("zip"), "");
- ok(!text.includes("zop"), "");
- ok(!text.includes("zup"), "");
- ok(!text.includes("banana"), "");
- ok(!text.includes("Edit"), "");
- }
- },
- ]);
- }).then(finish, helpers.handleError);
-}
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_cookie_host.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-// Tests that the cookie command works for host with a port specified
-
-const TEST_URI = "http://mochi.test:8888/browser/devtools/client/commandline/" +
- "test/browser_cmd_cookie.html";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "cookie list",
- exec: {
- output: [ /zap=zep/, /zip=zop/, /zig=zag/ ],
- }
- },
- {
- setup: "cookie set zup banana",
- check: {
- args: {
- name: { value: "zup" },
- value: { value: "banana" },
- }
- },
- exec: {
- output: ""
- }
- },
- {
- setup: "cookie list",
- exec: {
- output: [ /zap=zep/, /zip=zop/, /zig=zag/, /zup=banana/, /Edit/ ]
- }
- }
- ]);
- }).then(finish, helpers.handleError);
-}
-
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_folder.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Tests that the folder commands works as they should
-
-const TEST_URI = "data:text/html;charset=utf-8,cmd-folder";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "folder",
- check: {
- input: "folder",
- hints: " open",
- markup: "IIIIII",
- status: "ERROR"
- },
- },
- {
- setup: "folder open",
- check: {
- input: "folder open",
- hints: " [path]",
- markup: "VVVVVVVVVVV",
- status: "VALID"
- }
- },
- {
- setup: "folder open ~",
- check: {
- input: "folder open ~",
- hints: "",
- markup: "VVVVVVVVVVVVV",
- status: "VALID"
- }
- },
- {
- setup: "folder openprofile",
- check: {
- input: "folder openprofile",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVV",
- status: "VALID"
- }
- },
- {
- setup: "folder openprofile WRONG",
- check: {
- input: "folder openprofile WRONG",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVVVEEEEE",
- status: "ERROR"
- }
- }
- ]);
- }).then(finish, helpers.handleError);
-}
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_inject.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <head>
- <body>
- </body>
-</html>
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_inject.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Tests that the inject commands works as they should
-
-// Note that we use var instead of const here on purpose. Indeed, this test injects itself
-// in the test page, twice. Using a const would result in a const redeclaration JS error.
-var TEST_URI = "http://example.com/browser/devtools/client/commandline/" +
- "test/browser_cmd_inject.html";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "inject",
- check: {
- input: "inject",
- markup: "VVVVVV",
- hints: " <library>",
- status: "ERROR"
- },
- },
- {
- setup: "inject j",
- check: {
- input: "inject j",
- markup: "VVVVVVVI",
- hints: "Query",
- status: "ERROR"
- },
- },
- {
- setup: "inject notauri",
- check: {
- input: "inject notauri",
- hints: " -> http://notauri/",
- markup: "VVVVVVVIIIIIII",
- status: "ERROR",
- args: {
- library: {
- value: undefined,
- status: "INCOMPLETE"
- }
- }
- }
- },
- {
- setup: "inject http://example.com/browser/devtools/client/commandline/test/browser_cmd_inject.js",
- check: {
- input: "inject http://example.com/browser/devtools/client/commandline/test/browser_cmd_inject.js",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- hints: "",
- status: "VALID",
- args: {
- library: {
- value: function (library) {
- is(library.type, "url", "inject type name");
- is(library.url.origin, "http://example.com", "inject url hostname");
- ok(library.url.pathname.includes("_inject.js"), "inject url path");
- },
- status: "VALID"
- }
- }
- },
- exec: {
- output: [ /http:\/\/example.com\/browser\/devtools\/client\/commandline\/test\/browser_cmd_inject.js loaded/ ]
- }
- },
- {
- setup: "inject https://example.com/browser/devtools/client/commandline/test/browser_cmd_inject.js",
- check: {
- input: "inject https://example.com/browser/devtools/client/commandline/test/browser_cmd_inject.js",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- hints: "",
- status: "VALID",
- args: {
- library: {
- value: function (library) {
- is(library.type, "url", "inject type name");
- is(library.url.origin, "https://example.com", "inject url hostname");
- ok(library.url.pathname.includes("_inject.js"), "inject url path");
- },
- status: "VALID"
- }
- }
- },
- exec: {
- output: [ /https:\/\/example.com\/browser\/devtools\/client\/commandline\/test\/browser_cmd_inject.js loaded/ ]
- }
- }
- ]);
- }).then(finish, helpers.handleError);
-}
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_qsa.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-// Tests that the qsa commands work as they should.
-
-const TEST_URI = "data:text/html;charset=utf-8,<body></body>";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "qsa",
- check: {
- input: "qsa",
- hints: " [query]",
- markup: "VVV",
- status: "VALID"
- }
- },
- {
- setup: "qsa body",
- check: {
- input: "qsa body",
- hints: "",
- markup: "VVVVVVVV",
- status: "VALID"
- }
- }
- ]);
- }).then(finish, helpers.handleError);
-}
deleted file mode 100644
--- a/devtools/client/commandline/test/browser_cmd_restart.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Test that restart command works properly (input wise)
-
-const TEST_URI = "data:text/html;charset=utf-8,gcli-command-restart";
-
-function test() {
- helpers.addTabWithToolbar(TEST_URI, function (options) {
- return helpers.audit(options, [
- {
- setup: "restart",
- check: {
- input: "restart",
- markup: "VVVVVVV",
- status: "VALID",
- args: {
- nocache: { value: false },
- safemode: { value: false },
- }
- },
- },
- {
- setup: "restart --nocache",
- check: {
- input: "restart --nocache",
- markup: "VVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- nocache: { value: true },
- safemode: { value: false },
- }
- },
- },
- {
- setup: "restart --safemode",
- check: {
- input: "restart --safemode",
- markup: "VVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- nocache: { value: false },
- safemode: { value: true },
- }
- },
- },
- {
- setup: "restart --safemode --nocache",
- check: {
- input: "restart --safemode --nocache",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- nocache: { value: true },
- safemode: { value: true },
- }
- },
- },
- ]);
- }).then(finish, helpers.handleError);
-}
--- a/devtools/client/debugger/test/mochitest/browser.ini
+++ b/devtools/client/debugger/test/mochitest/browser.ini
@@ -61,17 +61,16 @@ support-files =
doc_blackboxing.html
doc_blackboxing_unblackbox.html
doc_breakpoints-break-on-last-line-of-script-on-reload.html
doc_breakpoints-other-tabs.html
doc_breakpoints-reload.html
doc_bug-896139.html
doc_closures.html
doc_closure-optimized-out.html
- doc_cmd-break.html
doc_breakpoint-move.html
doc_conditional-breakpoints.html
doc_domnode-variables.html
doc_editor-mode.html
doc_empty-tab-01.html
doc_empty-tab-02.html
doc_event-listeners-01.html
doc_event-listeners-02.html
@@ -245,18 +244,16 @@ skip-if = (e10s && debug) || (verify &&
skip-if = e10s && debug
[browser_dbg_clean-exit-window.js]
skip-if = true # Bug 933950 (leaky test)
[browser_dbg_clean-exit.js]
skip-if = true # Bug 1044985 (racy test)
[browser_dbg_closure-inspection.js]
uses-unsafe-cpows = true
skip-if = e10s && debug
-[browser_dbg_cmd-break.js]
-skip-if = e10s # TODO
[browser_dbg_conditional-breakpoints-01.js]
uses-unsafe-cpows = true
skip-if = e10s && debug
[browser_dbg_conditional-breakpoints-02.js]
uses-unsafe-cpows = true
skip-if = e10s && debug
[browser_dbg_conditional-breakpoints-03.js]
uses-unsafe-cpows = true
--- a/devtools/client/debugger/test/mochitest/browser2.ini
+++ b/devtools/client/debugger/test/mochitest/browser2.ini
@@ -61,17 +61,16 @@ support-files =
doc_blackboxing.html
doc_blackboxing_unblackbox.html
doc_breakpoints-break-on-last-line-of-script-on-reload.html
doc_breakpoints-other-tabs.html
doc_breakpoints-reload.html
doc_bug-896139.html
doc_closures.html
doc_closure-optimized-out.html
- doc_cmd-break.html
doc_breakpoint-move.html
doc_conditional-breakpoints.html
doc_domnode-variables.html
doc_editor-mode.html
doc_empty-tab-01.html
doc_empty-tab-02.html
doc_event-listeners-01.html
doc_event-listeners-02.html
deleted file mode 100644
--- a/devtools/client/debugger/test/mochitest/browser_dbg_cmd-break.js
+++ /dev/null
@@ -1,225 +0,0 @@
-/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
-/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-/**
- * Tests that the break commands works as they should.
- */
-
-const TAB_URL = EXAMPLE_URL + "doc_cmd-break.html";
-var TAB_URL_ACTOR;
-
-function test() {
- let gPanel, gDebugger, gThreadClient, gSources;
- let gLineNumber;
-
- let expectedActorObj = {
- value: null,
- message: ""
- };
-
- helpers.addTabWithToolbar(TAB_URL, aOptions => {
- return Task.spawn(function* () {
- yield helpers.audit(aOptions, [{
- setup: "break",
- check: {
- input: "break",
- hints: " add line",
- markup: "IIIII",
- status: "ERROR",
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break add",
- check: {
- input: "break add",
- hints: " line",
- markup: "IIIIIVIII",
- status: "ERROR"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break add line",
- check: {
- input: "break add line",
- hints: " <file> <line>",
- markup: "VVVVVVVVVVVVVV",
- status: "ERROR"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- name: "open toolbox",
- setup: Task.async(function* () {
- let [aTab, aDebuggee, aPanel] = yield initDebugger(gBrowser.selectedTab);
-
- // Spin the event loop before causing the debuggee to pause, to allow this
- // function to return first.
- executeSoon(() => aDebuggee.firstCall());
-
- yield waitForSourceAndCaretAndScopes(aPanel, ".html", 1);
-
- gPanel = aPanel;
- gDebugger = gPanel.panelWin;
- gThreadClient = gPanel.panelWin.gThreadClient;
- gLineNumber = yield ContentTask.spawn(aOptions.browser, {}, function* () {
- return "" + content.wrappedJSObject.gLineNumber;
- });
- gSources = gDebugger.DebuggerView.Sources;
-
- expectedActorObj.value = getSourceActor(gSources, TAB_URL);
- }),
- post: function () {
- ok(gThreadClient, "Debugger client exists.");
- is(gLineNumber, 14, "gLineNumber is correct.");
- },
- }]);
-
- yield helpers.audit(aOptions, [{
- name: "break add line .../doc_cmd-break.html 14",
- setup: function () {
- // We have to setup in a function to allow gLineNumber to be initialized.
- let line = "break add line " + TAB_URL + " " + gLineNumber;
- return helpers.setInput(aOptions, line);
- },
- check: {
- hints: "",
- status: "VALID",
- message: "",
- args: {
- file: expectedActorObj,
- line: { value: 14 }
- }
- },
- exec: {
- output: "Added breakpoint"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break add line " + TAB_URL + " 17",
- check: {
- hints: "",
- status: "VALID",
- message: "",
- args: {
- file: expectedActorObj,
- line: { value: 17 }
- }
- },
- exec: {
- output: "Added breakpoint"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break list",
- check: {
- input: "break list",
- hints: "",
- markup: "VVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: [
- /Source/, /Remove/,
- /doc_cmd-break\.html:14/,
- /doc_cmd-break\.html:17/
- ]
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- name: "cleanup",
- setup: function () {
- let deferred = promise.defer();
- gThreadClient.resume(deferred.resolve);
- return deferred.promise;
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break del 14",
- check: {
- input: "break del 14",
- hints: " -> doc_cmd-break.html:14",
- markup: "VVVVVVVVVVII",
- status: "ERROR",
- args: {
- breakpoint: {
- status: "INCOMPLETE",
- message: "Value required for \u2018breakpoint\u2019."
- }
- }
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break del doc_cmd-break.html:14",
- check: {
- input: "break del doc_cmd-break.html:14",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- breakpoint: { arg: " doc_cmd-break.html:14" },
- }
- },
- exec: {
- output: "Breakpoint removed"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break list",
- check: {
- input: "break list",
- hints: "",
- markup: "VVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: [
- /Source/, /Remove/,
- /doc_cmd-break\.html:17/
- ]
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break del doc_cmd-break.html:17",
- check: {
- input: "break del doc_cmd-break.html:17",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- breakpoint: { arg: " doc_cmd-break.html:17" },
- }
- },
- exec: {
- output: "Breakpoint removed"
- }
- }]);
-
- yield helpers.audit(aOptions, [{
- setup: "break list",
- check: {
- input: "break list",
- hints: "",
- markup: "VVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: "No breakpoints set"
- },
- post: function () {
- return teardown(gPanel, { noTabRemoval: true });
- }
- }]);
- });
- }).then(finish);
-}
deleted file mode 100644
--- a/devtools/client/debugger/test/mochitest/doc_cmd-break.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
-<!doctype html>
-
-<html>
- <head>
- <meta charset="utf-8"/>
- <title>Debugger test page</title>
- </head>
-
- <body>
- <script type="text/javascript">
- function firstCall() {
- window.gLineNumber = Error().lineNumber; secondCall();
- }
- function secondCall() {
- debugger;
- }
- </script>
- </body>
-
-</html>
--- a/devtools/client/inspector/test/browser.ini
+++ b/devtools/client/inspector/test/browser.ini
@@ -5,17 +5,16 @@ support-files =
doc_inspector_add_node.html
doc_inspector_breadcrumbs.html
doc_inspector_breadcrumbs_visibility.html
doc_inspector_csp.html
doc_inspector_csp.html^headers^
doc_inspector_delete-selected-node-01.html
doc_inspector_delete-selected-node-02.html
doc_inspector_embed.html
- doc_inspector_gcli-inspect-command.html
doc_inspector_highlight_after_transition.html
doc_inspector_highlighter-comments.html
doc_inspector_highlighter-geometry_01.html
doc_inspector_highlighter-geometry_02.html
doc_inspector_highlighter_cssshapes.html
doc_inspector_highlighter_cssshapes_iframe.html
doc_inspector_highlighter_csstransform.html
doc_inspector_highlighter_dom.html
@@ -64,17 +63,16 @@ skip-if = os == "mac" # Full keyboard na
skip-if = !stylo # shadow DOM is only enabled with stylo.
[browser_inspector_breadcrumbs_visibility.js]
[browser_inspector_delete-selected-node-01.js]
[browser_inspector_delete-selected-node-02.js]
[browser_inspector_delete-selected-node-03.js]
[browser_inspector_destroy-after-navigation.js]
[browser_inspector_destroy-before-ready.js]
[browser_inspector_expand-collapse.js]
-[browser_inspector_gcli-inspect-command.js]
[browser_inspector_highlighter-01.js]
[browser_inspector_highlighter-02.js]
[browser_inspector_highlighter-03.js]
[browser_inspector_highlighter-04.js]
[browser_inspector_highlighter-05.js]
[browser_inspector_highlighter-06.js]
[browser_inspector_highlighter-by-type.js]
[browser_inspector_highlighter-cancel.js]
deleted file mode 100644
--- a/devtools/client/inspector/test/browser_inspector_gcli-inspect-command.js
+++ /dev/null
@@ -1,125 +0,0 @@
-/* vim: set ts=2 et sw=2 tw=80: */
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-/* eslint key-spacing: 0 */
-/* import-globals-from ../../commandline/test/helpers.js */
-
-"use strict";
-
-// Import the GCLI test helper
-Services.scriptloader.loadSubScript(
- "chrome://mochitests/content/browser/devtools/client/commandline/test/helpers.js",
- this);
-
-// Testing that the gcli 'inspect' command works as it should.
-
-const TEST_URI = URL_ROOT + "doc_inspector_gcli-inspect-command.html";
-
-add_task(async function() {
- return helpers.addTabWithToolbar(TEST_URI, async function(options) {
- let {inspector} = await openInspector();
-
- let checkSelection = async function(selector) {
- let node = await getNodeFront(selector, inspector);
- is(inspector.selection.nodeFront, node, "the current selection is correct");
- };
-
- await helpers.audit(options, [
- {
- setup: "inspect",
- check: {
- input: "inspect",
- hints: " <selector>",
- markup: "VVVVVVV",
- status: "ERROR",
- args: {
- selector: {
- message: "Value required for \u2018selector\u2019."
- },
- }
- },
- },
- {
- setup: "inspect div",
- check: {
- input: "inspect div",
- hints: "",
- markup: "VVVVVVVVVVV",
- status: "VALID",
- args: {
- selector: { message: "" },
- }
- },
- exec: {},
- post: () => checkSelection("div"),
- },
- {
- setup: "inspect .someclass",
- check: {
- input: "inspect .someclass",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- selector: { message: "" },
- }
- },
- exec: {},
- post: () => checkSelection(".someclass"),
- },
- {
- setup: "inspect #someid",
- check: {
- input: "inspect #someid",
- hints: "",
- markup: "VVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- selector: { message: "" },
- }
- },
- exec: {},
- post: () => checkSelection("#someid"),
- },
- {
- setup: "inspect button[disabled]",
- check: {
- input: "inspect button[disabled]",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- selector: { message: "" },
- }
- },
- exec: {},
- post: () => checkSelection("button[disabled]"),
- },
- {
- setup: "inspect p>strong",
- check: {
- input: "inspect p>strong",
- hints: "",
- markup: "VVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- selector: { message: "" },
- }
- },
- exec: {},
- post: () => checkSelection("p>strong"),
- },
- {
- setup: "inspect :root",
- check: {
- input: "inspect :root",
- hints: "",
- markup: "VVVVVVVVVVVVV",
- status: "VALID"
- },
- exec: {},
- post: () => checkSelection(":root"),
- },
- ]);
- });
-});
deleted file mode 100644
--- a/devtools/client/inspector/test/doc_inspector_gcli-inspect-command.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>GCLI inspect command test</title>
-</head>
-<body>
-
- <!-- This is a list of 0 h1 elements -->
-
- <!-- This is a list of 1 div elements -->
- <div>Hello, I'm a div</div>
-
- <!-- This is a list of 2 span elements -->
- <span>Hello, I'm a span</span>
- <span>And me</span>
-
- <!-- This is a collection of various things that match only once -->
- <p class="someclass">.someclass</p>
- <p id="someid">#someid</p>
- <button disabled>button[disabled]</button>
- <p><strong>p>strong</strong></p>
-
-</body>
-</html>
--- a/devtools/client/responsive.html/test/browser/browser.ini
+++ b/devtools/client/responsive.html/test/browser/browser.ini
@@ -37,17 +37,16 @@ tags = devtools webextensions
[browser_mouse_resize.js]
[browser_navigation.js]
skip-if = true # Bug 1413765
[browser_network_throttling.js]
[browser_page_state.js]
[browser_permission_doorhanger.js]
tags = devtools geolocation
skip-if = true # Bug 1413765
-[browser_resize_cmd.js]
[browser_screenshot_button.js]
[browser_tab_close.js]
[browser_tab_remoteness_change.js]
[browser_target_blank.js]
[browser_telemetry_activate_rdm.js]
[browser_toolbox_computed_view.js]
[browser_toolbox_rule_view.js]
[browser_toolbox_swap_browsers.js]
deleted file mode 100644
--- a/devtools/client/responsive.html/test/browser/browser_resize_cmd.js
+++ /dev/null
@@ -1,148 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-/* global ResponsiveUIManager */
-/* eslint key-spacing: 0 */
-
-add_task(async function() {
- let manager = ResponsiveUIManager;
- let done;
-
- function isOpen() {
- return ResponsiveUIManager.isActiveForTab(gBrowser.selectedTab);
- }
-
- const TEST_URL = "data:text/html;charset=utf-8,hi";
- await helpers.addTabWithToolbar(TEST_URL, (options) => {
- return helpers.audit(options, [
- {
- setup() {
- done = once(manager, "on");
- return helpers.setInput(options, "resize toggle");
- },
- check: {
- input: "resize toggle",
- hints: "",
- markup: "VVVVVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(isOpen(), "responsive mode is open");
- },
- },
- {
- setup() {
- done = once(manager, "off");
- return helpers.setInput(options, "resize toggle");
- },
- check: {
- input: "resize toggle",
- hints: "",
- markup: "VVVVVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(!isOpen(), "responsive mode is closed");
- },
- },
- ]);
- });
- await helpers.addTabWithToolbar(TEST_URL, (options) => {
- return helpers.audit(options, [
- {
- setup() {
- done = once(manager, "on");
- return helpers.setInput(options, "resize on");
- },
- check: {
- input: "resize on",
- hints: "",
- markup: "VVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(isOpen(), "responsive mode is open");
- },
- },
- {
- setup() {
- done = once(manager, "off");
- return helpers.setInput(options, "resize off");
- },
- check: {
- input: "resize off",
- hints: "",
- markup: "VVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(!isOpen(), "responsive mode is closed");
- },
- },
- ]);
- });
- await helpers.addTabWithToolbar(TEST_URL, (options) => {
- return helpers.audit(options, [
- {
- setup() {
- done = once(manager, "on");
- return helpers.setInput(options, "resize to 400 400");
- },
- check: {
- input: "resize to 400 400",
- hints: "",
- markup: "VVVVVVVVVVVVVVVVV",
- status: "VALID",
- args: {
- width: { value: 400 },
- height: { value: 400 },
- }
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(isOpen(), "responsive mode is open");
- },
- },
- {
- setup() {
- done = once(manager, "off");
- return helpers.setInput(options, "resize off");
- },
- check: {
- input: "resize off",
- hints: "",
- markup: "VVVVVVVVVV",
- status: "VALID"
- },
- exec: {
- output: ""
- },
- async post() {
- await done;
- ok(!isOpen(), "responsive mode is closed");
- },
- },
- ]);
- });
-});