//-------------------------------------------------------------------------------------------------------
-function execTypeCharacterCommand() {
- document.execCommand("InsertText", false, "x");
+function execTypeCharacterCommand(c) {
+ if (arguments.length == 0 || c == undefined || c.length == 0 || c.length > 1)
+ c = 'x';
+ document.execCommand("InsertText", false, c);
}
-function typeCharacterCommand() {
+function typeCharacterCommand(c) {
if (commandDelay > 0) {
window.setTimeout(execTypeCharacterCommand, commandCount * commandDelay);
commandCount++;
}
else {
- execTypeCharacterCommand();
+ execTypeCharacterCommand(c);
}
}
+2004-08-31 Ken Kocienda <kocienda@apple.com>
+
+ Reviewed by me
+
+ * layout-tests/editing/editing.js: Modified typeCharacterCommand so it can accept a character
+ as an argument.
+
2004-08-31 Ken Kocienda <kocienda@apple.com>
Reviewed by Hyatt