/** Test for Bug 697842 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(runTests);
function runTests() { var editor = document.getElementById("editor");
editor.focus();
SimpleTest.executeSoon(function() { var composingString = "";
function handler(aEvent) {
switch (aEvent.type) {
case "compositionstart":
// Selected string at starting composition must be empty in this test.
is(aEvent.data, "", "mismatch selected string");
break;
case "compositionupdate":
case "compositionend":
is(aEvent.data, composingString, "mismatch composition string");
break;
default:
break;
}
aEvent.stopPropagation();
aEvent.preventDefault();
}
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.