Files
tubestation/browser/tools/mozscreenshots/browser_screenshots.js
Rand Mustafa a2561b4f25 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
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);
});