test: split out fixture tests and make them work with FF (#4067)

Drive-By: give Puppeteer-Firefox its own copy of DeviceDescriptors.
This commit is contained in:
Andrey Lushnikov
2019-02-25 12:40:17 -08:00
committed by GitHub
parent d04a8d55b4
commit 77a4ea505e
6 changed files with 899 additions and 43 deletions

View File

@@ -1,9 +1,7 @@
(async() => {
const [, , puppeteerRoot, options, emptyPage, dumpioTextToLog] = process.argv;
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
const page = await browser.newPage();
await page.goto(emptyPage);
await page.evaluate(_dumpioTextToLog => console.log(_dumpioTextToLog), dumpioTextToLog);
await page.close();
await browser.close();
})();