Reviewed by Brady Eidson (and written by Justin Garcia)
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jul 2006 00:36:58 +0000 (00:36 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jul 2006 00:36:58 +0000 (00:36 +0000)
        - layout test corresponding to <rdar://problem/4611164>

        * editing/undo/undo-misspellings-expected.checksum: Added.
        * editing/undo/undo-misspellings-expected.png: Added.
        * editing/undo/undo-misspellings-expected.txt: Added.
        * editing/undo/undo-misspellings.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/editing/undo/undo-misspellings-expected.checksum [new file with mode: 0644]
LayoutTests/editing/undo/undo-misspellings-expected.png [new file with mode: 0644]
LayoutTests/editing/undo/undo-misspellings-expected.txt [new file with mode: 0644]
LayoutTests/editing/undo/undo-misspellings.html [new file with mode: 0644]

index 626117adccb0036e3212b1249a31ab22b1590830..2e5fdaa95c23c6783307910faee66b1ef586b350 100644 (file)
@@ -1,3 +1,14 @@
+2006-07-12  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Brady Eidson (and written by Justin Garcia)
+        
+        - layout test corresponding to <rdar://problem/4611164>
+
+        * editing/undo/undo-misspellings-expected.checksum: Added.
+        * editing/undo/undo-misspellings-expected.png: Added.
+        * editing/undo/undo-misspellings-expected.txt: Added.
+        * editing/undo/undo-misspellings.html: Added.
+
 2006-07-13  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Justin.
diff --git a/LayoutTests/editing/undo/undo-misspellings-expected.checksum b/LayoutTests/editing/undo/undo-misspellings-expected.checksum
new file mode 100644 (file)
index 0000000..b09182d
--- /dev/null
@@ -0,0 +1 @@
+2a251ca75a4ee28206fbc9f203a921e3
\ No newline at end of file
diff --git a/LayoutTests/editing/undo/undo-misspellings-expected.png b/LayoutTests/editing/undo/undo-misspellings-expected.png
new file mode 100644 (file)
index 0000000..f5e50a3
Binary files /dev/null and b/LayoutTests/editing/undo/undo-misspellings-expected.png differ
diff --git a/LayoutTests/editing/undo/undo-misspellings-expected.txt b/LayoutTests/editing/undo/undo-misspellings-expected.txt
new file mode 100644 (file)
index 0000000..6517742
--- /dev/null
@@ -0,0 +1,31 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document toDOMRange:range from 13 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document toDOMRange:range from 14 of #text > DIV > BODY > HTML > #document to 14 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > BODY > HTML > #document to 14 of #text > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document toDOMRange:range from 21 of #text > DIV > BODY > HTML > #document to 21 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x18
+caret: position 0 of child 0 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/editing/undo/undo-misspellings.html b/LayoutTests/editing/undo/undo-misspellings.html
new file mode 100644 (file)
index 0000000..a803133
--- /dev/null
@@ -0,0 +1,14 @@
+<div id="test" contenteditable="true"></div>
+
+<script>
+var s = window.getSelection();
+s.setPosition(document.getElementById("test"), 0);
+
+document.execCommand("InsertText", false, "sugare");
+document.execCommand("InsertText", false, " ");
+document.execCommand("InsertText", false, "sugari");
+document.execCommand("InsertText", false, " ");
+document.execCommand("InsertText", false, "sugarm");
+document.execCommand("InsertText", false, " ");
+document.execCommand("Undo");
+</script>