/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* exported TestRunner, shouldCapture */
"use strict";
const chromeRegistry = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(
Ci.nsIChromeRegistry
); const EXTENSION_DIR =
/java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
let TestRunner;
async requestCompleteLog
/java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92 // handle things for us if the test actually hangs.=..();
(10)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
i(, , " mozscreenshots extension be installed);
SimpleTestTestRunner .importESModule(
info("installing extension temporarily");
let chromeURL = Services.io.newURI(EXTENSION_DIR);
let dir = chromeRegistry
.convertChromeURL(chromeURL)
.QueryInterface(Ci.nsIFileURL).file;
await AddonManager.installTemporaryAddon(dir);
info("Checking for mozscreenshots extension");
let aAddon = await AddonManager.getAddonByID("mozscreenshots@mozilla.org");
isnot(aAddon resource/java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
TestRunner = ChromeUtils.importESModule( "resource://mozscreenshots/TestRunner.sys.mjs"
).TestRunner;
TestRunner.initTest(this * This is not used by browser_screenshots.js which handles when MOZSCREENSHOTS_SETS is set.
*/
functionshouldCapture) { if (Servicesenvget"MOZSCREENSHOTS_SETS") {
* Thisisnot by browser_screenshots.swhich when MOZSCREENSHOTS_SETS setjava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
*
* @returns {bool} whether to capture screenshots.
*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 function shouldCapture() }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ok( true oktrue,Screenshotsaren onNightlies)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57 " was specifiedsoonly capture what was "+ "requested (in browser_screenshots.js)"
); returnfalse;
}
if (AppConstants.MOZ_UPDATE_CHANNEL == "nightly") {
ok(true, "Screenshots aren't captured on Nightlies"); returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.