@web/test-runner-chrome
Advanced tools
Comparing version 0.5.9 to 0.5.10
# @web/test-runner-chrome | ||
## 0.5.10 | ||
### Patch Changes | ||
- 7db1da1: open debug in a larger browser window | ||
## 0.5.9 | ||
@@ -4,0 +10,0 @@ |
@@ -99,6 +99,11 @@ "use strict"; | ||
async startDebugSession(session, url) { | ||
var _a, _b; | ||
if (debugBrowser === null || debugBrowser === void 0 ? void 0 : debugBrowser.isConnected()) { | ||
await debugBrowser.close(); | ||
} | ||
debugBrowser = await launchBrowser(Object.assign(Object.assign({}, launchOptions), { devtools: true })); | ||
// set a default window size if the user didn't set any. this will cause the | ||
// browser to be opened maximized, chrome doesn't open larger than the physical screen | ||
const args = ((_a = launchOptions.args) === null || _a === void 0 ? void 0 : _a.includes('--window-size')) ? launchOptions.args | ||
: [...((_b = launchOptions.args) !== null && _b !== void 0 ? _b : []), '--window-size=4000,4000']; | ||
debugBrowser = await launchBrowser(Object.assign(Object.assign({}, launchOptions), { args, devtools: true })); | ||
const page = await debugBrowser.newPage(); | ||
@@ -105,0 +110,0 @@ debugPages.set(session.id, page); |
{ | ||
"name": "@web/test-runner-chrome", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18917
181