summaryrefslogtreecommitdiffstats
path: root/accessible/tests/browser/mac/browser_selectables.js
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/mac/browser_selectables.js
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/mac/browser_selectables.js')
-rw-r--r--accessible/tests/browser/mac/browser_selectables.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/accessible/tests/browser/mac/browser_selectables.js b/accessible/tests/browser/mac/browser_selectables.js
index af88c2e136..cc489e566d 100644
--- a/accessible/tests/browser/mac/browser_selectables.js
+++ b/accessible/tests/browser/mac/browser_selectables.js
@@ -300,9 +300,6 @@ addAccessibleTask(
async (browser, accDoc) => {
let select = getNativeInterface(accDoc, "select");
let one = getNativeInterface(accDoc, "one");
- let two = getNativeInterface(accDoc, "two");
- let three = getNativeInterface(accDoc, "three");
- let four = getNativeInterface(accDoc, "four");
is(
select.getAttributeValue("AXTitle"),
@@ -339,25 +336,5 @@ addAccessibleTask(
});
await evt;
is(select.getAttributeValue("AXSelectedChildren").length, 0);
- evt = waitForMacEvent("AXSelectedChildrenChanged");
- three.setAttributeValue("AXSelected", true);
- await evt;
- is(select.getAttributeValue("AXSelectedChildren").length, 1);
- ok(getSelectedIds(select).includes("three"), "'three' is selected");
- evt = waitForMacEvent("AXSelectedChildrenChanged");
- select.setAttributeValue("AXSelectedChildren", [one, two]);
- await evt;
- await untilCacheOk(() => {
- let ids = getSelectedIds(select);
- return ids[0] == "one" && ids[1] == "two";
- }, "Got correct selected children");
-
- evt = waitForMacEvent("AXSelectedChildrenChanged");
- select.setAttributeValue("AXSelectedChildren", [three, two, four]);
- await evt;
- await untilCacheOk(() => {
- let ids = getSelectedIds(select);
- return ids[0] == "two" && ids[1] == "three";
- }, "Got correct selected children");
}
);