Reviewed by me
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2004 15:14:57 +0000 (15:14 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2004 15:14:57 +0000 (15:14 +0000)
        * layout-tests/editing/editing.js: Modified typeCharacterCommand so it can accept a character
        as an argument.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7411 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/editing/editing.js
WebCore/ChangeLog-2005-08-23

index 17e0864597411d10b261038a9456a5d22163e94c..51b98253cfc7a051a21313535b3deb39f58af714 100644 (file)
@@ -130,16 +130,18 @@ function insertNewlineCommand() {
 
 //-------------------------------------------------------------------------------------------------------
 
-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);
     }
 }
 
index e639a5f7f61e70321ba0499cd323098d98fac65f..05cafe491a8243d972f58b10278c0c11e22b28c3 100644 (file)
@@ -1,3 +1,10 @@
+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