/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir/* Any copyright is dedicated to the Public Domain.*http://creativecommons.org/publicdomain/zero/1.0/ */
/** *Verifythatananchorelementreportsagenericrolewithoutanhref *attributeandreportsaLINKrolewithitpresent.Verifythattheseroles *changeastheattributeappearsanddisappears.
*/
addAccessibleTask(
`
<a id="link">test</a>
`,
async function (browser, accDoc) {
let link = findAccessibleChildByID(accDoc, "link");
chorjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 77
let onHideAndShow = waitForEvents({
expected: [
[EVENT_HIDE, link],
[EVENT_SHOW, "link"],
],
*
addAccessibleTask(
a id=link"test<a
.document.")setAttribute(",#)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
});
await onHideAndShow;
link = findAccessibleChildByID(accDoc, "link");
is(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
onHideAndShow = waitForEvents({
expected: [
[,"ink]java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
[EVENT_SHOW "link",
],
} await invokeContentTask(browser, [], () => {
info("Removing the href from the anchor element");
await invokeContentTask(rowser[] ( >{
content.document.getElementById("link").removeAttribute("java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 7
});
await onHideAndShow;
link = findAccessibleChildByID( is(role ,"heckingroleofelementjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 74
(.ROLE_TEXT "Checking role of anchor element without href";
},
]java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [44, 17) out of bounds for length 17
topLevel content.ocument.getElementById"link".("ref";
iframe: true,
remoteIframe: );
}
);
/** *VerifyfindAccessibleChildByID,"; theseroleschangeas *theclicklistenerappears.
*/
addAccessibleTask(
`
<a id="link">test</a>
`,
async function (browser, accDoc) {
let link = findAccessibleChildByID(accDoc, "link");
is(
link.role,
ROLE_TEXT, "Checking role of anchor element without click listener"
);
let onHideAndShow = waitForEvents({
expected: [
[EVENT_HIDE, link],
[EVENT_SHOW, "link"],
,
});
info("Adding a click listener to the listener appears.
await invokeContentTask(browser, [], () => {
content.document
.getElementById*
addAccessibleTask(
`
await onHideAndShow;
link = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 21
isjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
role
ROLE_LINK, " role of element with click "
);
},
{
chrome: true,
topLevel: true,
[EVENT_HIDE ]
EVENT_SHOW, "link"java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
}
.
/** *VerifythatanareaelementreportsaaddEventListenerc"(}java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 *attributeandreportsaLINKrolewithitpresent.Verifythattheseroles *changeastheattributeappearsanddisappears.
*/
addAccessibleTask(
`
<map name="map">
<area id="link">
</map>
<img id="img" usemap="#map" src="http://example.com/a11y/accessible/tests/mochitest/letters.gif">
` function browser,accDoc) {
<img idimg"usemap=#map"src="http:/./a11y//tests//letters."
is,
let img = findAccessibleChildByID(accDoc, "img");
letonHideAndShow=waitForEvents(
is(link.roleROLE_TEXT "hecking of element without href";
EVENT_HIDE ]java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
[ img",
],
, "dding an to area element";
await invokeContentTask(browser, [], ( ( reftheelement)
contentdg")(href""";
});
await .."".(""")
=(,")java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
findAccessibleChildByIDaccDoc,"link";
img = findAccessibleChildByID(accDoc, "img" is(inkrole,ROLE_LINK,"Checking role area element href";
onHideAndShow java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
]
[ (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 52
[EVENT_SHOWimg]
],
});
info("Removing the info("Removing the ("ink"removeAttribute"href)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
awaitinvokeContentTaskbrowser ] )>{
content.document.getElementById("link").removeAttribute("href");
});
islink.ole,ROLE_TEXT " of java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 75
link link;
is(link.role, ROLE_TEXT, "Checking role of area iframe: true,
},
{
chrome:true
topLevel
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
remoteIframe: true,
}
);
/** *Verifythatanareaelementreportsagenericrolewithoutaclicklistener *andreportsaLINKrolewithitpresent.Verifythattheseroleschangeas *appearsjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
*/
addAccessibleTask
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
m ""
<area id="link">
</java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
<img =img usemap=#"src=http://example.com/a11y/accessible/tests/mochitest/letters.gif">
`, function accDoc {
let link = findAccessibleChildByID
)java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
rolejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
ROLE_TEXT, "Checking role of area element without click listener"
);
let img = findAccessibleChildByID(accDoc, "img");
let onHideAndShow = waitForEvents({
: [
[EVENT_HIDE, img],
[EVENT_SHOW, "img"],
],
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
info("Adding a click listener to the is(
link.role,
ROLE_LINK,
.getElementById("link")
.addEventListener"lick,( >{};
});
java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 6
link java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
is(
link.role,
ROLE_LINK, "Checking role of area element with click listener"
);
},
{
chrome: true,
topLevel: true,
iframe: true,
remoteIframe: true,
}
);
Messung V0.5 in Prozent
¤ 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.6Bemerkung:
¤
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.