From 487bee6652fb3780f54bd05c4767fbd72eaca7cf Mon Sep 17 00:00:00 2001 From: Lorenzo Urbini Date: Wed, 18 Oct 2017 01:15:05 +0200 Subject: [PATCH] core(errors-in-console): include runtime exceptions (#3494) --- .../test/fixtures/dobetterweb/dbw_tester.html | 3 + .../dobetterweb/dbw-expectations.js | 6 +- lighthouse-core/audits/errors-in-console.js | 33 ++++++--- lighthouse-core/config/default.js | 1 + .../gather/gatherers/runtime-exceptions.js | 38 ++++++++++ .../test/audits/errors-in-console-test.js | 34 ++++++++- .../gatherers/runtime-exceptions-test.js | 72 +++++++++++++++++++ 7 files changed, 173 insertions(+), 14 deletions(-) create mode 100644 lighthouse-core/gather/gatherers/runtime-exceptions.js create mode 100644 lighthouse-core/test/gather/gatherers/runtime-exceptions-test.js diff --git a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html index 1bdd9f121884..209c7f22ea0d 100644 --- a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html +++ b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html @@ -35,6 +35,9 @@ + + +