Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Feb 9, 2019
1 parent 38fad2f commit 9b7bbea
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 74 deletions.
145 changes: 73 additions & 72 deletions lighthouse-cli/test/cli/__snapshots__/index-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ Object {
Object {
"path": "manual/pwa-each-page-has-url",
},
Object {
"path": "accessibility/accesskeys",
},
Object {
"path": "accessibility/aria-allowed-attr",
},
Expand Down Expand Up @@ -231,9 +234,6 @@ Object {
Object {
"path": "accessibility/video-description",
},
Object {
"path": "accessibility/manual/accesskeys",
},
Object {
"path": "accessibility/manual/custom-controls-labels",
},
Expand Down Expand Up @@ -379,6 +379,11 @@ Object {
"categories": Object {
"accessibility": Object {
"auditRefs": Array [
Object {
"group": "a11y-navigation",
"id": "accesskeys",
"weight": 3,
},
Object {
"group": "a11y-aria",
"id": "aria-allowed-attr",
Expand Down Expand Up @@ -415,17 +420,17 @@ Object {
"weight": 5,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-audio-video",
"id": "audio-caption",
"weight": 4,
},
Object {
"group": "a11y-element-names",
"group": "a11y-names-labels",
"id": "button-name",
"weight": 10,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-navigation",
"id": "bypass",
"weight": 10,
},
Expand All @@ -435,27 +440,27 @@ Object {
"weight": 6,
},
Object {
"group": "a11y-well-structured",
"group": "a11y-tables-lists",
"id": "definition-list",
"weight": 1,
},
Object {
"group": "a11y-well-structured",
"group": "a11y-tables-lists",
"id": "dlitem",
"weight": 1,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-names-labels",
"id": "document-title",
"weight": 2,
},
Object {
"group": "a11y-well-structured",
"group": "a11y-best-practices",
"id": "duplicate-id",
"weight": 5,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-names-labels",
"id": "frame-title",
"weight": 5,
},
Expand All @@ -470,67 +475,67 @@ Object {
"weight": 1,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-names-labels",
"id": "image-alt",
"weight": 8,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-names-labels",
"id": "input-image-alt",
"weight": 1,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-names-labels",
"id": "label",
"weight": 10,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-tables-lists",
"id": "layout-table",
"weight": 1,
},
Object {
"group": "a11y-element-names",
"group": "a11y-names-labels",
"id": "link-name",
"weight": 9,
},
Object {
"group": "a11y-well-structured",
"group": "a11y-tables-lists",
"id": "list",
"weight": 5,
},
Object {
"group": "a11y-well-structured",
"group": "a11y-tables-lists",
"id": "listitem",
"weight": 4,
},
Object {
"group": "a11y-meta",
"group": "a11y-best-practices",
"id": "meta-refresh",
"weight": 1,
},
Object {
"group": "a11y-meta",
"group": "a11y-best-practices",
"id": "meta-viewport",
"weight": 3,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-names-labels",
"id": "object-alt",
"weight": 4,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-navigation",
"id": "tabindex",
"weight": 4,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-tables-lists",
"id": "td-headers-attr",
"weight": 1,
},
Object {
"group": "a11y-correct-attributes",
"group": "a11y-tables-lists",
"id": "th-has-data-cells",
"weight": 1,
},
Expand All @@ -540,19 +545,15 @@ Object {
"weight": 1,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-audio-video",
"id": "video-caption",
"weight": 4,
},
Object {
"group": "a11y-describe-contents",
"group": "a11y-audio-video",
"id": "video-description",
"weight": 3,
},
Object {
"id": "accesskeys",
"weight": 0,
},
Object {
"id": "logical-tab-order",
"weight": 0,
Expand Down Expand Up @@ -1006,35 +1007,35 @@ Object {
"groups": Object {
"a11y-aria": Object {
"description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.",
"title": "ARIA Attributes Follow Best Practices",
},
"a11y-color-contrast": Object {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Color Contrast Is Satisfactory",
"title": "ARIA",
},
"a11y-correct-attributes": Object {
"description": "These are opportunities to improve the configuration of your HTML elements.",
"title": "Elements Use Attributes Correctly",
"a11y-audio-video": Object {
"description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.",
"title": "Audio and video",
},
"a11y-describe-contents": Object {
"description": "These are opportunities to make your content easier to understand for a user of assistive technology, like a screen reader.",
"title": "Elements Describe Contents Well",
"a11y-best-practices": Object {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Best practices",
},
"a11y-element-names": Object {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Elements Have Discernible Names",
"a11y-color-contrast": Object {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Contrast",
},
"a11y-language": Object {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Page Specifies Valid Language",
"title": "Internationalization and localization",
},
"a11y-meta": Object {
"description": "These are opportunities to improve the user experience of your site.",
"title": "Meta Tags Used Properly",
"a11y-names-labels": Object {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Names and labels",
},
"a11y-navigation": Object {
"description": "These are opportunities to improve keyboard navigation in your application.",
"title": "Navigation",
},
"a11y-well-structured": Object {
"description": "These are opportunities to make sure your HTML is appropriately structured.",
"title": "Elements Are Well Structured",
"a11y-tables-lists": Object {
"description": "These are opportunities to to improve the experience of reading tabular or list data using assistive technology, like a screen reader.",
"title": "Tables and lists",
},
"diagnostics": Object {
"description": "More information about the performance of your application.",
Expand Down Expand Up @@ -1258,35 +1259,35 @@ Object {
"groups": Object {
"a11y-aria": Object {
"description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.",
"title": "ARIA Attributes Follow Best Practices",
"title": "ARIA",
},
"a11y-color-contrast": Object {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Color Contrast Is Satisfactory",
"a11y-audio-video": Object {
"description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.",
"title": "Audio and video",
},
"a11y-correct-attributes": Object {
"description": "These are opportunities to improve the configuration of your HTML elements.",
"title": "Elements Use Attributes Correctly",
},
"a11y-describe-contents": Object {
"description": "These are opportunities to make your content easier to understand for a user of assistive technology, like a screen reader.",
"title": "Elements Describe Contents Well",
"a11y-best-practices": Object {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Best practices",
},
"a11y-element-names": Object {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Elements Have Discernible Names",
"a11y-color-contrast": Object {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Contrast",
},
"a11y-language": Object {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Page Specifies Valid Language",
"title": "Internationalization and localization",
},
"a11y-names-labels": Object {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Names and labels",
},
"a11y-meta": Object {
"description": "These are opportunities to improve the user experience of your site.",
"title": "Meta Tags Used Properly",
"a11y-navigation": Object {
"description": "These are opportunities to improve keyboard navigation in your application.",
"title": "Navigation",
},
"a11y-well-structured": Object {
"description": "These are opportunities to make sure your HTML is appropriately structured.",
"title": "Elements Are Well Structured",
"a11y-tables-lists": Object {
"description": "These are opportunities to to improve the experience of reading tabular or list data using assistive technology, like a screen reader.",
"title": "Tables and lists",
},
"diagnostics": Object {
"description": "More information about the performance of your application.",
Expand Down
8 changes: 6 additions & 2 deletions lighthouse-cli/test/smokehouse/a11y/expectations.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,12 @@ module.exports = [
},
},
'accesskeys': {
score: null,
scoreDisplayMode: 'manual',
score: 0,
details: {
items: {
length: 1,
},
},
},
},
},
Expand Down

0 comments on commit 9b7bbea

Please sign in to comment.