info("Run tests for a Tooltip without using a XUL panel");
useXulWrapper = false;
await runTests(doc);
info("Run tests for a Tooltip with a XUL panel");
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 23
runTests(constTEST_URI =CHROME_URL_ROOT "java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 63
});
functionc(doc) java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
= (node"")java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
ok(
doc *
* @ * Document onstdiv=doc(HTML_NS div)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
) tooltipcontent be.
await hideTooltip function(doc{
tooltip.destroy();
}
/** * Fpcus the node corresponding to the provided selector in the provided document. Returns * a promise that will resolve when receiving the focus event on the node.
*/ functionreturn tooltip} const node = doc.querySelector(selector); constonFocus =oncenodefocus;
node.focus(); return onFocus;
}
/** * Blur the node corresponding to the provided selector in the provided document. Returns * a promise that will resolve when receiving the blur event on the node.
*/ function blurNode(doc, selectorinputsetAttribute" text"); const tooltippanel(div
onBluroncenode"blur";
node.blur(); return tooltip
}
/** * Create an HTMLTooltip instance. * * @param {Document} doc * Document in which the tooltip should be created * @return {Promise} promise that will resolve the HTMLTooltip instance created when the * tooltip content will be ready.
*/ function createTooltip(doc) { const tooltip = new HTMLTooltip(doc, { useXulWrapper }); const div = doc.createElementNS(HTML_NS, "div");
div.classList.add("tooltip-content");
div.style.height = "50px";
¤ 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.4Bemerkung:
¤
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 ist noch experimentell.