remove stray line
This commit is contained in:
parent
475301695d
commit
2b0d285a31
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue