Reviewed by kocienda.
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jul 2004 16:23:43 +0000 (16:23 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jul 2004 16:23:43 +0000 (16:23 +0000)
- added backColorCommand, foreColorCommand, fontNameCommand,
and fontSizeCommand

        * layout-tests/editing/editing.js:

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

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

index 9eb2a91..fab7510 100644 (file)
@@ -242,3 +242,61 @@ function runEditingTest() {
 }
 
 //-------------------------------------------------------------------------------------------------------
+
+function execBackColorCommand() {
+    document.execCommand("BackColor", false, "Chartreuse");
+}
+function backColorCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execBackColorCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execBackColorCommand();
+    }
+}
+
+//-------------------------------------------------------------------------------------------------------
+
+function execForeColorCommand() {
+    document.execCommand("ForeColor", false, "Purple");
+}
+function foreColorCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execForeColorCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execForeColorCommand();
+    }
+}
+
+//-------------------------------------------------------------------------------------------------------
+
+function execFontNameCommand() {
+    document.execCommand("FontName", false, "Courier");
+}
+function fontNameCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execFontNameCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execFontNameCommand();
+    }
+}
+
+//-------------------------------------------------------------------------------------------------------
+
+function execFontSizeCommand() {
+    document.execCommand("FontSize", false, "48px");
+}
+function fontSizeCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execFontSizeCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execFontSizeCommand();
+    }
+}
\ No newline at end of file
index 28cbf86..db32449 100644 (file)
@@ -1,3 +1,12 @@
+2004-07-06  Vicki Murley  <vicki@apple.com>
+
+        Reviewed by kocienda.
+
+       - added backColorCommand, foreColorCommand, fontNameCommand, 
+       and fontSizeCommand
+  
+        * layout-tests/editing/editing.js:
+
 2004-07-06  Trey Matteson  <trey@apple.com>
 
        3716053 - www.theage.com.au has extra back/forward items due to ads