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 17e0864..51b9825 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 e639a5f..05cafe4 100644 (file)
@@ -1,5 +1,12 @@
 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
 
         Fix for these bugs: