summaryrefslogtreecommitdiffstats
path: root/accessible/tests/browser/selectable
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /accessible/tests/browser/selectable
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'accessible/tests/browser/selectable')
-rw-r--r--accessible/tests/browser/selectable/browser.toml1
-rw-r--r--accessible/tests/browser/selectable/browser_test_aria_select.js26
2 files changed, 9 insertions, 18 deletions
diff --git a/accessible/tests/browser/selectable/browser.toml b/accessible/tests/browser/selectable/browser.toml
index 38a13c25f4..144555b6a0 100644
--- a/accessible/tests/browser/selectable/browser.toml
+++ b/accessible/tests/browser/selectable/browser.toml
@@ -3,7 +3,6 @@ subsuite = "a11y"
support-files = [
"head.js",
"!/accessible/tests/browser/shared-head.js",
- "!/accessible/tests/browser/*.jsm",
"!/accessible/tests/mochitest/*.js",
]
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
diff --git a/accessible/tests/browser/selectable/browser_test_aria_select.js b/accessible/tests/browser/selectable/browser_test_aria_select.js
index f52603d1cb..dbc36956f8 100644
--- a/accessible/tests/browser/selectable/browser_test_aria_select.js
+++ b/accessible/tests/browser/selectable/browser_test_aria_select.js
@@ -72,16 +72,16 @@ addAccessibleTask(
// role="tablist" aria-multiselectable
addAccessibleTask(
`<div role="tablist" id="tablist" aria-multiselectable="true">
- <div role="tab" id="tab_multi1">tab1</div>
+ <div role="tab" id="tab_multi1" aria-selected="true">tab1</div>
<div role="tab" id="tab_multi2">tab2</div>
+ <div role="tab" id="tab_multi3" aria-selected="true">tab3</div>
</div>`,
async function (browser, docAcc) {
info('role="tablist" aria-multiselectable');
let tablist = findAccessibleChildByID(docAcc, "tablist", [
nsIAccessibleSelectable,
]);
-
- await testMultiSelectable(tablist, ["tab_multi1", "tab_multi2"]);
+ testSelectableSelection(tablist, ["tab_multi1", "tab_multi3"]);
},
{
chrome: true,
@@ -95,16 +95,16 @@ addAccessibleTask(
// role="listbox" aria-multiselectable
addAccessibleTask(
`<div role="listbox" id="listbox" aria-multiselectable="true">
- <div role="option" id="listbox2_item1">item1</div>
+ <div role="option" id="listbox2_item1" aria-selected="true">item1</div>
<div role="option" id="listbox2_item2">item2</div>
+ <div role="option" id="listbox2_item3" aria-selected="true">item2</div>
</div>`,
async function (browser, docAcc) {
info('role="listbox" aria-multiselectable');
let listbox = findAccessibleChildByID(docAcc, "listbox", [
nsIAccessibleSelectable,
]);
-
- await testMultiSelectable(listbox, ["listbox2_item1", "listbox2_item2"]);
+ testSelectableSelection(listbox, ["listbox2_item1", "listbox2_item3"]);
},
{
chrome: true,
@@ -122,7 +122,7 @@ addAccessibleTask(
<thead>
<tr>
<th tabindex="-1" role="columnheader" id="grid_colhead1"
- style="width:6em">Entry #</th>
+ style="width:6em" aria-selected="true">Entry #</th>
<th tabindex="-1" role="columnheader" id="grid_colhead2"
style="width:10em">Date</th>
<th tabindex="-1" role="columnheader" id="grid_colhead3"
@@ -134,7 +134,7 @@ addAccessibleTask(
<td tabindex="-1" role="rowheader" id="grid_rowhead"
aria-readonly="true">1</td>
<td tabindex="-1" role="gridcell" id="grid_cell1"
- aria-selected="false">03/14/05</td>
+ aria-selected="true">03/14/05</td>
<td tabindex="-1" role="gridcell" id="grid_cell2"
aria-selected="false">Conference Fee</td>
</tr>
@@ -145,15 +145,7 @@ addAccessibleTask(
let grid = findAccessibleChildByID(docAcc, "grid", [
nsIAccessibleSelectable,
]);
-
- await testMultiSelectable(grid, [
- "grid_colhead1",
- "grid_colhead2",
- "grid_colhead3",
- "grid_rowhead",
- "grid_cell1",
- "grid_cell2",
- ]);
+ testSelectableSelection(grid, ["grid_colhead1", "grid_cell1"]);
},
{
chrome: true,