remove stray line

This commit is contained in:
Joel Einbinder 2020-02-12 19:22:41 -08:00
parent 475301695d
commit 2b0d285a31
2 changed files with 9 additions and 3 deletions

View file

@ -53,7 +53,6 @@ export class BrowserContext extends platform.EventEmitter {
private readonly _delegate: BrowserContextDelegate;
readonly _options: BrowserContextOptions;
private _closed = false;
_captureProtocol = false;
constructor(delegate: BrowserContextDelegate, options: BrowserContextOptions) {
super();

View file

@ -42,10 +42,17 @@ module.exports.describe = ({testRunner, product, playwrightPath}) => {
const playwrightModule = require(playwrightPath);
const playwright = playwrightModule[product.toLowerCase()];
const headless = (process.env.HEADLESS || 'true').trim().toLowerCase() === 'true';
const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);
const headless = !!valueFromEnv('HEADLESS', true);
const slowMo = valueFromEnv('SLOW_MO', 0);
const CI = valueFromEnv('CI', false);
const dumpProtocolOnFailure = CI || valueFromEnv('DEBUGP', true);
let dumpProtocolOnFailure = process.env.CI || ((process.env.DEBUGP || 'false').trim().toLowerCase() === 'true');
function valueFromEnv(name, defaultValue) {
if (!(name in process.env))
return defaultValue;
return JSON.parse(process.env[name]);
}
const executablePath = {
'Chromium': process.env.CRPATH,
'Firefox': process.env.FFPATH,