Bug 1234604: Use add_task instead of asyncTest;r=jryans

--HG--
extra : commitid : Nmzi44eDmd
This commit is contained in:
Brian Grinstead 2015-12-22 15:06:35 -08:00
parent 7129df93f8
commit ddd1e2b6d2
118 changed files with 123 additions and 125 deletions

View File

@ -23,7 +23,7 @@ var hud = undefined;
var TEST_URI = "data:text/html;charset=utf8,Web Console CSP ignoring " +
"reflected XSS (bug 1045902)";
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -9,7 +9,7 @@
"use strict";
var test = asyncTest(function* () {
add_task(function* () {
const TEST_URI1 = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
const TEST_URI2 = "http://example.org/browser/devtools/client/webconsole/" +

View File

@ -8,7 +8,7 @@
"use strict";
var test = asyncTest(function* () {
add_task(function* () {
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html?_date=" + Date.now();
const COMMAND_NAME = "consoleCmd_copyURL";

View File

@ -9,7 +9,7 @@
const TEST_URI = "data:text/html;charset=utf8,<p>test for bug 862916";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-repeated-messages.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-869003-top-window.html";
var test = asyncTest(function* () {
add_task(function* () {
// This test is slightly more involved: it opens the web console, then the
// variables view for a given object, it updates a property in the view and
// checks the result. We can get a timeout with debug builds on slower

View File

@ -8,7 +8,7 @@
"use strict";
var test = asyncTest(function* () {
add_task(function* () {
const TEST_URI = "data:text/html;charset=utf8,<title>bug871156</title>\n" +
"<p>hello world";
let firstTab = gBrowser.selectedTab;

View File

@ -17,7 +17,7 @@ const TEST_IMAGE = "http://example.com/browser/devtools/client/webconsole/" +
"use strict";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let opened = waitForConsole();

View File

@ -8,7 +8,7 @@
"use strict";
var test = asyncTest(function*() {
add_task(function*() {
const PREF = "devtools.webconsole.persistlog";
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@ const TEST_URI = "data:text/html;charset=utf8,<p>browser console filters";
const WEB_CONSOLE_PREFIX = "devtools.webconsole.filter.";
const BROWSER_CONSOLE_PREFIX = "devtools.browserconsole.filter.";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
info("open the web console");

View File

@ -12,7 +12,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"persisting history - bug 943306";
const INPUT_HISTORY_COUNT = 10;
var test = asyncTest(function* () {
add_task(function* () {
info("Setting custom input history pref to " + INPUT_HISTORY_COUNT);
Services.prefs.setIntPref("devtools.webconsole.inputHistoryCount",
INPUT_HISTORY_COUNT);

View File

@ -7,7 +7,7 @@
"use strict";
var test = asyncTest(function*() {
add_task(function*() {
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";

View File

@ -6,7 +6,7 @@
"use strict";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab("data:text/html;charset=utf8,test for bug 676722 - " +
"inspectable objects for window.console");

View File

@ -11,7 +11,7 @@
const TEST_URI = "data:text/html;charset=utf8,<title>bug870220</title>\n" +
"<p>hello world\n<p>native getters!";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
let jsterm = hud.jsterm;

View File

@ -13,7 +13,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
var hud;
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref(PREF, true);
let { browser } = yield loadTab(TEST_URI);

View File

@ -10,7 +10,7 @@
var {Tools} = require("devtools/client/definitions");
var test = asyncTest(function* () {
add_task(function* () {
let currWindow, hud, mainWindow;
mainWindow = Services.wm.getMostRecentWindow(null);

View File

@ -6,7 +6,7 @@
"use strict";
// Check that server log appears in the console panel - bug 1168872
var test = asyncTest(function* () {
add_task(function* () {
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/test/test-console-server-logging.sjs";
yield loadTab(TEST_URI);

View File

@ -14,7 +14,7 @@ var gWebConsole, gJSTerm, gVariablesView;
var hud;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -20,7 +20,7 @@ function assertAttrs(view, expected, message) {
is(props(view).join(","), expected, message);
}
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab("data:text/html;charset=utf-8,webconsole-filter");
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "data:text/html;charset=utf8,<p>test for bug 1084430";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-eval-in-stackframe.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
info("open the web console");

View File

@ -9,7 +9,7 @@
const TEST_URI = "data:text/html;charset=utf8,<p>hello bug 869981";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -9,7 +9,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-859170-longstring-hang.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -9,7 +9,7 @@
const TEST_URI = "data:text/html;charset=utf8,test for bug 773466";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -9,7 +9,7 @@
const TEST_URI = "data:text/html;charset=utf8,test for bug 787981 - check " +
"that long strings can be expanded in the output.";
var test = asyncTest(function* () {
add_task(function* () {
let { DebuggerServer } = require("devtools/server/main");
let longString = (new Array(DebuggerServer.LONG_STRING_LENGTH + 4))

View File

@ -14,7 +14,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-repeated-messages.html";
const PREF = "devtools.webconsole.persistlog";
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref(PREF, true);
let { browser } = yield loadTab(TEST_URI);

View File

@ -9,7 +9,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-result-format-as-string.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/testscript.js";
const PREF = "devtools.webconsole.persistlog";
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref(PREF, true);
let { browser } = yield loadTab(TEST_URI);

View File

@ -16,7 +16,7 @@ const TEST_URI = "https://example.com/browser/devtools/client/webconsole/" +
const LEARN_MORE_URI = "https://developer.mozilla.org/docs/Security/" +
"MixedContent";
var test = asyncTest(function* () {
add_task(function* () {
yield pushPrefEnv();
yield loadTab(TEST_URI);

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console-assert.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -9,7 +9,7 @@
// Test that properties starting with underscores or dollars can be
// autocompleted (bug 967468).
var test = asyncTest(function*() {
add_task(function*() {
const TEST_URI = "data:text/html;charset=utf8,test autocompletion with " +
"$ or _";
yield loadTab(TEST_URI);

View File

@ -11,7 +11,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "clipboardHelper",
"nsIClipboardHelper");
var WebConsoleUtils = require("devtools/shared/webconsole/utils").Utils;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "data:text/html;charset=utf-8,<p>bug 900448 - autocomplete " +
"popup closes on tab switch";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
let popup = hud.jsterm.autocompletePopup;

View File

@ -12,7 +12,7 @@ const TEST_NETWORK_URI = "http://example.com/browser/devtools/client/" +
"webconsole/test/test-network.html" + "?_date=" +
Date.now();
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab("data:text/html;charset=utf-8,Web Console basic network " +
"logging test");
let hud = yield openConsole();

View File

@ -19,7 +19,7 @@ const TEST_URI = "https://example.com/browser/devtools/client/webconsole/" +
const LEARN_MORE_URI = "https://developer.mozilla.org/docs/Security/" +
"MixedContent";
var test = asyncTest(function* () {
add_task(function* () {
yield pushPrefEnv();
let { browser } = yield loadTab(TEST_URI);

View File

@ -31,7 +31,7 @@ const CSP_REPORT_MSG = "Content Security Policy: The page\'s settings " +
"(\"script-src http://example.com\"). A CSP report is " +
"being sent.";
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug_1050691_click_function_to_source.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -11,7 +11,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -15,7 +15,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
const TEST_TIMESTAMP = 12345678;
let date = new Date(TEST_TIMESTAMP);

View File

@ -12,7 +12,7 @@ const INIT_URI = "data:text/html;charset=utf8,hello world";
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-duplicate-error.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(INIT_URI);
let hud = yield openConsole();

View File

@ -8,7 +8,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/browser/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -18,7 +18,7 @@ const TEST_URI = "data:text/html;charset=utf8,test for bug 585237";
var outputNode;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -9,7 +9,7 @@ const TEST_URI = "data:text/html;charset=utf-8,<p>bug 585991 - autocomplete " +
"popup keyboard usage test";
var HUD, popup, jsterm, inputNode, completeNode;
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -8,7 +8,7 @@
const TEST_URI = "data:text/html;charset=utf-8,<p>bug 585991 - autocomplete " +
"popup test";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@
const TEST_URI = "http://example.com/";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -15,7 +15,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
var HUD, outputNode;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for bug 588342";
var fm = Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager);
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -8,7 +8,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -17,7 +17,7 @@
const TEST_URI = "data:text/html;charset=utf-8,test for bug 592442";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -15,7 +15,7 @@ var inputNode, values;
var TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"bug 594497 and bug 619598";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@ const TEST_URI = "data:text/html;charset=utf8,<p>test file URI";
var hud;
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref(PREF, true);
let jar = getJar(getRootDirectory(gTestPath));

View File

@ -14,7 +14,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-network.html";
const PREF = "devtools.webconsole.persistlog";
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref(PREF, true);
yield loadTab(TEST_URI);

View File

@ -15,7 +15,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
var HUD;
var test = asyncTest(function* () {
add_task(function* () {
// On e10s, the exception is triggered in child process
// and is ignored by test harness
if (!Services.appinfo.browserTabsRemoteAutostart) {

View File

@ -69,7 +69,7 @@ function waitForRequest() {
return deferred.promise;
}
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(INIT_URI);
yield openConsole();

View File

@ -49,7 +49,7 @@ function waitForRequest() {
return deferred.promise;
}
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(INIT_URI);
let hud = yield openConsole();

View File

@ -15,7 +15,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
const TEST_URI2 = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-601177-log-levels.html";
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref("javascript.options.strict", true);
yield loadTab(TEST_URI);

View File

@ -11,7 +11,7 @@ const FILTER_PREF_DOMAIN = "devtools.webconsole.filter.";
var hud, hudId, hudBox;
var prefs = {};
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -15,7 +15,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
const TEST_URI2 = "data:text/html;charset=utf-8,Web Console test for " +
"bug 603750: Web Socket errors";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI2);
let hud = yield openConsole();

View File

@ -14,7 +14,7 @@ var hud;
* Repeated CSS messages get collapsed into one.
*/
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -13,7 +13,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-613013-console-api-iframe.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@
var TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"bug 613642: remember scroll location";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
var hud;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"use strict";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for bug 618078";
const TEST_URI2 = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-618078-network-exceptions.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-621644-jsterm-dollar.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -31,7 +31,7 @@ const prefs = {
]
};
var test = asyncTest(function* () {
add_task(function* () {
// Set all prefs to true
for (let category in prefs) {
prefs[category].forEach(function(pref) {

View File

@ -8,7 +8,7 @@
const TEST_URI = "data:text/html;charset=utf-8,Test console for bug 623749";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -17,7 +17,7 @@ const TEST_URI2 = "http://example.com/browser/devtools/client/webconsole/" +
var lastFinishedRequests = {};
var webConsoleClient;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -18,7 +18,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/" +
var hud, outputNode;
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(INIT_URI);
hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const TEST_URI2 = "http://example.com/browser/devtools/client/" +
"webconsole/test/" +
"test-bug-646025-console-file-location.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -13,7 +13,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console autocompletion " +
var gHUD;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
gHUD = yield openConsole();

View File

@ -20,7 +20,7 @@ const TEST_URI3 = "data:text/html;charset=utf-8,<script>" +
const TEST_URI4 = "data:text/html;charset=utf-8," +
"<script>console.timeEnd('bTimer');</script>";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud1 = yield openConsole();

View File

@ -11,7 +11,7 @@
const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"bug 659907: Expand console object with a dir method";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -7,7 +7,7 @@
const TEST_URI = "data:text/html;charset=utf-8,<p>bug 660806 - history " +
"navigation must not show the autocomplete popup";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@
const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
"bug 664131: Expand console object with group methods";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@ const TEST_URI = "data:text/html;charset=utf8,<p>test JSTerm Helpers " +
var jsterm;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -8,7 +8,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/browser/test-console.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -18,7 +18,7 @@ const TEST_HTTPS_URI = "https://example.com/browser/devtools/client/" +
const LEARN_MORE_URI = "https://developer.mozilla.org/docs/Security/" +
"MixedContent";
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref("security.mixed_content.block_display_content",
false);
Services.prefs.setBoolPref("security.mixed_content.block_active_content",

View File

@ -13,7 +13,7 @@ const INSECURE_PASSWORD_MSG = "Password fields present on an insecure " +
"(http://) page. This is a security risk that allows user login " +
"credentials to be stolen.";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -22,7 +22,7 @@ const INSECURE_IFRAME_MSG = "Password fields present on an insecure " +
const INSECURE_PASSWORDS_URI = "https://developer.mozilla.org/docs/Security/" +
"InsecurePasswords";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const CONTEXT_MENU_ID = "#menu_openURL";
var HUD = null, outputNode = null, contextMenu = null;
var test = asyncTest(function* () {
add_task(function* () {
Services.prefs.setBoolPref("devtools.webconsole.filter.networkinfo", true);
yield loadTab(TEST_URI);

View File

@ -17,7 +17,7 @@ const CSP_VIOLATION_MSG = "Content Security Policy: The page's settings " +
"http://some.example.com/test.png (\"default-src " +
"https://example.com\").";
var test = asyncTest(function* () {
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -11,7 +11,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/test" +
var nodes, hud, StyleEditorUI;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -18,7 +18,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
var jsterm, inputNode;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -17,7 +17,7 @@
const TEST_URI = "data:text/html;charset=utf-8,Web Console test for bug 817834";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -6,7 +6,7 @@
const TEST_URI = "https://example.com/browser/devtools/client/webconsole/" +
"test/test-bug-837351-security-errors.html";
var test = asyncTest(function* () {
add_task(function* () {
yield pushPrefEnv();
yield loadTab(TEST_URI);

View File

@ -11,7 +11,7 @@
const TEST_URI = `data:text/html;charset=utf-8,Web Console test for bug 922212:
Add console.dirxml`;
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -13,7 +13,7 @@ const TEST_URI = "data:text/html;charset=utf8,<p>test cached autocompletion " +
var jsterm;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -12,7 +12,7 @@
const TEST_URI = "http://example.com/";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
Services.prefs.setIntPref("devtools.webconsole.fontSize", 10);
let hud = yield HUDService.toggleBrowserConsole();

View File

@ -11,7 +11,7 @@ const TEST_URI = "data:text/html;charset=utf8,<p>test code completion";
var jsterm;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -9,7 +9,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console-workers.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

View File

@ -11,7 +11,7 @@ const TEST_URI = "data:text/html;charset=utf-8,Web Console test for " +
const PREF_MESSAGE_TIMESTAMP = "devtools.webconsole.timestampMessages";
var hud;
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
hud = yield openConsole();

View File

@ -8,7 +8,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-for-of.html";
var test = asyncTest(function* () {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();

View File

@ -14,7 +14,7 @@ const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
const HISTORY_BACK = -1;
const HISTORY_FORWARD = 1;
var test = asyncTest(function*() {
add_task(function*() {
yield loadTab(TEST_URI);
let hud = yield openConsole();
hud.jsterm.clearOutput();

Some files were not shown because too many files have changed in this diff Show More