Automatied testing options for 2.1.4 Character key Shortcuts and 2.5.2 Pointer Cancellation

Hi,

apologies for cross-posting.

There are two new WCAG 2.1 Success Critieria which might lend themselves 
well to automatic testing.

SC 2.1.4 Character key Shortcuts

I have written a draft Failure for 2.1.4  Character key Shortcuts 
https://github.com/w3c/wcag/pull/584 which currently has a rather clumsy 
and in any case time-consuming manual test (press each character key, 
watch for functions being triggered). Are there reliable ways to check 
for the presence of key event handlers that do not use modifier keys in 
all possible script invocation scenarios? If so, having a bookmarklet or 
similar to carry out this check would be great.

SC 2.5.2 Pointer Cancellation

A possibly automated check would look for functions on a page that 
trigger actions on "down events" (mousedown, touchdown  - not sure if we 
need to include mouseenter and touchenter since these would presumably 
also be fired). Since multistep events as in drag-n-drop are OK if there 
is a way to undo, abort, revert the action (which I guess cannot be 
safely tested automatically) the automatic part would be a first step in 
a semi-automatic test procedure.

I wonder if people in the ACT TF have already contemplated the 
feasibility of automatic checks for these two SCs, or are aware of 
anyone who might have put something together already which could be 
referenced in a Sufficient Technique or Failure test procedure.

Detlev

-- 
Detlev Fischer
Testkreis
Werderstr. 34, 20144 Hamburg

Mobil +49 (0)157 57 57 57 45

http://www.testkreis.de
Beratung, Tests und Schulungen für barrierefreie Websites

Received on Thursday, 17 January 2019 13:30:47 UTC