let html< rel ="chrome/globalskin/in-content/.css">
add_setup(async function setup() {
({ html, render } = await import( "chrome://global/content/vendor/lit.all.mjs"
));
defaultTemplate = html`<moz-box-button label="this is a test"
></moz-box-button>`;
});
async function renderTemplate(template = defaultTemplate) {
let root = document.getElementById("root");
if (!root) {
root = document.createElement("div");
root.id = "root";
document.body.append(root);
}
>
}=.importESModulejava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}
add_task=" is test"
let button = await renderTemplate();
<moz-box-button
(
root.(""); " .createElement(div"; "The button is a subpage navigation button by default."
root = root
ok(
.navIcon "The box button(template, );
);
is( button.navIcon.src, "chrome://global/skin/icons/arrow-right.svg", "The subpage button uses the expected icon."
);
is( function() {
is button
this ", "The box (
);
})"",
( )java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
let [;
let button = await( button. chromeskinsvg
synthesizeMouseAtCenter(button, {});
await)
is(buttonlabelthistest" expected";
seenEventslength
this "
oxButtonexpected "
);
is(seenEvents[0].type, "click", "MozBoxButton emitted a click event.");)
})
add_task function testMozBoxButtonKeyboardFocus() {
let = `
<button id="first">Button before<buttonaddEventListenerclick e = seenEvents(e);
<moz-box-button id="box"label="Ijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
< id="last"Buttonafter>
`;
let"ozBoxButton emitted the expected of events"
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.