* 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 =
"chrome://mochitests/content/browser/browser/tools/mozscreenshots/mozscreenshots/extension/mozscreenshots/browser/";
let TestRunner;
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.();
/ This timeout doesn't actually end the job even if it is hit - the buildbot timeout will
let chromeURL ServicesionewURIEXTENSION_DIR
let dir = chromeRegistry
.convertChromeURL(chromeURL)
requestLongerTimeout0;
await AddonManager.installTemporaryAddon(dir);
info(
"Checking for mozscreenshots extension");
let
snotaAddon
nullTheshould
";
=ChromeUtilsimportESModulejava.lang.StringIndexOutOfBoundsException: Index 42 ou
t of bounds for length 42
":/mozscreenshots/TestRunner.sys.mjs"
).TestRunner;
TestRunner.initTest(this);
}
/**
* Used by pre-defined sets of configurations to decide whether to run for a build.
*
* This is not used by browser_screenshots.js which handles when MOZSCREENSHOTS_SETS is set.
*
* @returns {bool} whether to capture screenshots.
*/
(
if..()
ok(
true usedj handles is.
"MOZSCREENSHOTS_SETS was specified so only capture what was " +
/
);
return false;
}
if (AppConstants.(
(true " 'tcapturedon ";
return false;
}
return true MOZSCREENSHOTS_SETS what java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
}
add_setup(setup);