Skip to content

Commit

Permalink
Fix recently introduced mistake in tab calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerie R Young committed Oct 4, 2018
1 parent 5628a41 commit 15df732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ ariaTest('tab changes focus within dialog', exampleFile, 'key-tab', async (t) =>
t.true(
await checkFocus(t, ex.dialog1FocusableEls[i]),
'Focus should be on "' + ex.dialog1FocusableEls[i] + '" after ' +
(i + 1) + ' tabs have been sent to dialog 1'
i + ' tabs have been sent to dialog 1'
);

await sendTabToSelector(t, ex.dialog1FocusableEls[i]);
Expand All @@ -249,7 +249,7 @@ ariaTest('tab changes focus within dialog', exampleFile, 'key-tab', async (t) =>
t.true(
await checkFocus(t, ex.dialog2FocusableEls[i]),
'Focus should be on "' + ex.dialog2FocusableEls[i] + '" after ' +
(i + 2) + ' tabs have been sent to dialog 2'
(i + 1) + ' tabs have been sent to dialog 2'
);

await sendTabToSelector(t, ex.dialog2FocusableEls[i]);
Expand Down

0 comments on commit 15df732

Please sign in to comment.