From f41aa5cb989d209e3c115ff9cd0d8b269c565dda Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 16 May 2019 18:00:57 +0200 Subject: [PATCH] EXPERIMENTAL: attempts to gather info if chrome runner crashed (#7562) --- test/run-qunit.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/run-qunit.js b/test/run-qunit.js index 311317a1334..41ac9e61496 100644 --- a/test/run-qunit.js +++ b/test/run-qunit.js @@ -49,9 +49,14 @@ async function runAllTests() { let chrome = await launchChrome(); 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 => { console.log(exceptionInfo.exceptionDetails.exception.description);