From 88905c1817c4d4f49727ec9cff37584610d44456 Mon Sep 17 00:00:00 2001 From: James Addison Date: Tue, 28 Jan 2020 17:27:13 +0000 Subject: [PATCH] deps: update axe-core to 3.4.1 --- .../test/smokehouse/test-definitions/a11y/expectations.js | 6 +++--- package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js index c4d76c6a4cfb..da6e90a57535 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js @@ -221,8 +221,8 @@ const expectations = [ 'type': 'node', 'selector': '#color-contrast', 'snippet': '
\n Hello\n
', - // Default font size is different depending on the platform (e.g. 28.5 on travis, 30.0 on Mac), so use \d\d\.\d. - 'explanation': /^Fix any of the following:\n {2}Element has insufficient color contrast of 2\.59 \(foreground color: #ffc0cb, background color: #ff0000, font size: \d\d\.\dpt, font weight: normal\). Expected contrast ratio of 3:1$/, + // Default font size is different depending on the platform (e.g. 28.5 on travis, 30.0 on Mac), and the px-converted units may have variable precision, so use \d+.\d+. + 'explanation': /^Fix any of the following:\n {2}Element has insufficient color contrast of 2\.59 \(foreground color: #ffc0cb, background color: #ff0000, font size: \d+.\d+pt \(\d+.\d+px\), font weight: normal\). Expected contrast ratio of 3:1$/, 'nodeLabel': 'Hello', }, }, @@ -475,7 +475,7 @@ const expectations = [ 'type': 'node', 'selector': '#listitem', 'snippet': '
  • ', - 'explanation': 'Fix any of the following:\n List item does not have a