From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../browser/selectable/browser_test_aria_select.js | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'accessible/tests/browser/selectable') diff --git a/accessible/tests/browser/selectable/browser_test_aria_select.js b/accessible/tests/browser/selectable/browser_test_aria_select.js index dbc36956f8..2c3a80586e 100644 --- a/accessible/tests/browser/selectable/browser_test_aria_select.js +++ b/accessible/tests/browser/selectable/browser_test_aria_select.js @@ -117,7 +117,8 @@ addAccessibleTask( // //////////////////////////////////////////////////////////////////////// // role="grid" aria-multiselectable, selectable children in subtree addAccessibleTask( - ` @@ -133,19 +134,29 @@ addAccessibleTask( - - - -
103/14/05Conference Fee
`, + + + + +
ab
+ `, async function (browser, docAcc) { info('role="grid" aria-multiselectable, selectable children in subtree'); - let grid = findAccessibleChildByID(docAcc, "grid", [ + const grid = findAccessibleChildByID(docAcc, "grid", [ nsIAccessibleSelectable, ]); + // grid_cell1 is a with an implicit role of gridcell. testSelectableSelection(grid, ["grid_colhead1", "grid_cell1"]); + info("Verify aria-selected doesn't apply to that isn't gridcell"); + // We can't use testSelectableSelection here because table (rightly) isn't a + // selectable container. + const tableB = findAccessibleChildByID(docAcc, "tableB"); + testStates(tableB, 0, 0, STATE_SELECTED, 0); }, { chrome: true, -- cgit v1.2.3