Skip to content

Commit

Permalink
refactor link using content from PR 991 (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcking65 authored Dec 6, 2023
1 parent 68f5642 commit a4c07d3
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 34 deletions.
3 changes: 3 additions & 0 deletions tests/link-span-text/data/assertions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assertionId,priority,assertionStatement,assertionPhrase,refIds
nameW3cWebsite,1,Name 'W3C website' is conveyed,convey name 'W3C website',
roleLink,1,Role 'link' is conveyed,convey role 'link',
16 changes: 0 additions & 16 deletions tests/link-span-text/data/commands.csv

This file was deleted.

13 changes: 13 additions & 0 deletions tests/link-span-text/data/jaws-commands.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
testId,command,settings,assertionExceptions,presentationNumber
navForwardsToLink,u,virtualCursor,,1.0
navForwardsToLink,tab,virtualCursor,,1.1
navForwardsToLink,down,virtualCursor,,1.2
navForwardsToLink,tab,pcCursor,,2.0
navBackToLink,shift+u,virtualCursor,,4.0
navBackToLink,up,virtualCursor,,4.1
navBackToLink,shift+tab,virtualCursor,,4.2
navBackToLink,shift+tab,pcCursor,,5.0
reqInfoAboutLink,ins+tab,virtualCursor,,7.0
reqInfoAboutLink,ins+up,virtualCursor,,7.1
reqInfoAboutLink,ins+tab,pcCursor,,8.0
reqInfoAboutLink,ins+up,pcCursor,,8.1
15 changes: 15 additions & 0 deletions tests/link-span-text/data/nvda-commands.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
testId,command,settings,assertionExceptions,presentationNumber
navForwardsToLink,u,browseMode,,1.0
navForwardsToLink,k,browseMode,,1.1
navForwardsToLink,tab,browseMode,,1.2
navForwardsToLink,down,browseMode,,1.3
navForwardsToLink,tab,focusMode,,2.0
navBackToLink,shift+u,browseMode,,4.0
navBackToLink,shift+k,browseMode,,4.1
navBackToLink,up,browseMode,,4.2
navBackToLink,shift+tab,browseMode,,4.3
navBackToLink,shift+tab,focusMode,,5.0
reqInfoAboutLink,ins+tab,browseMode,,7.0
reqInfoAboutLink,ins+up,browseMode,,7.1
reqInfoAboutLink,ins+tab,focusMode,,8.0
reqInfoAboutLink,ins+up,focusMode,,8.1
16 changes: 8 additions & 8 deletions tests/link-span-text/data/references.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
refId,value
author,Isabel Del Castillo
title,Link Example 1 (span element with text content)
authorEmail,[email protected]
reference,reference/2022-4-6_14258/link.html
designPattern,https://w3c.github.io/aria-practices/#link
example,https://w3c.github.io/aria-practices/examples/link/link.html
link,https://w3c.github.io/aria/#link
refId,type,value,linkText
author,metadata,Isabel Del Castillo,
title,metadata,Link Example 1 (span element with text content),
authorEmail,metadata,[email protected],
reference,metadata,reference/2022-4-6_14258/link.html,Test Case Page for Link Example 1 (span element with text content)
designPattern,metadata,https://www.w3.org/WAI/ARIA/apg/patterns/link/,APG Pattern: Link
example,metadata,https://www.w3.org/WAI/ARIA/apg/patterns/link/examples/link/,APG Example: Link
link,aria,link,link
4 changes: 4 additions & 0 deletions tests/link-span-text/data/scripts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setupScript,setupScriptDescription
setFocusAfterLink,sets focus on a link after the 'W3C website' link
setFocusBeforeLink,sets focus on a link before the 'W3C website' link
setFocusOnLink,sets focus on the 'W3C website' link
14 changes: 4 additions & 10 deletions tests/link-span-text/data/tests.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
testId,title,appliesTo,mode,task,setupScript,setupScriptDescription,refs,instructions,assertion1,assertion2
1,Navigate forwards to a link in reading mode,"JAWS,NVDA",READING,Navigate forwards to a link,setFocusBeforeLink,sets focus on a link before the 'W3C website' link,link,"With the reading cursor on the 'Navigate forwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed.
2,Navigate forwards to a link in interaction mode,"JAWS,NVDA",INTERACTION,Navigate forwards to a link,setFocusBeforeLink,sets focus on a link before the 'W3C website' link,link,"With focus on the 'Navigate forwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed.
3,Navigate forwards to a link,VOICEOVER_MACOS,INTERACTION,Navigate forwards to a link,setFocusBeforeLink,sets focus on a link before the 'W3C website' link,link,"With focus on the 'Navigate forwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed.
4,Navigate backwards to a link in reading mode,"JAWS,NVDA",READING,Navigate backwards to a link,setFocusAfterLink,sets focus on a link after the 'W3C website' link,link,"With the reading cursor on the 'Navigate backwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
5,Navigate backwards to a link in interaction mode,"JAWS,NVDA",INTERACTION,Navigate backwards to a link,setFocusAfterLink,sets focus on a link after the 'W3C website' link,link,"With focus on the 'Navigate backwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
6,Navigate backwards to a link,VOICEOVER_MACOS,INTERACTION,Navigate backwards to a link,setFocusAfterLink,sets focus on a link after the 'W3C website' link,link,"With focus on the 'Navigate backwards from here' link, navigate to the 'W3C website' link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
7,Read information about a link in reading mode,"JAWS,NVDA",READING,Read information about a link,setFocusOnLink,sets focus on the 'W3C website' link,link,"With the reading cursor on the 'W3C website' link, read information about the link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
8,Read information about a link in interaction mode,"JAWS,NVDA",INTERACTION,Read information about a link,setFocusOnLink,sets focus on the 'W3C website' link,link,"With focus on the 'W3C website' link, read information about the link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
9,Read information about a link,VOICEOVER_MACOS,INTERACTION,Read information about a link,setFocusOnLink,sets focus on the 'W3C website' link,link,"With focus on the 'W3C website' link, read information about the link.",Role 'link' is conveyed,Name 'W3C website' is conveyed
testId,title,presentationNumber,setupScript,instructions,assertions
navForwardsToLink,Navigate forwards to a link,3,setFocusBeforeLink,"Starting at the 'Navigate forwards from here' link, navigate to the 'W3C website' link.",roleLink nameW3cWebsite
navBackToLink,Navigate backwards to a link,6,setFocusAfterLink,"Starting at the 'Navigate backwards from here' link, navigate to the 'W3C website' link.",roleLink nameW3cWebsite
reqInfoAboutLink,Request information about a link,9,setFocusOnLink,"Starting at the 'W3C website' link, read information about the link.",roleLink nameW3cWebsite
9 changes: 9 additions & 0 deletions tests/link-span-text/data/voiceover_macos-commands.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
testId,command,settings,assertionExceptions,presentationNumber
navForwardsToLink,ctrl+opt+right,,,3
navForwardsToLink,tab,,,3.1
navForwardsToLink,l ,quickNavOn,,3.2
navBackToLink,ctrl+opt+left,,,6
navBackToLink,shift+tab,,,6.1
navBackToLink,shift+l,quickNavOn,,6.2
reqInfoAboutLink,ctrl+opt+f3,,,9
reqInfoAboutLink,ctrl+opt+f4,,,9.1

0 comments on commit a4c07d3

Please sign in to comment.