Bug 1123945 - Fix --no-autorun harness option. r=jmaher

This commit is contained in:
J. Ryan Stinnett 2015-01-21 15:22:16 -06:00
parent 27c7cfdc0f
commit c67bbb5241

View File

@ -58,10 +58,12 @@ if (window.readConfig) {
}
if (config.testRoot == "chrome" || config.testRoot == "a11y") {
for (p in params) {
if (params[p] == 1) {
for (var p in params) {
// Compare with arrays to find boolean equivalents, since that's what
// |parseQueryString| with useArrays returns.
if (params[p] == [1]) {
config[p] = true;
} else if (params[p] == 0) {
} else if (params[p] == [0]) {
config[p] = false;
} else {
config[p] = params[p];