mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 23:38:47 +08:00
EXPERIMENTAL: attempts to gather info if chrome runner crashed (#7562)
This commit is contained in:
@ -49,9 +49,14 @@ async function runAllTests() {
|
|||||||
let chrome = await launchChrome();
|
let chrome = await launchChrome();
|
||||||
let protocol = await CDP({ port: chrome.port });
|
let protocol = await CDP({ port: chrome.port });
|
||||||
|
|
||||||
const { Page, Runtime } = protocol;
|
const { Inspector, Page, Runtime } = protocol;
|
||||||
|
|
||||||
await Promise.all([Page.enable(), Runtime.enable()]);
|
await Promise.all([Inspector.enable(), Page.enable(), Runtime.enable()]);
|
||||||
|
|
||||||
|
Inspector.targetCrashed(entry => {
|
||||||
|
console.log("Chrome target crashed:");
|
||||||
|
console.log(entry);
|
||||||
|
});
|
||||||
|
|
||||||
Runtime.exceptionThrown(exceptionInfo => {
|
Runtime.exceptionThrown(exceptionInfo => {
|
||||||
console.log(exceptionInfo.exceptionDetails.exception.description);
|
console.log(exceptionInfo.exceptionDetails.exception.description);
|
||||||
|
Reference in New Issue
Block a user