lighthouse 9.5.0-dev.20220711 → 9.5.0-dev.20220714
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm-utils.mjs → esm-utils.js} +2 -2
- package/flow-report/tsconfig.json +1 -0
- package/lighthouse-cli/bin.js +5 -9
- package/lighthouse-cli/commands/list-audits.js +2 -2
- package/lighthouse-cli/commands/list-trace-categories.js +1 -2
- package/lighthouse-cli/run.js +2 -2
- package/lighthouse-cli/test/smokehouse/core-tests.js +3 -2
- package/lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js +4 -3
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js +8 -4
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js +17 -68
- package/lighthouse-cli/test/smokehouse/smokehouse.js +10 -1
- package/lighthouse-core/audits/accessibility/accesskeys.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-allowed-attr.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-command-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-hidden-body.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-hidden-focus.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-input-field-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-meter-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-progressbar-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-required-attr.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-required-children.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-required-parent.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-roles.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-toggle-field-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-tooltip-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-treeitem-name.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-valid-attr-value.js +6 -5
- package/lighthouse-core/audits/accessibility/aria-valid-attr.js +6 -5
- package/lighthouse-core/audits/accessibility/axe-audit.js +6 -5
- package/lighthouse-core/audits/accessibility/button-name.js +6 -5
- package/lighthouse-core/audits/accessibility/bypass.js +6 -5
- package/lighthouse-core/audits/accessibility/color-contrast.js +6 -5
- package/lighthouse-core/audits/accessibility/definition-list.js +6 -5
- package/lighthouse-core/audits/accessibility/dlitem.js +6 -5
- package/lighthouse-core/audits/accessibility/document-title.js +6 -5
- package/lighthouse-core/audits/accessibility/duplicate-id-active.js +6 -5
- package/lighthouse-core/audits/accessibility/duplicate-id-aria.js +6 -5
- package/lighthouse-core/audits/accessibility/form-field-multiple-labels.js +6 -5
- package/lighthouse-core/audits/accessibility/frame-title.js +6 -5
- package/lighthouse-core/audits/accessibility/heading-order.js +6 -5
- package/lighthouse-core/audits/accessibility/html-has-lang.js +6 -5
- package/lighthouse-core/audits/accessibility/html-lang-valid.js +6 -5
- package/lighthouse-core/audits/accessibility/image-alt.js +6 -5
- package/lighthouse-core/audits/accessibility/input-image-alt.js +6 -5
- package/lighthouse-core/audits/accessibility/label.js +6 -5
- package/lighthouse-core/audits/accessibility/link-name.js +6 -5
- package/lighthouse-core/audits/accessibility/list.js +6 -5
- package/lighthouse-core/audits/accessibility/listitem.js +6 -5
- package/lighthouse-core/audits/accessibility/manual/custom-controls-labels.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/custom-controls-roles.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/focus-traps.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/focusable-controls.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/interactive-element-affordance.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/logical-tab-order.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/managed-focus.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/offscreen-content-hidden.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/use-landmarks.js +2 -2
- package/lighthouse-core/audits/accessibility/manual/visual-order-follows-dom.js +2 -2
- package/lighthouse-core/audits/accessibility/meta-refresh.js +6 -5
- package/lighthouse-core/audits/accessibility/meta-viewport.js +6 -5
- package/lighthouse-core/audits/accessibility/object-alt.js +6 -5
- package/lighthouse-core/audits/accessibility/tabindex.js +6 -5
- package/lighthouse-core/audits/accessibility/td-headers-attr.js +6 -5
- package/lighthouse-core/audits/accessibility/th-has-data-cells.js +6 -5
- package/lighthouse-core/audits/accessibility/valid-lang.js +6 -5
- package/lighthouse-core/audits/accessibility/video-caption.js +6 -5
- package/lighthouse-core/audits/apple-touch-icon.js +5 -5
- package/lighthouse-core/audits/audit.js +4 -4
- package/lighthouse-core/audits/autocomplete.js +6 -6
- package/lighthouse-core/audits/bootup-time.js +9 -9
- package/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +12 -12
- package/lighthouse-core/audits/byte-efficiency/duplicated-javascript.js +9 -8
- package/lighthouse-core/audits/byte-efficiency/efficient-animated-content.js +7 -7
- package/lighthouse-core/audits/byte-efficiency/legacy-javascript.js +18 -10
- package/lighthouse-core/audits/byte-efficiency/modern-image-formats.js +7 -7
- package/lighthouse-core/audits/byte-efficiency/offscreen-images.js +11 -11
- package/lighthouse-core/audits/byte-efficiency/render-blocking-resources.js +15 -15
- package/lighthouse-core/audits/byte-efficiency/total-byte-weight.js +7 -7
- package/lighthouse-core/audits/byte-efficiency/unminified-css.js +8 -8
- package/lighthouse-core/audits/byte-efficiency/unminified-javascript.js +8 -8
- package/lighthouse-core/audits/byte-efficiency/unused-css-rules.js +7 -7
- package/lighthouse-core/audits/byte-efficiency/unused-javascript.js +9 -9
- package/lighthouse-core/audits/byte-efficiency/uses-long-cache-ttl.js +10 -10
- package/lighthouse-core/audits/byte-efficiency/uses-optimized-images.js +7 -7
- package/lighthouse-core/audits/byte-efficiency/uses-responsive-images-snapshot.js +8 -8
- package/lighthouse-core/audits/byte-efficiency/uses-responsive-images.js +9 -10
- package/lighthouse-core/audits/byte-efficiency/uses-text-compression.js +7 -7
- package/lighthouse-core/audits/content-width.js +5 -5
- package/lighthouse-core/audits/critical-request-chains.js +6 -6
- package/lighthouse-core/audits/csp-xss.js +7 -10
- package/lighthouse-core/audits/deprecations.js +7 -6
- package/lighthouse-core/audits/diagnostics.js +6 -6
- package/lighthouse-core/audits/dobetterweb/charset.js +6 -9
- package/lighthouse-core/audits/dobetterweb/doctype.js +5 -5
- package/lighthouse-core/audits/dobetterweb/dom-size.js +5 -5
- package/lighthouse-core/audits/dobetterweb/geolocation-on-start.js +5 -5
- package/lighthouse-core/audits/dobetterweb/inspector-issues.js +6 -5
- package/lighthouse-core/audits/dobetterweb/js-libraries.js +5 -5
- package/lighthouse-core/audits/dobetterweb/no-document-write.js +5 -5
- package/lighthouse-core/audits/dobetterweb/no-vulnerable-libraries.js +12 -8
- package/lighthouse-core/audits/dobetterweb/notification-on-start.js +5 -5
- package/lighthouse-core/audits/dobetterweb/password-inputs-can-be-pasted-into.js +5 -5
- package/lighthouse-core/audits/dobetterweb/uses-http2.js +15 -14
- package/lighthouse-core/audits/dobetterweb/uses-passive-event-listeners.js +5 -5
- package/lighthouse-core/audits/errors-in-console.js +8 -7
- package/lighthouse-core/audits/final-screenshot.js +5 -5
- package/lighthouse-core/audits/font-display.js +8 -8
- package/lighthouse-core/audits/full-page-screenshot.js +2 -2
- package/lighthouse-core/audits/image-aspect-ratio.js +6 -6
- package/lighthouse-core/audits/image-size-responsive.js +6 -6
- package/lighthouse-core/audits/installable-manifest.js +6 -6
- package/lighthouse-core/audits/is-on-https.js +8 -8
- package/lighthouse-core/audits/largest-contentful-paint-element.js +5 -5
- package/lighthouse-core/audits/layout-shift-elements.js +5 -5
- package/lighthouse-core/audits/lcp-lazy-loaded.js +5 -5
- package/lighthouse-core/audits/long-tasks.js +10 -10
- package/lighthouse-core/audits/main-thread-tasks.js +3 -3
- package/lighthouse-core/audits/mainthread-work-breakdown.js +7 -7
- package/lighthouse-core/audits/manual/manual-audit.js +2 -2
- package/lighthouse-core/audits/manual/pwa-cross-browser.js +5 -5
- package/lighthouse-core/audits/manual/pwa-each-page-has-url.js +5 -5
- package/lighthouse-core/audits/manual/pwa-page-transitions.js +5 -5
- package/lighthouse-core/audits/maskable-icon.js +6 -6
- package/lighthouse-core/audits/metrics/cumulative-layout-shift.js +6 -6
- package/lighthouse-core/audits/metrics/experimental-interaction-to-next-paint.js +6 -6
- package/lighthouse-core/audits/metrics/first-contentful-paint-3g.js +6 -4
- package/lighthouse-core/audits/metrics/first-contentful-paint.js +6 -6
- package/lighthouse-core/audits/metrics/first-meaningful-paint.js +6 -6
- package/lighthouse-core/audits/metrics/interactive.js +6 -6
- package/lighthouse-core/audits/metrics/largest-contentful-paint.js +6 -6
- package/lighthouse-core/audits/metrics/max-potential-fid.js +6 -6
- package/lighthouse-core/audits/metrics/speed-index.js +6 -6
- package/lighthouse-core/audits/metrics/total-blocking-time.js +6 -6
- package/lighthouse-core/audits/metrics.js +3 -3
- package/lighthouse-core/audits/multi-check-audit.js +2 -2
- package/lighthouse-core/audits/network-requests.js +5 -5
- package/lighthouse-core/audits/network-rtt.js +7 -7
- package/lighthouse-core/audits/network-server-latency.js +7 -7
- package/lighthouse-core/audits/no-unload-listeners.js +6 -6
- package/lighthouse-core/audits/non-composited-animations.js +6 -5
- package/lighthouse-core/audits/oopif-iframe-test-audit.js +1 -1
- package/lighthouse-core/audits/performance-budget.js +8 -8
- package/lighthouse-core/audits/predictive-perf.js +9 -10
- package/lighthouse-core/audits/preload-fonts.js +8 -7
- package/lighthouse-core/audits/preload-lcp-image.js +11 -11
- package/lighthouse-core/audits/redirects.js +11 -11
- package/lighthouse-core/audits/resource-summary.js +6 -6
- package/lighthouse-core/audits/screenshot-thumbnails.js +5 -5
- package/lighthouse-core/audits/script-elements-test-audit.js +1 -1
- package/lighthouse-core/audits/script-treemap-data.js +7 -6
- package/lighthouse-core/audits/seo/canonical.js +7 -7
- package/lighthouse-core/audits/seo/crawlable-anchors.js +5 -5
- package/lighthouse-core/audits/seo/font-size.js +8 -6
- package/lighthouse-core/audits/seo/hreflang.js +7 -6
- package/lighthouse-core/audits/seo/http-status-code.js +7 -6
- package/lighthouse-core/audits/seo/is-crawlable.js +11 -9
- package/lighthouse-core/audits/seo/link-text.js +7 -6
- package/lighthouse-core/audits/seo/manual/structured-data.js +5 -5
- package/lighthouse-core/audits/seo/meta-description.js +5 -5
- package/lighthouse-core/audits/seo/plugins.js +6 -6
- package/lighthouse-core/audits/seo/robots-txt.js +7 -6
- package/lighthouse-core/audits/seo/tap-targets.js +12 -9
- package/lighthouse-core/audits/server-response-time.js +6 -6
- package/lighthouse-core/audits/service-worker.js +6 -6
- package/lighthouse-core/audits/splash-screen.js +6 -6
- package/lighthouse-core/audits/themed-omnibox.js +7 -7
- package/lighthouse-core/audits/third-party-facades.js +14 -13
- package/lighthouse-core/audits/third-party-summary.js +9 -9
- package/lighthouse-core/audits/timing-budget.js +8 -8
- package/lighthouse-core/audits/unsized-images.js +6 -6
- package/lighthouse-core/audits/user-timings.js +6 -6
- package/lighthouse-core/audits/uses-rel-preconnect.js +15 -15
- package/lighthouse-core/audits/uses-rel-preload.js +13 -13
- package/lighthouse-core/audits/valid-source-maps.js +6 -6
- package/lighthouse-core/audits/viewport.js +6 -6
- package/lighthouse-core/audits/violation-audit.js +3 -3
- package/lighthouse-core/audits/work-during-interaction.js +15 -15
- package/lighthouse-core/computed/computed-artifact.js +3 -3
- package/lighthouse-core/computed/critical-request-chains.js +5 -5
- package/lighthouse-core/computed/image-records.js +3 -3
- package/lighthouse-core/computed/js-bundles.js +4 -4
- package/lighthouse-core/computed/load-simulator.js +8 -5
- package/lighthouse-core/computed/main-resource.js +4 -4
- package/lighthouse-core/computed/main-thread-tasks.js +4 -4
- package/lighthouse-core/computed/manifest-values.js +3 -3
- package/lighthouse-core/computed/metrics/cumulative-layout-shift.js +4 -4
- package/lighthouse-core/computed/metrics/first-contentful-paint-all-frames.js +3 -3
- package/lighthouse-core/computed/metrics/first-contentful-paint.js +4 -4
- package/lighthouse-core/computed/metrics/first-meaningful-paint.js +5 -5
- package/lighthouse-core/computed/metrics/interactive.js +8 -9
- package/lighthouse-core/computed/metrics/lantern-first-contentful-paint.js +7 -7
- package/lighthouse-core/computed/metrics/lantern-first-meaningful-paint.js +5 -5
- package/lighthouse-core/computed/metrics/lantern-interactive.js +7 -7
- package/lighthouse-core/computed/metrics/lantern-largest-contentful-paint.js +5 -5
- package/lighthouse-core/computed/metrics/lantern-max-potential-fid.js +6 -6
- package/lighthouse-core/computed/metrics/lantern-metric.js +10 -10
- package/lighthouse-core/computed/metrics/lantern-speed-index.js +8 -8
- package/lighthouse-core/computed/metrics/lantern-total-blocking-time.js +8 -8
- package/lighthouse-core/computed/metrics/largest-contentful-paint-all-frames.js +5 -4
- package/lighthouse-core/computed/metrics/largest-contentful-paint.js +6 -5
- package/lighthouse-core/computed/metrics/max-potential-fid.js +6 -6
- package/lighthouse-core/computed/metrics/metric.js +6 -6
- package/lighthouse-core/computed/metrics/navigation-metric.js +2 -2
- package/lighthouse-core/computed/metrics/responsiveness.js +3 -3
- package/lighthouse-core/computed/metrics/speed-index.js +5 -5
- package/lighthouse-core/computed/metrics/tbt-utils.js +1 -1
- package/lighthouse-core/computed/metrics/timing-summary.js +15 -15
- package/lighthouse-core/computed/metrics/total-blocking-time.js +7 -7
- package/lighthouse-core/computed/module-duplication.js +3 -3
- package/lighthouse-core/computed/network-analysis.js +4 -4
- package/lighthouse-core/computed/network-records.js +3 -3
- package/lighthouse-core/computed/page-dependency-graph.js +11 -11
- package/lighthouse-core/computed/processed-navigation.js +3 -3
- package/lighthouse-core/computed/processed-trace.js +3 -3
- package/lighthouse-core/computed/resource-summary.js +7 -7
- package/lighthouse-core/computed/screenshots.js +2 -2
- package/lighthouse-core/computed/speedline.js +5 -5
- package/lighthouse-core/computed/trace-of-tab.js +6 -5
- package/lighthouse-core/computed/unused-css.js +4 -4
- package/lighthouse-core/computed/unused-javascript-summary.js +2 -2
- package/lighthouse-core/computed/user-timings.js +3 -3
- package/lighthouse-core/computed/viewport-meta.js +3 -4
- package/lighthouse-core/config/budget.js +1 -1
- package/lighthouse-core/config/config-helpers.js +47 -19
- package/lighthouse-core/config/config-plugin.js +2 -2
- package/lighthouse-core/config/config.js +16 -14
- package/lighthouse-core/config/constants.js +1 -1
- package/lighthouse-core/config/default-config.js +11 -10
- package/lighthouse-core/config/desktop-config.js +2 -2
- package/lighthouse-core/config/experimental-config.js +1 -1
- package/lighthouse-core/config/full-config.js +1 -1
- package/lighthouse-core/config/lr-desktop-config.js +2 -2
- package/lighthouse-core/config/lr-mobile-config.js +1 -1
- package/lighthouse-core/config/metrics-to-audits.js +1 -1
- package/lighthouse-core/config/perf-config.js +1 -1
- package/lighthouse-core/fraggle-rock/api.js +8 -8
- package/lighthouse-core/fraggle-rock/config/config.js +27 -17
- package/lighthouse-core/fraggle-rock/config/default-config.js +5 -5
- package/lighthouse-core/fraggle-rock/config/filters.js +3 -4
- package/lighthouse-core/fraggle-rock/config/validation.js +4 -4
- package/lighthouse-core/fraggle-rock/gather/base-artifacts.js +6 -8
- package/lighthouse-core/fraggle-rock/gather/base-gatherer.js +2 -1
- package/lighthouse-core/fraggle-rock/gather/driver.js +5 -5
- package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +23 -27
- package/lighthouse-core/fraggle-rock/gather/runner-helpers.js +3 -3
- package/lighthouse-core/fraggle-rock/gather/session.js +3 -3
- package/lighthouse-core/fraggle-rock/gather/snapshot-runner.js +7 -11
- package/lighthouse-core/fraggle-rock/gather/timespan-runner.js +8 -12
- package/lighthouse-core/fraggle-rock/user-flow.js +8 -8
- package/lighthouse-core/gather/connections/connection.js +4 -4
- package/lighthouse-core/gather/connections/cri.js +6 -6
- package/lighthouse-core/gather/connections/raw.js +2 -2
- package/lighthouse-core/gather/driver/dom.js +1 -1
- package/lighthouse-core/gather/driver/environment.js +6 -6
- package/lighthouse-core/gather/driver/execution-context.js +2 -2
- package/lighthouse-core/gather/driver/navigation.js +8 -8
- package/lighthouse-core/gather/driver/network-monitor.js +7 -6
- package/lighthouse-core/gather/driver/network.js +2 -2
- package/lighthouse-core/gather/driver/prepare.js +5 -5
- package/lighthouse-core/gather/driver/service-workers.js +1 -1
- package/lighthouse-core/gather/driver/storage.js +4 -4
- package/lighthouse-core/gather/driver/target-manager.js +9 -4
- package/lighthouse-core/gather/driver/wait-for-condition.js +6 -5
- package/lighthouse-core/gather/driver.js +11 -16
- package/lighthouse-core/gather/fetcher.js +1 -1
- package/lighthouse-core/gather/gather-runner.js +22 -22
- package/lighthouse-core/gather/gatherers/accessibility.js +6 -5
- package/lighthouse-core/gather/gatherers/anchor-elements.js +6 -5
- package/lighthouse-core/gather/gatherers/cache-contents.js +2 -2
- package/lighthouse-core/gather/gatherers/console-messages.js +2 -2
- package/lighthouse-core/gather/gatherers/css-usage.js +6 -5
- package/lighthouse-core/gather/gatherers/devtools-log-compat.js +4 -3
- package/lighthouse-core/gather/gatherers/devtools-log.js +3 -3
- package/lighthouse-core/gather/gatherers/dobetterweb/doctype.js +2 -2
- package/lighthouse-core/gather/gatherers/dobetterweb/domstats.js +3 -3
- package/lighthouse-core/gather/gatherers/dobetterweb/optimized-images.js +8 -8
- package/lighthouse-core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js +4 -3
- package/lighthouse-core/gather/gatherers/dobetterweb/response-compression.js +10 -10
- package/lighthouse-core/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +4 -4
- package/lighthouse-core/gather/gatherers/full-page-screenshot.js +7 -6
- package/lighthouse-core/gather/gatherers/gatherer.js +1 -1
- package/lighthouse-core/gather/gatherers/global-listeners.js +2 -2
- package/lighthouse-core/gather/gatherers/iframe-elements.js +4 -3
- package/lighthouse-core/gather/gatherers/image-elements.js +5 -5
- package/lighthouse-core/gather/gatherers/inputs.js +5 -4
- package/lighthouse-core/gather/gatherers/inspector-issues.js +4 -4
- package/lighthouse-core/gather/gatherers/installability-errors.js +3 -3
- package/lighthouse-core/gather/gatherers/js-usage.js +2 -2
- package/lighthouse-core/gather/gatherers/link-elements.js +7 -7
- package/lighthouse-core/gather/gatherers/main-document-content.js +5 -5
- package/lighthouse-core/gather/gatherers/meta-elements.js +3 -3
- package/lighthouse-core/gather/gatherers/network-user-agent.js +3 -3
- package/lighthouse-core/gather/gatherers/script-elements.js +6 -6
- package/lighthouse-core/gather/gatherers/scripts.js +2 -2
- package/lighthouse-core/gather/gatherers/seo/embedded-content.js +4 -3
- package/lighthouse-core/gather/gatherers/seo/font-size.js +8 -5
- package/lighthouse-core/gather/gatherers/seo/robots-txt.js +2 -2
- package/lighthouse-core/gather/gatherers/seo/tap-targets.js +5 -4
- package/lighthouse-core/gather/gatherers/service-worker.js +3 -3
- package/lighthouse-core/gather/gatherers/source-maps.js +3 -3
- package/lighthouse-core/gather/gatherers/stacks.js +12 -4
- package/lighthouse-core/gather/gatherers/trace-compat.js +4 -3
- package/lighthouse-core/gather/gatherers/trace-elements.js +13 -12
- package/lighthouse-core/gather/gatherers/trace.js +4 -3
- package/lighthouse-core/gather/gatherers/viewport-dimensions.js +2 -2
- package/lighthouse-core/gather/gatherers/web-app-manifest.js +5 -5
- package/lighthouse-core/index.cjs +21 -0
- package/lighthouse-core/index.js +25 -23
- package/lighthouse-core/lib/arbitrary-equality-map.js +2 -2
- package/lighthouse-core/lib/asset-saver.js +15 -12
- package/lighthouse-core/lib/axe.js +9 -4
- package/lighthouse-core/lib/cdt/package.json +4 -0
- package/lighthouse-core/lib/csp-evaluator.js +11 -13
- package/lighthouse-core/lib/dependency-graph/base-node.js +2 -2
- package/lighthouse-core/lib/dependency-graph/cpu-node.js +2 -2
- package/lighthouse-core/lib/dependency-graph/network-node.js +3 -3
- package/lighthouse-core/lib/dependency-graph/simulator/connection-pool.js +4 -4
- package/lighthouse-core/lib/dependency-graph/simulator/dns-cache.js +1 -1
- package/lighthouse-core/lib/dependency-graph/simulator/network-analyzer.js +11 -10
- package/lighthouse-core/lib/dependency-graph/simulator/simulator-timing-map.js +5 -5
- package/lighthouse-core/lib/dependency-graph/simulator/simulator.js +12 -10
- package/lighthouse-core/lib/dependency-graph/simulator/tcp-connection.js +1 -1
- package/lighthouse-core/lib/emulation.js +2 -2
- package/lighthouse-core/lib/i18n/README.md +1 -1
- package/lighthouse-core/lib/i18n/i18n.js +13 -13
- package/lighthouse-core/lib/icons.js +2 -2
- package/lighthouse-core/lib/lantern-trace-saver.js +1 -1
- package/lighthouse-core/lib/lh-env.js +7 -5
- package/lighthouse-core/lib/lh-error.js +4 -4
- package/lighthouse-core/lib/lh-trace-processor.js +3 -3
- package/lighthouse-core/lib/manifest-parser.js +4 -4
- package/lighthouse-core/lib/median-run.js +1 -1
- package/lighthouse-core/lib/minification-estimator.js +1 -1
- package/lighthouse-core/lib/minify-devtoolslog.js +1 -1
- package/lighthouse-core/lib/minify-trace.js +3 -3
- package/lighthouse-core/lib/navigation-error.js +6 -6
- package/lighthouse-core/lib/network-recorder.js +4 -4
- package/lighthouse-core/lib/network-request.js +2 -3
- package/lighthouse-core/lib/page-functions.js +2 -1
- package/lighthouse-core/lib/proto-preprocessor.js +7 -6
- package/lighthouse-core/lib/rect-helpers.js +1 -1
- package/lighthouse-core/lib/script-helpers.js +4 -1
- package/lighthouse-core/lib/sentry.js +4 -4
- package/lighthouse-core/lib/stack-packs.js +4 -4
- package/lighthouse-core/lib/statistics.js +1 -1
- package/lighthouse-core/lib/tappable-rects.js +2 -2
- package/lighthouse-core/lib/third-party-web.js +2 -2
- package/lighthouse-core/lib/timing-trace-saver.js +1 -1
- package/lighthouse-core/lib/tracehouse/cpu-profile-model.js +8 -8
- package/lighthouse-core/lib/tracehouse/main-thread-tasks.js +2 -2
- package/lighthouse-core/lib/tracehouse/task-groups.js +1 -1
- package/lighthouse-core/lib/tracehouse/task-summary.js +2 -2
- package/lighthouse-core/lib/tracehouse/trace-processor.js +2 -3
- package/lighthouse-core/lib/traces/pwmetrics-events.js +4 -3
- package/lighthouse-core/lib/url-shim.js +6 -4
- package/lighthouse-core/package.json +4 -0
- package/lighthouse-core/runner.js +40 -34
- package/lighthouse-core/scoring.js +2 -2
- package/lighthouse-core/{util-commonjs.js → util.cjs} +0 -0
- package/package.json +4 -2
- package/report/test/generator/report-generator-test.js +4 -3
- package/report/test/renderer/report-renderer-axe-test.js +2 -2
- package/root.js +10 -2
- package/shared/package.json +4 -0
- package/shared/test/localization/format-test.js +23 -13
- package/shared/test/localization/swap-locale-test.js +1 -0
- package/third-party/axe/valid-langs.js +1 -1
- package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +3 -3
- package/third-party/chromium-synchronization/installability-errors-test.js +3 -3
- package/third-party/download-content-shell/download-content-shell.js +6 -5
- package/third-party/download-content-shell/utils.js +8 -8
- package/tsconfig.json +3 -1
- package/types/artifacts.d.ts +9 -11
- package/types/audit.d.ts +2 -2
- package/types/config.d.ts +1 -1
- package/types/cssstyle/index.d.ts +1 -1
- package/types/gatherer.d.ts +7 -7
- package/types/global-lh.d.ts +2 -2
- package/types/smokehouse.d.ts +2 -0
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all image elements have the alt HTML attribute to describe their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/image-alt).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class ImageAlt extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class ImageAlt extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default ImageAlt;
|
|
46
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all input elements of type image have an alt HTML attribute to describe their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/input-image-alt).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class InputImageAlt extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class InputImageAlt extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default InputImageAlt;
|
|
46
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all form elements have corresponding label elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'more](https://dequeuniversity.com/rules/axe/4.4/label).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class Label extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class Label extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default Label;
|
|
46
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all link elements have a non-generic name to screen readers. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -25,7 +26,7 @@ const UIStrings = {
|
|
|
25
26
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/link-name).',
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
29
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
29
30
|
|
|
30
31
|
class LinkName extends AxeAudit {
|
|
31
32
|
/**
|
|
@@ -42,5 +43,5 @@ class LinkName extends AxeAudit {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
export default LinkName;
|
|
47
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all list elements have a valid structure containing only list items. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -26,7 +27,7 @@ const UIStrings = {
|
|
|
26
27
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/list).',
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
30
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
30
31
|
|
|
31
32
|
class List extends AxeAudit {
|
|
32
33
|
/**
|
|
@@ -43,5 +44,5 @@ class List extends AxeAudit {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
export default List;
|
|
48
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if any list item elements do not have list parent elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -25,7 +26,7 @@ const UIStrings = {
|
|
|
25
26
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/listitem).',
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
29
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
29
30
|
|
|
30
31
|
class ListItem extends AxeAudit {
|
|
31
32
|
/**
|
|
@@ -42,5 +43,5 @@ class ListItem extends AxeAudit {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
export default ListItem;
|
|
47
|
+
export {UIStrings};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to assert custom controls have associated labels.
|
|
@@ -25,4 +25,4 @@ class CustomControlsLabels extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default CustomControlsLabels;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to assert custom controls have associated roles.
|
|
@@ -25,4 +25,4 @@ class CustomControlsRoles extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default CustomControlsRoles;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to avoid trapping keyboard focus in a region.
|
|
@@ -25,4 +25,4 @@ class FocusTraps extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default FocusTraps;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit for focusable controls.
|
|
@@ -25,4 +25,4 @@ class FocusableControls extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default FocusableControls;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit for interactive element affordance.
|
|
@@ -25,4 +25,4 @@ class InteractiveElementAffordance extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default InteractiveElementAffordance;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit for tab order that follows DOM order.
|
|
@@ -25,4 +25,4 @@ class LogicalTabOrder extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default LogicalTabOrder;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit for focusing new content that's added to the page.
|
|
@@ -25,4 +25,4 @@ class ManagedFocus extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default ManagedFocus;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to check that offscreen content is hidden from
|
|
@@ -26,4 +26,4 @@ class OffscreenContentHidden extends ManualAudit {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
export default OffscreenContentHidden;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to check that landmark elements are used whenever possible.
|
|
@@ -25,4 +25,4 @@ class UseLandmarks extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default UseLandmarks;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import ManualAudit from '../../manual/manual-audit.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Manual A11y audit to check that the visual layout of the page matches the DOM.
|
|
@@ -25,4 +25,4 @@ class VisualOrderFollowsDOM extends ManualAudit {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
export default VisualOrderFollowsDOM;
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if the page uses a meta tag that refreshes the page automatically. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -25,7 +26,7 @@ const UIStrings = {
|
|
|
25
26
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/meta-refresh).',
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
29
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
29
30
|
|
|
30
31
|
class MetaRefresh extends AxeAudit {
|
|
31
32
|
/**
|
|
@@ -42,5 +43,5 @@ class MetaRefresh extends AxeAudit {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
export default MetaRefresh;
|
|
47
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if the page has limited the scaling properties of the page in a way that harms users with low vision. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -26,7 +27,7 @@ const UIStrings = {
|
|
|
26
27
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/meta-viewport).',
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
30
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
30
31
|
|
|
31
32
|
class MetaViewport extends AxeAudit {
|
|
32
33
|
/**
|
|
@@ -43,5 +44,5 @@ class MetaViewport extends AxeAudit {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
export default MetaViewport;
|
|
48
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all object elements have an alt HTML attribute that describes their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/object-alt).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class ObjectAlt extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class ObjectAlt extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default ObjectAlt;
|
|
46
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if any elements have custom tabindex HTML attributes that might frustrate users of assitive technology. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'for users who rely on assistive technologies. [Learn more](https://dequeuniversity.com/rules/axe/4.4/tabindex).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class TabIndex extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class TabIndex extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default TabIndex;
|
|
46
|
+
export {UIStrings};
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
* See base class in axe-audit.js for audit() implementation.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import AxeAudit from './axe-audit.js';
|
|
15
|
+
|
|
16
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
16
17
|
|
|
17
18
|
const UIStrings = {
|
|
18
19
|
/** Title of an accesibility audit that evaluates if all table cell elements in a table that use the headers HTML attribute use it correctly to refer to header cells within the same table. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -28,7 +29,7 @@ const UIStrings = {
|
|
|
28
29
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/td-headers-attr).',
|
|
29
30
|
};
|
|
30
31
|
|
|
31
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
32
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
32
33
|
|
|
33
34
|
class TDHeadersAttr extends AxeAudit {
|
|
34
35
|
/**
|
|
@@ -45,5 +46,5 @@ class TDHeadersAttr extends AxeAudit {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
export default TDHeadersAttr;
|
|
50
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all table header elements have children. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -27,7 +28,7 @@ const UIStrings = {
|
|
|
27
28
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/th-has-data-cells).',
|
|
28
29
|
};
|
|
29
30
|
|
|
30
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
31
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
31
32
|
|
|
32
33
|
class THHasDataCells extends AxeAudit {
|
|
33
34
|
/**
|
|
@@ -44,5 +45,5 @@ class THHasDataCells extends AxeAudit {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
export default THHasDataCells;
|
|
49
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all lang HTML attributes are valid BCP 47 languages. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -24,7 +25,7 @@ const UIStrings = {
|
|
|
24
25
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/valid-lang).',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
28
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
28
29
|
|
|
29
30
|
class ValidLang extends AxeAudit {
|
|
30
31
|
/**
|
|
@@ -41,5 +42,5 @@ class ValidLang extends AxeAudit {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
export default ValidLang;
|
|
46
|
+
export {UIStrings};
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* See base class in axe-audit.js for audit() implementation.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import AxeAudit from './axe-audit.js';
|
|
14
|
+
|
|
15
|
+
import * as i18n from '../../lib/i18n/i18n.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/** Title of an accesibility audit that evaluates if all video elements contain a child track element that has captions describing their audio. This title is descriptive of the successful state and is shown to users when no user action is required. */
|
|
@@ -25,7 +26,7 @@ const UIStrings = {
|
|
|
25
26
|
'[Learn more](https://dequeuniversity.com/rules/axe/4.4/video-caption).',
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
29
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
29
30
|
|
|
30
31
|
class VideoCaption extends AxeAudit {
|
|
31
32
|
/**
|
|
@@ -42,5 +43,5 @@ class VideoCaption extends AxeAudit {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
export default VideoCaption;
|
|
47
|
+
export {UIStrings};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import {Audit} from './audit.js';
|
|
9
|
+
import * as i18n from '../lib/i18n/i18n.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @fileoverview Audits if a page has an `apple-touch-icon` link element with a valid href.
|
|
@@ -26,7 +26,7 @@ const UIStrings = {
|
|
|
26
26
|
'`apple-touch-icon` is preferred.',
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
29
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
30
30
|
|
|
31
31
|
class AppleTouchIcon extends Audit {
|
|
32
32
|
/**
|
|
@@ -68,5 +68,5 @@ class AppleTouchIcon extends Audit {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
export default AppleTouchIcon;
|
|
72
|
+
export {UIStrings};
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import {isUnderTest} from '../lib/lh-env.js';
|
|
9
|
+
import * as statistics from '../lib/statistics.js';
|
|
10
|
+
import {Util} from '../util.cjs';
|
|
11
11
|
|
|
12
12
|
const DEFAULT_PASS = 'defaultPass';
|
|
13
13
|
|
|
@@ -388,4 +388,4 @@ class Audit {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
|
|
391
|
+
export {Audit};
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
import {Audit} from './audit.js';
|
|
16
|
+
import * as i18n from '../lib/i18n/i18n.js';
|
|
17
|
+
import log from 'lighthouse-logger';
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/** Title of a Lighthouse audit that lets the user know if there are any missing or invalid autocomplete attributes on page inputs. This descriptive title is shown to users when all input attributes have a valid autocomplete attribute. */
|
|
@@ -48,7 +48,7 @@ const UIStrings = {
|
|
|
48
48
|
manualReview: 'Requires manual review',
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
const str_ = i18n.createMessageInstanceIdFn(
|
|
51
|
+
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
52
52
|
|
|
53
53
|
/** @type {string[]} This array contains all acceptable autocomplete attributes from the WHATWG standard. More found at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill */
|
|
54
54
|
const validAutocompleteTokens = ['name', 'honorific-prefix', 'given-name',
|
|
@@ -286,5 +286,5 @@ class AutocompleteAudit extends Audit {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
export default AutocompleteAudit;
|
|
290
|
+
export {UIStrings};
|