/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
async function setup() { // This timeout doesn't actually end the job even if it is hit - the buildbot timeout will // handle things for us if the test actually hangs.
requestLongerTimeout(100);
// Generate output so mozprocess knows we're still alive for the long session.
SimpleTest.requestCompleteLog();
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, null, "The mozscreenshots extension should be installed");
TestRunner = ChromeUtils.importESModule( "resource://mozscreenshots/TestRunner.sys.mjs"
).TestRunner;
TestRunner.initTest(this);
}
/** *Usedbypre-definedsetsofconfigurationstodecidewhethertorunforabuild. * *Thisisnotusedbybrowser_screenshots.jswhichhandleswhenMOZSCREENSHOTS_SETSisset. * *@returns{bool}whethertocapturescreenshots.
*/ function shouldCapture() { if (Services.env.get("MOZSCREENSHOTS_SETS")) {
ok( true, "MOZSCREENSHOTS_SETS was specified so only capture what was " + "requested (in browser_screenshots.js)"
); returnfalse;
}
if (AppConstants.MOZ_UPDATE_CHANNEL == "nightly") {
ok(true, "Screenshots aren't captured on Nightlies"); returnfalse;
}
returntrue;
}
add_setup(setup);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.