Skip to content

core(icons): Add PNG check to icon validation - #6024

Merged
brendankenny merged 8 commits into
masterfrom
bug/pwa-icon-check
Sep 17, 2018
Merged

brendankenny merged 8 commits into
masterfrom
bug/pwa-icon-check

Conversation

@exterkamp

Copy link
Copy Markdown
Member

fixes #4876

Summary
Adds the additional check of validating if an icon is a PNG when validating that an icon is the correct size.

Notes
Changed the way that artifacts are computed in audit tests so that they can take in a manifest.json as a param to use multiple different manifests for testing.

@exterkamp exterkamp changed the title core(icons): Add PNG check to icon validation. core(icons): Add PNG check to icon validation Sep 14, 2018

@brendankenny brendankenny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Love the new tests.

Just one big question (type?) and then some naming suggestions

Comment thread lighthouse-core/lib/icons.js Outdated
Comment thread lighthouse-core/lib/icons.js Outdated
Comment thread lighthouse-core/test/audits/splash-screen-test.js
Comment thread lighthouse-core/test/audits/splash-screen-test.js Outdated
Comment thread lighthouse-core/test/audits/webapp-install-banner-test.js Outdated
Comment thread lighthouse-core/test/lib/icons-test.js Outdated
Comment thread lighthouse-core/test/lib/icons-test.js Outdated

@brendankenny brendankenny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good. Last request for a case we didn't think about before :)

Comment thread lighthouse-core/lib/icons.js Outdated

@brendankenny brendankenny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brendankenny
brendankenny merged commit 25457c1 into master Sep 17, 2018
@brendankenny
brendankenny deleted the bug/pwa-icon-check branch September 17, 2018 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lighthouse PWA audits pass even with a JPG icon

2 participants