<!DOCTYPEhtml>
<html>
<head>
<title>nsIAccessibleText getText related function tests for tree mutations</title>
<link rel="stylesheet" type="text/css"
href="chrome://mochikit/content/tests/SimpleTest/test.css" />
function insertTextBefore(aId, aTextBefore, aText) { var el = document.createTextNode(aText);
this.__proto__ = new insertBefore(aId, el, aTextBefore,
aText + aTextBefore, 0, -1);
}
function insertImgBefore(aId, aTextBefore) { var el = document.createElement("img");
el.setAttribute("src", "../moz.png");
el.setAttribute("alt", "mozilla");
this.__proto__ = new insertBefore(aId, el, aTextBefore,
kEmbedChar + aTextBefore, 0, -1);
}
function insertTextBefore2(aId) { var el = document.createTextNode("hehe");
this.__proto__ = new insertBefore(aId, el, "ho", "ho", 4, -1);
}
var gQueue = null;
function doTest() {
gQueue = new eventQueue();
gQueue.push(new insertTextBefore("c1", "ho", "ha"));
gQueue.push(new insertImgBefore("c1", "haho"));
gQueue.push(new insertImgBefore("c2", kEmbedChar));
gQueue.push(new insertTextBefore2("c3"));
gQueue.invoke(); // will call SimpleTest.finish();
}
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.