From d459e3cf0e1b92f7dce683224bcdb8898f977f8d Mon Sep 17 00:00:00 2001 From: Lorenzo Urbini Date: Fri, 6 Oct 2017 11:21:04 +0200 Subject: [PATCH] audit(errors-in-console): Added new runtime exceptions gatherer to include js console errors code review actions --- .../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 @@ + + +