From bf964dec68276fad6634f65bd7a7dfc2c1d66aa6 Mon Sep 17 00:00:00 2001 From: Patrick Hulce Date: Tue, 24 Jan 2017 16:15:54 -0800 Subject: [PATCH] DBW: Responsive Images Audit (#1497) --- .../test/fixtures/dobetterweb/dbw_tester.html | 19 ++- .../dobetterweb/dbw-expectations.js | 8 + .../dobetterweb/uses-responsive-images.js | 139 ++++++++++++++++++ lighthouse-core/config/default.json | 5 +- .../gather/gatherers/content-width.js | 10 +- .../gather/gatherers/image-usage.js | 113 ++++++++++++++ .../uses-responsive-images-test.js | 129 ++++++++++++++++ .../gather/gatherers/content-width-test.js | 3 +- 8 files changed, 420 insertions(+), 6 deletions(-) create mode 100644 lighthouse-core/audits/dobetterweb/uses-responsive-images.js create mode 100644 lighthouse-core/gather/gatherers/image-usage.js create mode 100644 lighthouse-core/test/audits/dobetterweb/uses-responsive-images-test.js diff --git a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html index ad342f016794..2568ca42c744 100644 --- a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html +++ b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html @@ -113,7 +113,16 @@ + +