Remove browser args
This commit is contained in:
@@ -18,8 +18,7 @@ describe('AttachAddon', () => {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('FitAddon', () => {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ describe('Search Tests', function(): void {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('SerializeAddon', () => {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('Unicode11Addon', () => {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('WebLinksAddon', () => {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -900,8 +900,7 @@ async function getCellColor(col: number, row: number): Promise<number[]> {
|
|||||||
async function setupBrowser(options: ITerminalOptions = { rendererType: 'dom' }): Promise<void> {
|
async function setupBrowser(options: ITerminalOptions = { rendererType: 'dom' }): Promise<void> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ describe('CharWidth Integration Tests', function(): void {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ describe('InputHandler Integration Tests', function(): void {
|
|||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
isChromium = browserType.name() === 'chromium';
|
isChromium = browserType.name() === 'chromium';
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -214,8 +214,7 @@ describe('Mouse Tracking Tests', async () => {
|
|||||||
|
|
||||||
before(async function(): Promise<void> {
|
before(async function(): Promise<void> {
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('Parser Integration Tests', function(): void {
|
|||||||
before(async function(): Promise<any> {
|
before(async function(): Promise<any> {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ describe('API Integration Tests', function(): void {
|
|||||||
before(async () => {
|
before(async () => {
|
||||||
const browserType = getBrowserType();
|
const browserType = getBrowserType();
|
||||||
browser = await browserType.launch({ dumpio: true,
|
browser = await browserType.launch({ dumpio: true,
|
||||||
headless: process.argv.indexOf('--headless') !== -1,
|
headless: process.argv.indexOf('--headless') !== -1
|
||||||
args: [`--window-size=${width},${height}`, `--no-sandbox`]
|
|
||||||
});
|
});
|
||||||
page = await (await browser.newContext()).newPage();
|
page = await (await browser.newContext()).newPage();
|
||||||
await page.setViewportSize({ width, height });
|
await page.setViewportSize({ width, height });
|
||||||
|
|||||||
Reference in New Issue
Block a user