this.invoke = function addOptions_invoke() {
for (let i = 0; i < 2; i++) { var opt = document.createElement("option");
opt.value = i;
opt.text = "Option: Value " + i;
this.selectNode.add(opt, null);
}
};
this.eventSeq = [
new invokerChecker(EVENT_REORDER, this.selectList),
];
this.invoke = function removeOptions_invoke() {
while (this.selectNode.length)
this.selectNode.remove(0);
};
this.eventSeq = [
new invokerChecker(EVENT_REORDER, this.selectList),
];
this.finalCheck = function removeOptions_finalCheck() { var tree =
{ COMBOBOX: [
{ COMBOBOX_LIST: [] },
] };
testAccessibleTree(this.select, tree);
};
this.getID = function removeptions_getID() {
return "test elements removal from a select";
};
}
/**
* Setting role=option on option makes the accessible recreate.
*/
function setRoleOnOption() {
this.eventSeq = [
new invokerChecker(EVENT_HIDE, "s2_o"),
new invokerChecker(EVENT_SHOW, "s2_o"),
];
this.invoke = function setRoleOnOption_setRole() {
getNode("s2_o").setAttribute("role", "option");
};
this.getID = function removeptions_getID() {
return "setting role=option on select option";
};
}
/**
* Setting multiple on select makes the accessible recreate.
*/
function setMultipleOnSelect() {
this.eventSeq = [
new invokerChecker(EVENT_HIDE, "s3"),
new invokerChecker(EVENT_SHOW, "s3"),
];
this.invoke = function setRoleOnOption_setRole() {
getNode("s3").multiple = true;
};
this.finalCheck = function() { var tree =
{ LISTBOX: [
{ OPTION: [ ] },
] };
testAccessibleTree("s3", tree);
};
this.getID = function removeptions_getID() {
return "setting multiple on select element";
};
}
/**
* Removing size on select makes the accessible recreate.
*/
function removeSizeFromSelect() {
this.eventSeq = [
new invokerChecker(EVENT_HIDE, "s4"),
new invokerChecker(EVENT_SHOW, "s4"),
];
this.invoke = function setRoleOnOption_setRole() {
getNode("s4").removeAttribute("size");
};
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.1Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.