var scroll = outer.scrollTop;
ok(scroll > 0, "element has scrolled: new value " + scroll);
try {
SpecialPowers.doCommand(window, "cmd_moveLeft");
ok(false, "should not be able to do kMoveLeft");
} catch (e) {
ok(true, "unable to perform kMoveLeft");
}
// Make sure cmd_moveLeft isn't failing for some unrelated reason
sendString("a");
is(input.selectionStart, 1, "selectionStart after typing");
SpecialPowers.doCommand(window, "cmd_moveLeft");
is(input.selectionStart, 0, "selectionStart after move left");
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.