/** Test for Bug 641466 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
function doTest(element) {
element.focus();
element.selectionStart = 4;
element.selectionEnd = 4;
synthesizeKey("KEY_Backspace", {repeat: 4});
// XXX: Switched to from ok() to todo_is() in Bug 1467712. Follow up in 1500964
// This test is not working for several reasons:
// - race conditions between each event, we should wait before sending the next backspace
// - race conditions between the two tests
// - the value has an initial length of 8, not 4
todo_is(element.value, "", "4 backspaces should delete all of the characters in the " + element.localName);
}
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.