diff options
Diffstat (limited to 'accessible/tests/browser/e10s/browser_caching_states.js')
-rw-r--r-- | accessible/tests/browser/e10s/browser_caching_states.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/accessible/tests/browser/e10s/browser_caching_states.js b/accessible/tests/browser/e10s/browser_caching_states.js index 7292228f25..6f674f8c48 100644 --- a/accessible/tests/browser/e10s/browser_caching_states.js +++ b/accessible/tests/browser/e10s/browser_caching_states.js @@ -425,6 +425,11 @@ addAccessibleTask( <div role="listbox" aria-multiselectable="true"> <div id="multiNoSel" role="option" tabindex="0">multiNoSel</div> </div> +<div role="grid"> + <div role="row"> + <div id="gridcell" role="gridcell" tabindex="0">gridcell</div> + </div> +</div> `, async function (browser, docAcc) { const noSel = findAccessibleChildByID(docAcc, "noSel"); @@ -450,6 +455,14 @@ addAccessibleTask( multiNoSel.takeFocus(); await focused; testStates(multiNoSel, STATE_FOCUSED, 0, STATE_SELECTED, 0); + + const gridcell = findAccessibleChildByID(docAcc, "gridcell"); + testStates(gridcell, 0, 0, STATE_FOCUSED | STATE_SELECTED, 0); + info("Focusing gridcell"); + focused = waitForEvent(EVENT_FOCUS, gridcell); + gridcell.takeFocus(); + await focused; + testStates(gridcell, STATE_FOCUSED, 0, STATE_SELECTED, 0); }, { topLevel: true, iframe: true, remoteIframe: true, chrome: true } ); |