Package limn.testing.a11y
Class GridContract
java.lang.Object
limn.testing.a11y.GridContract
What every widget of the
GRID shape owes a reader beyond what its rows do, as named
cases over a GridSubject:
- the container is of the
GRIDshape and carries aTableFacetwhose column count is the header's; - the four invariants hold, unfocused and focused;
- the header cells sit at row −1, one per column, in order, each carrying the direction its
column is sorted in and
PRESSexactly where the column sorts; PRESSon a sortable header sorts by it and the facet says so, and a second press changes the direction the facet reports;- a data cell is a
CELLat a row and a column inside the counts; FOCUSon a cell that offers it moves the cursor onto that cell, which is then the one active node, and selects nothing;- a header cell keeps its id across a sort.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ContractCase> cases(GridSubject subject, UiRuntime runtime) The cases, in the order above.
-
Method Details
-
cases
The cases, in the order above.- Parameters:
subject- the widget under contractruntime- the installed runtime the harness drains verbs through- Returns:
- the cases; a test runs each as a dynamic test
-