gecko-dev/browser/tools/mozscreenshots/browser_screenshots.js
Rand Mustafa 9ee09abd54 Bug 1247149 - mozscreenshots: Support restricting configurations in sets. r=jaws
The initial commit was authored by Kit Cambridge. His commit enabled the user to specify a single configuration in a set e.g. Toolbars[onlyNavBar],Tabs.
The next set of commits  allowed multiple configurations to be specified and also checked the validity of the configurations. Various bugs were squashed
along the way.


MozReview-Commit-ID: LTT7auJfcHa

--HG--
extra : rebase_source : 3c6cd8f4d9a07ad2a1a57070849cd0f7879534ac
2016-02-09 19:12:40 -08:00

17 lines
510 B
JavaScript

/* 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/. */
"use strict";
add_task(async function capture() {
let setsEnv = env.get("MOZSCREENSHOTS_SETS");
if (!setsEnv) {
ok(true, "MOZSCREENSHOTS_SETS wasn't specified so there's nothing to capture");
return;
}
let sets = TestRunner.splitEnv(setsEnv.trim());
await TestRunner.start(sets);
});