add more passing test cases.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 12:47:58 +0000 (12:47 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 12:47:58 +0000 (12:47 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27513 268f45cc-cd09-0410-ab3c-d52691b4dbfc

131 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/qt/Skipped
LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4840662-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5245519-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/7955-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/pasteboard/styled-element-markup-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/4932260-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/5234383-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/extend-by-word-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/select-box-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/style/font-family-with-space-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/style/non-inheritable-styles-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/style/relative-font-size-change-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/undo/undo-misspellings-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/undo/undo-typing-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/list-delete-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/list-delete-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/list-type-after-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/list-type-before-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/table-delete-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/table-delete-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/table-delete-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/table-type-after-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/editing/unsupported-content/table-type-before-expected.txt [new file with mode: 0644]

index 9b50e5e99df0385bfafeb0148193dab09613bda1..afe5054c1a32599bd1c70f2dc5a892f5e3c0db77 100644 (file)
@@ -1,3 +1,140 @@
+2007-11-07  Lars Knoll  <lars@trolltech.com>
+
+        Reviewed by Simon.
+
+        add more passing test cases.
+
+        * platform/qt/Skipped:
+        * platform/qt/editing/inserting/insert-3907422-fix-expected.txt: Added.
+        * platform/qt/editing/pasteboard/3976872-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4242293-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4242293-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4631972-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4641033-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4700297-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4806874-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4840662-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4944770-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/4989774-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5006779-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5027857-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5032095-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5065605-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5071074-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5071074-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5075944-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5075944-3-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5075944-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5134759-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5156401-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5245519-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5247341-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5368833-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5387578-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5478250-expected.txt: Added.
+        * platform/qt/editing/pasteboard/5483567-expected.txt: Added.
+        * platform/qt/editing/pasteboard/7955-expected.txt: Added.
+        * platform/qt/editing/pasteboard/8145-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/8145-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/8145-3-expected.txt: Added.
+        * platform/qt/editing/pasteboard/bad-placeholder-expected.txt: Added.
+        * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt: Added.
+        * platform/qt/editing/pasteboard/cut-text-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt: Added.
+        * platform/qt/editing/pasteboard/displaced-placeholder-expected.txt: Added.
+        * platform/qt/editing/pasteboard/display-block-on-spans-expected.txt: Added.
+        * platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/innerText-inline-table-expected.txt: Added.
+        * platform/qt/editing/pasteboard/interchange-newline-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/interchange-newline-3-expected.txt: Added.
+        * platform/qt/editing/pasteboard/interchange-newline-4-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-after-delete-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-3-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-4-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-5-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-borders-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-list-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-end-table-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt: Added.
+        * platform/qt/editing/pasteboard/merge-start-list-expected.txt: Added.
+        * platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt: Added.
+        * platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-list-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-match-style-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-match-style-002-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-pre-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-pre-002-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-table-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-table-003-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-table-cells-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-002-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-003-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-004-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-005-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-006-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-007-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-009-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-010-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-011-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-012-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-014-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-015-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-016-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-017-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-018-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-019-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt: Added.
+        * platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt: Added.
+        * platform/qt/editing/pasteboard/pasting-object-expected.txt: Added.
+        * platform/qt/editing/pasteboard/pasting-tabs-expected.txt: Added.
+        * platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt: Added.
+        * platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt: Added.
+        * platform/qt/editing/pasteboard/smart-paste-006-expected.txt: Added.
+        * platform/qt/editing/pasteboard/styled-element-markup-expected.txt: Added.
+        * platform/qt/editing/selection/4932260-1-expected.txt: Added.
+        * platform/qt/editing/selection/5234383-1-expected.txt: Added.
+        * platform/qt/editing/selection/extend-by-word-002-expected.txt: Added.
+        * platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt: Added.
+        * platform/qt/editing/selection/select-box-expected.txt: Added.
+        * platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt: Added.
+        * platform/qt/editing/style/font-family-with-space-expected.txt: Added.
+        * platform/qt/editing/style/non-inheritable-styles-expected.txt: Added.
+        * platform/qt/editing/style/relative-font-size-change-002-expected.txt: Added.
+        * platform/qt/editing/undo/undo-misspellings-expected.txt: Added.
+        * platform/qt/editing/undo/undo-typing-001-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/list-delete-001-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/list-delete-003-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/list-type-after-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/list-type-before-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/table-delete-001-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/table-delete-002-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/table-delete-003-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/table-type-after-expected.txt: Added.
+        * platform/qt/editing/unsupported-content/table-type-before-expected.txt: Added.
+
 2007-11-07  Alexey Proskuryakov  <ap@nypop.com>
 
         Finished moving editing/pasteboard/5583362.html to platform/mac (this test was crashing in ObjC test plugin,
index 69f2c130a9532f4ba75b7c58c5b7b291d6d9db70..d107ed88207711a185ec63e23b149f0fd34d97de 100644 (file)
@@ -8,35 +8,26 @@ editing/selection/5354455-2.html
 editing/selection/caret-and-focus-ring.html
 
 # ------- failing editing tests
-editing/pasteboard/
-
-editing/execCommand/italicizeByCharacter.html
-editing/deleting/delete-to-end-of-paragraph.html
 editing/deleting/delete-select-all-001.html
+editing/deleting/delete-to-end-of-paragraph.html
+editing/execCommand/italicizeByCharacter.html
 editing/execCommand/nsresponder-indent.html
 editing/execCommand/nsresponder-outdent.html
 editing/input/emacs-ctrl-o.html
-editing/inserting/insert-3907422-fix.html
 editing/inserting/multiple-lines-selected.html
 editing/inserting/typing-tab-designmode-forms.html
 editing/inserting/typing-tab-designmode.html
-editing/selection/anchor-focus1.html
-editing/selection/anchor-focus2.html
-editing/selection/anchor-focus3.html
-editing/selection/move-begin-end.html
-editing/selection/skip-non-editable-1.html
-editing/selection/skip-non-editable-2.html
-editing/selection/toString-1.html
 editing/selection/14971.html
 editing/selection/4895428-1.html
 editing/selection/4895428-4.html
-editing/selection/4932260-1.html
 editing/selection/4947387.html
 editing/selection/5057506-2.html
 editing/selection/5057506.html
 editing/selection/5232159.html
-editing/selection/5234383-1.html
 editing/selection/5333725.html
+editing/selection/anchor-focus1.html
+editing/selection/anchor-focus2.html
+editing/selection/anchor-focus3.html
 editing/selection/click-start-of-line.html
 editing/selection/contains-boundaries.html
 editing/selection/designmode-no-caret.html
@@ -46,30 +37,63 @@ editing/selection/drag-to-contenteditable-iframe.html
 editing/selection/editable-links.html
 editing/selection/expanding-selections2.html
 editing/selection/expanding-selections.html
-editing/selection/extend-by-word-002.html
 editing/selection/fake-doubleclick.html
 editing/selection/fake-drag.html
 editing/selection/inline-closest-leaf-child.html
 editing/selection/mixed-editability-1.html
-editing/selection/move-by-sentence-linebreak.html
+editing/selection/move-begin-end.html
 editing/selection/paragraph-granularity.html
-editing/selection/select-box.html
-editing/selection/select-element-paragraph-boundary.html
 editing/selection/select-from-textfield-outwards.html
 editing/selection/selection-actions.html
 editing/selection/selection-background.html
+editing/selection/skip-non-editable-1.html
+editing/selection/skip-non-editable-2.html
+editing/selection/toString-1.html
 editing/selection/triple-click-in-pre.html
 editing/selection/word-granularity.html
 editing/style/5091898.html
-editing/style/font-family-with-space.html
-editing/style/non-inheritable-styles.html
-editing/style/relative-font-size-change-002.html
 editing/style/style-3681552-fix-001.html
 editing/style/style-3681552-fix-002.html
 editing/style/typing-style-003.html
-editing/undo/undo-misspellings.html
-editing/undo/undo-typing-001.html
-editing/unsupported-content
+
+editing/pasteboard/4076267-2.html
+editing/pasteboard/4076267-3.html
+editing/pasteboard/4076267.html
+editing/pasteboard/4861080.html
+editing/pasteboard/4944770-2.html
+editing/pasteboard/4947130.html
+editing/pasteboard/5028447.html
+editing/pasteboard/block-wrappers-necessary.html
+editing/pasteboard/copy-standalone-image.html
+editing/pasteboard/drag-drop-dead-frame.html
+editing/pasteboard/drag-drop-modifies-page.html
+editing/pasteboard/drag-image-to-contenteditable-in-iframe.html
+editing/pasteboard/drag-selected-image-to-contenteditable.html
+editing/pasteboard/drop-link.html
+editing/pasteboard/drop-text-without-selection.html
+editing/pasteboard/emacs-ctrl-a-k-y.html
+editing/pasteboard/emacs-ctrl-k-y-001.html
+editing/pasteboard/input-field-1.html
+editing/pasteboard/interchange-newline-2.html
+editing/pasteboard/paste-RTFD.html
+editing/pasteboard/paste-TIFF.html
+editing/pasteboard/paste-into-anchor-text.html
+editing/pasteboard/paste-text-001.html
+editing/pasteboard/paste-text-008.html
+editing/pasteboard/paste-text-013.html
+editing/pasteboard/paste-xml.xhtml
+editing/pasteboard/select-element-1.html
+editing/pasteboard/smart-paste-001.html
+editing/pasteboard/smart-paste-002.html
+editing/pasteboard/smart-paste-003.html
+editing/pasteboard/smart-paste-004.html
+editing/pasteboard/smart-paste-005.html
+editing/pasteboard/smart-paste-007.html
+editing/pasteboard/smart-paste-008.html
+editing/pasteboard/subframe-dragndrop-1.html
+editing/pasteboard/testcase-9507.html
+editing/pasteboard/undoable-fragment-removes.html
+editing/pasteboard/unrendered-br.html
 
 # ------- failures due to missing XSLT support
 fast/dom/Window/get-set-properties.html
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt
new file mode 100644 (file)
index 0000000..cbc20ed
--- /dev/null
@@ -0,0 +1,49 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 6 of 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 0 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > 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 784x151
+        RenderBlock {DIV} at (0,0) size 784x151
+          RenderBlock {DIV} at (0,0) size 784x85
+            RenderBlock (anonymous) at (0,0) size 784x19
+              RenderText {#text} at (0,0) size 20x19
+                text run at (0,0) width 20: "foo"
+            RenderBlock {BLOCKQUOTE} at (40,33) size 704x19
+              RenderText {#text} at (0,0) size 21x19
+                text run at (0,0) width 21: "bar"
+            RenderBlock (anonymous) at (0,66) size 784x19
+              RenderText {#text} at (0,0) size 23x19
+                text run at (0,0) width 23: "baz"
+              RenderText {#text} at (23,0) size 20x19
+                text run at (23,0) width 20: "foo"
+          RenderBlock {DIV} at (0,99) size 784x52
+            RenderBlock {DIV} at (0,0) size 784x52
+              RenderBlock (anonymous) at (0,0) size 784x0
+              RenderBlock {BLOCKQUOTE} at (40,0) size 704x19
+                RenderText {#text} at (0,0) size 21x19
+                  text run at (0,0) width 21: "bar"
+              RenderBlock (anonymous) at (0,33) size 784x19
+                RenderText {#text} at (0,0) size 23x19
+                  text run at (0,0) width 23: "baz"
+        RenderBlock (anonymous) at (0,151) size 784x0
+caret: position 3 of child 1 {#text} of child 0 {DIV} of child 1 {DIV} of child 0 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt
new file mode 100644 (file)
index 0000000..8a4ea67
--- /dev/null
@@ -0,0 +1,39 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > B > DIV > DIV > BODY > HTML > #document to 28 of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:this text should end up bold replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 28 of #text > B > DIV > DIV > BODY > HTML > #document to 28 of #text > B > DIV > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 388x19
+          text run at (0,0) width 388: "This tests paste and match style on an empty (but styled) line"
+      RenderBlock {P} at (0,33) size 784x38
+        RenderText {#text} at (0,0) size 760x38
+          text run at (0,0) width 760: "The first line is copied (unstyled), then it's bolded, then a paragraph separator is inserted and the original unstyled line is"
+          text run at (0,19) width 181: "pasted (with style matching)."
+      RenderBlock {HR} at (0,85) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,94) size 784x44
+        RenderBlock {DIV} at (0,0) size 784x22 [border: (1px solid #FF0000)]
+          RenderInline {B} at (0,0) size 195x20
+            RenderText {#text} at (1,1) size 195x20
+              text run at (1,1) width 195: "this text should end up bold"
+        RenderBlock {DIV} at (0,22) size 784x22 [border: (1px solid #FF0000)]
+          RenderInline {B} at (0,0) size 195x20
+            RenderText {#text} at (1,1) size 195x20
+              text run at (1,1) width 195: "this text should end up bold"
+caret: position 28 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt
new file mode 100644 (file)
index 0000000..696ac4e
--- /dev/null
@@ -0,0 +1,49 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 778x38
+          text run at (0,0) width 778: "This tests to make sure that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end"
+          text run at (0,19) width 69: "of a block. "
+          text run at (69,19) width 373: "Both regions below should have contents that are identical."
+      RenderBlock {DIV} at (0,52) size 784x57
+        RenderBlock {DIV} at (0,0) size 784x38
+          RenderBlock {DIV} at (0,0) size 784x19
+            RenderText {#text} at (0,0) size 20x19
+              text run at (0,0) width 20: "foo"
+          RenderBlock (anonymous) at (0,19) size 784x19
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+        RenderBlock (anonymous) at (0,38) size 784x19
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "baz"
+      RenderBlock {DIV} at (0,109) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock {DIV} at (0,19) size 784x38
+          RenderBlock {DIV} at (0,0) size 784x19
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+          RenderBlock (anonymous) at (0,19) size 784x19
+            RenderText {#text} at (0,0) size 23x19
+              text run at (0,0) width 23: "baz"
+caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt
new file mode 100644 (file)
index 0000000..b0393df
--- /dev/null
@@ -0,0 +1,51 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 712x38
+          text run at (0,0) width 712: "This tests for a bug in createMarkup (markup for ancestors of the start of the selection wasn't being added to the"
+          text run at (0,19) width 85: "pasteboard). "
+          text run at (85,19) width 339: "You should see the same thing in both regions below."
+      RenderBlock {P} at (0,52) size 784x20
+        RenderInline {B} at (0,0) size 450x20
+          RenderText {#text} at (0,0) size 450x20
+            text run at (0,0) width 450: "This demonstrates a bug: 'foo' is pulled out of its bordered block."
+      RenderBlock {DIV} at (0,86) size 784x76
+        RenderBlock {DIV} at (5,0) size 774x52 [border: (1px solid #FF0000)]
+          RenderBlock (anonymous) at (1,1) size 772x19
+            RenderText {#text} at (0,0) size 20x19
+              text run at (0,0) width 20: "foo"
+          RenderBlock {DIV} at (6,25) size 762x21 [border: (1px solid #0000FF)]
+            RenderText {#text} at (1,1) size 21x19
+              text run at (1,1) width 21: "bar"
+        RenderBlock (anonymous) at (0,57) size 784x19
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "baz"
+      RenderBlock {DIV} at (0,167) size 784x76
+        RenderBlock {DIV} at (5,0) size 774x52 [border: (1px solid #FF0000)]
+          RenderBlock (anonymous) at (1,1) size 772x19
+            RenderText {#text} at (0,0) size 20x19
+              text run at (0,0) width 20: "foo"
+          RenderBlock {DIV} at (6,25) size 762x21 [border: (1px solid #0000FF)]
+            RenderText {#text} at (1,1) size 21x19
+              text run at (1,1) width 21: "bar"
+        RenderBlock (anonymous) at (0,57) size 784x19
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "baz"
+caret: position 3 of child 1 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt
new file mode 100644 (file)
index 0000000..f9f4564
--- /dev/null
@@ -0,0 +1,29 @@
+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 2 of DIV > BODY > HTML > #document to 2 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 641x38
+          text run at (0,0) width 424: "This tests pasting a fragment containing an <iframe> after a <div>. "
+          text run at (424,0) width 217: "This used to fail on an assertion in"
+          text run at (0,19) width 321: "moveParagraphContentsToNewBlockIfNecessary. "
+          text run at (321,19) width 313: "You should see 'foo' and then an <iframe> below."
+      RenderBlock {DIV} at (0,52) size 784x71
+        RenderBlock {DIV} at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock (anonymous) at (0,19) size 784x52
+          RenderPartObject {IFRAME} at (0,0) size 102x52 [border: (1px solid #000000)]
+            layer at (0,0) size 100x50
+              RenderView at (0,0) size 100x50
+            layer at (0,0) size 100x8
+              RenderBlock {HTML} at (0,0) size 100x8
+                RenderBody {BODY} at (8,8) size 84x0
+caret: position 1 of child 1 {IFRAME} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt
new file mode 100644 (file)
index 0000000..efde0e1
--- /dev/null
@@ -0,0 +1,37 @@
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 3 of DIV > BODY > HTML > #document to 3 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 776x38
+          text run at (0,0) width 666: "This tests for a bug when creating markup for a selection that contained unrendered nodes with children. "
+          text run at (666,0) width 110: "You should see a"
+          text run at (0,19) width 246: "picture of abe followed by a select box."
+      RenderBlock {DIV} at (0,52) size 784x113
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderText {#text} at (76,89) size 4x19
+          text run at (76,89) width 4: " "
+        RenderMenuList {SELECT} at (82,86) size 74x25 [bgcolor=#FFFFFF]
+          RenderBlock (anonymous) at (8,3) size 42x19
+            RenderText at (0,0) size 8x19
+              text run at (0,0) width 8: "1"
+      RenderBlock (anonymous) at (0,165) size 784x113
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderText {#text} at (76,89) size 4x19
+          text run at (76,89) width 4: " "
+        RenderMenuList {SELECT} at (82,86) size 74x25 [bgcolor=#FFFFFF]
+          RenderBlock (anonymous) at (8,3) size 42x19
+            RenderText at (0,0) size 8x19
+              text run at (0,0) width 8: "1"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 2 {SELECT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt
new file mode 100644 (file)
index 0000000..f30c687
--- /dev/null
@@ -0,0 +1,22 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) 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
+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 784x19
+        RenderText {#text} at (0,0) size 42x19
+          text run at (0,0) width 42: "There "
+        RenderText {#text} at (42,0) size 42x19
+          text run at (42,0) width 42: "should"
+        RenderText {#text} at (84,0) size 220x19
+          text run at (84,0) width 220: " be no line breaks in this sentence."
+caret: position 6 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt
new file mode 100644 (file)
index 0000000..715e709
--- /dev/null
@@ -0,0 +1,18 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 543x19
+          text run at (0,0) width 246: "This tests for an infinite loop on Paste. "
+          text run at (246,0) width 297: "You should see 'Hello: ' and then an input field."
+      RenderBlock {DIV} at (0,33) size 784x29
+        RenderText {#text} at (0,5) size 32x19
+          text run at (0,5) width 32: "Hello"
+        RenderTextControl {INPUT} at (34,2) size 168x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (204,5) size 4x19
+          text run at (204,5) width 4: ":"
+layer at (45,46) size 162x19
+  RenderBlock {DIV} at (3,3) size 162x19
+caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4840662-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4840662-expected.txt
new file mode 100644 (file)
index 0000000..384c9bb
--- /dev/null
@@ -0,0 +1,23 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 773x38
+          text run at (0,0) width 420: "This tests for a crash when pasting into a link that is display:block. "
+          text run at (420,0) width 353: "'bar' is pasted between 'foo' and 'baz', and must be part"
+          text run at (0,19) width 407: "of the link in order to acheive the expected paragraph structure. "
+          text run at (407,19) width 344: "It should be part of the link but of the default font style."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderBlock {A} at (0,0) size 784x19 [color=#0000EE]
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+          RenderInline {SPAN} at (0,0) size 44x19 [color=#000000]
+            RenderText {#text} at (20,0) size 21x19
+              text run at (20,0) width 21: "bar"
+            RenderInline {A} at (0,0) size 23x19 [color=#0000EE]
+              RenderText {#text} at (41,0) size 23x19
+                text run at (41,0) width 23: "baz"
+        RenderBlock (anonymous) at (0,19) size 784x0
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 0 {A} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt
new file mode 100644 (file)
index 0000000..036bcc3
--- /dev/null
@@ -0,0 +1,25 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 775x38
+          text run at (0,0) width 423: "This tests smart paste of a fragment that ends in a select element. "
+          text run at (423,0) width 352: "There should be no spaces added because the paste is"
+          text run at (0,19) width 218: "performed in an empty paragraph."
+      RenderBlock {DIV} at (0,52) size 784x29
+        RenderText {#text} at (0,5) size 20x19
+          text run at (0,5) width 20: "foo"
+        RenderMenuList {SELECT} at (22,2) size 74x25 [bgcolor=#FFFFFF]
+          RenderBlock (anonymous) at (8,3) size 42x19
+            RenderText at (0,0) size 8x19
+              text run at (0,0) width 8: "1"
+      RenderBlock {DIV} at (0,81) size 784x29
+        RenderText {#text} at (0,5) size 20x19
+          text run at (0,5) width 20: "foo"
+        RenderMenuList {SELECT} at (22,2) size 74x25 [bgcolor=#FFFFFF]
+          RenderBlock (anonymous) at (8,3) size 42x19
+            RenderText at (0,0) size 8x19
+              text run at (0,0) width 8: "1"
+caret: position 3 of child 1 {SELECT} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt
new file mode 100644 (file)
index 0000000..61b01b4
--- /dev/null
@@ -0,0 +1,15 @@
+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
+      RenderImage {IMG} at (0,0) size 76x103
+      RenderImage {IMG} at (76,0) size 76x103
+      RenderImage {IMG} at (152,0) size 76x103
+      RenderBR {BR} at (228,103) size 0x0
+      RenderText {#text} at (0,103) size 762x40
+        text run at (0,103) width 762: "This tests for a bug where an images pasted on the same line would appear on different lines.  You should see "
+        text run at (0,123) width 365: "several pictures above all in the same line/paragraph."
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
+caret: position 164 of child 4 {#text} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt
new file mode 100644 (file)
index 0000000..4d78042
--- /dev/null
@@ -0,0 +1,24 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 609x19
+          text run at (0,0) width 430: "This tests copying/pasting less than a paragraph of quoted content. "
+          text run at (430,0) width 179: "It should not appear quoted."
+      RenderBlock {DIV} at (0,33) size 784x95
+        RenderBlock (anonymous) at (0,0) size 784x38
+          RenderText {#text} at (0,0) size 19x19
+            text run at (0,0) width 19: "On"
+          RenderBR {BR} at (19,14) size 0x0
+          RenderBR {BR} at (0,19) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,38) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 162x19
+            text run at (12,0) width 162: "On Tuesday, Dave wrote:"
+        RenderBlock {BLOCKQUOTE} at (0,57) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBR {BR} at (12,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,76) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 77x19
+            text run at (12,0) width 77: "Hello World."
+caret: position 2 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
new file mode 100644 (file)
index 0000000..aede6ab
--- /dev/null
@@ -0,0 +1,21 @@
+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 784x578
+      RenderBlock {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 768x38
+          text run at (0,0) width 408: "This tests a bug when copying HTML markup inside <pre> tags. "
+          text run at (408,0) width 360: "When pasted, this content would appear as the rendered"
+          text run at (0,19) width 133: "form of that markup. "
+          text run at (133,19) width 332: "You should see markup in the editable region below."
+      RenderBlock {PRE} at (0,52) size 784x19
+        RenderBlock (anonymous) at (0,0) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderBlock {PRE} at (0,0) size 784x19
+            RenderText {#text} at (0,1) size 328x17
+              text run at (0,1) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
+        RenderBlock (anonymous) at (0,33) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt
new file mode 100644 (file)
index 0000000..e8428b2
--- /dev/null
@@ -0,0 +1,16 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 776x38
+          text run at (0,0) width 705: "This tests for a bug where content pasted at the end of a paragraph would be inserted into the next paragraph. "
+          text run at (705,0) width 71: "You should"
+          text run at (0,19) width 142: "see 'helloworld' below."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderText {#text} at (0,0) size 30x19
+          text run at (0,0) width 30: "hello"
+        RenderText {#text} at (30,0) size 34x19
+          text run at (30,0) width 34: "world"
+caret: position 5 of child 1 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt
new file mode 100644 (file)
index 0000000..e9756ba
--- /dev/null
@@ -0,0 +1,33 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 506x19
+          text run at (0,0) width 506: "This tests for a bug where text copied with Select All + Copy would lose its color."
+      RenderBlock {DIV} at (0,33) size 784x76
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderInline {FONT} at (0,0) size 149x19 [color=#FF0000]
+            RenderText {#text} at (0,0) size 149x19
+              text run at (0,0) width 149: "This text should be red."
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderInline {FONT} at (0,0) size 149x19 [color=#FF0000]
+            RenderText {#text} at (0,0) size 149x19
+              text run at (0,0) width 149: "This text should be red."
+        RenderBlock {DIV} at (0,38) size 784x38
+          RenderBlock (anonymous) at (0,0) size 784x19
+            RenderInline {FONT} at (0,0) size 149x19 [color=#FF0000]
+              RenderInline {SPAN} at (0,0) size 149x19 [color=#000000]
+                RenderInline {FONT} at (0,0) size 149x19 [color=#FF0000]
+                  RenderText {#text} at (0,0) size 149x19
+                    text run at (0,0) width 149: "This text should be red."
+          RenderBlock (anonymous) at (0,19) size 784x19
+            RenderBlock {DIV} at (0,0) size 784x19
+              RenderInline {FONT} at (0,0) size 149x19 [color=#FF0000]
+                RenderText {#text} at (0,0) size 149x19
+                  text run at (0,0) width 149: "This text should be red."
+          RenderBlock (anonymous) at (0,38) size 784x0
+            RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+              RenderInline {SPAN} at (0,0) size 0x0 [color=#000000]
+caret: position 24 of child 0 {#text} of child 0 {FONT} of child 1 {DIV} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt
new file mode 100644 (file)
index 0000000..43ac3f5
--- /dev/null
@@ -0,0 +1,20 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 544x19
+          text run at (0,0) width 544: "This tests for a bug where copied links wouldn't be pasted as links at certain positions."
+      RenderBlock {DIV} at (0,33) size 784x38
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 158x19
+            text run at (0,0) width 158: "This should be plain text."
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 158x19
+            text run at (0,0) width 158: "This should be plain text."
+          RenderInline {A} at (0,0) size 134x19 [color=#0000EE]
+            RenderText {#text} at (158,0) size 134x19
+              text run at (158,0) width 134: "This should be a link."
+        RenderBlock (anonymous) at (0,38) size 784x0
+caret: position 22 of child 0 {#text} of child 1 {A} of child 1 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt
new file mode 100644 (file)
index 0000000..1c2577c
--- /dev/null
@@ -0,0 +1,21 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 587x19
+          text run at (0,0) width 587: "This tests for a bug where links that weren't fully selected would be copy/pasted as plain text."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderText {#text} at (0,0) size 162x19
+          text run at (0,0) width 162: "This should be plain text. "
+        RenderInline {A} at (0,0) size 134x19 [color=#0000EE]
+          RenderText {#text} at (162,0) size 134x19
+            text run at (162,0) width 134: "This should be a link."
+        RenderText {#text} at (296,0) size 162x19
+          text run at (296,0) width 162: " This should be plain text."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderInline {A} at (0,0) size 134x19 [color=#0000EE]
+          RenderText {#text} at (0,0) size 134x19
+            text run at (0,0) width 134: "This should be a link."
+caret: position 22 of child 0 {#text} of child 0 {A} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt
new file mode 100644 (file)
index 0000000..b818a11
--- /dev/null
@@ -0,0 +1,21 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 767x38
+          text run at (0,0) width 305: "This test for a bug copy/pasting underlined text. "
+          text run at (305,0) width 462: "The color of the underline should be the color of the element that has the"
+          text run at (0,19) width 156: "text-decoration property."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderInline {SPAN} at (0,0) size 168x19 [color=#0000FF]
+          RenderInline {SPAN} at (0,0) size 168x19 [color=#FF0000]
+            RenderText {#text} at (0,0) size 168x19
+              text run at (0,0) width 168: "This should be underlined."
+      RenderBlock {DIV} at (0,71) size 784x19
+        RenderInline {SPAN} at (0,0) size 168x19 [color=#0000FF]
+          RenderInline {SPAN} at (0,0) size 168x19 [color=#FF0000]
+            RenderText {#text} at (0,0) size 168x19
+              text run at (0,0) width 168: "This should be underlined."
+caret: position 26 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt
new file mode 100644 (file)
index 0000000..b85ccff
--- /dev/null
@@ -0,0 +1,19 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 748x19
+          text run at (0,0) width 369: "This test for a bug moving a paragraph of underlined text. "
+          text run at (369,0) width 379: "The text should look the same before and after the deletion."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderBlock {DIV} at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 192x19
+            text run at (0,0) width 192: "This should not be underlined."
+          RenderInline {SPAN} at (0,0) size 168x19 [color=#0000FF]
+            RenderInline {SPAN} at (0,0) size 168x19 [color=#FF0000]
+              RenderText {#text} at (192,0) size 168x19
+                text run at (192,0) width 168: "This should be underlined."
+        RenderBlock (anonymous) at (0,19) size 784x0
+caret: position 30 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt
new file mode 100644 (file)
index 0000000..722d2d1
--- /dev/null
@@ -0,0 +1,17 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 301x19
+          text run at (0,0) width 301: "This test for a bug copy/pasting underlined text."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderInline {SPAN} at (0,0) size 168x19
+          RenderText {#text} at (0,0) size 168x19
+            text run at (0,0) width 168: "This should be underlined."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderInline {SPAN} at (0,0) size 168x19
+          RenderText {#text} at (0,0) size 168x19
+            text run at (0,0) width 168: "This should be underlined."
+caret: position 26 of child 0 {#text} of child 0 {SPAN} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt
new file mode 100644 (file)
index 0000000..fffed48
--- /dev/null
@@ -0,0 +1,24 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 655x19
+          text run at (0,0) width 514: "This tests for a hang when pasting underlined content at the end of a paragraph. "
+          text run at (514,0) width 141: "You should see 'Hello "
+        RenderInline {U} at (0,0) size 41x19
+          RenderText {#text} at (655,0) size 41x19
+            text run at (655,0) width 41: "World!"
+        RenderText {#text} at (696,0) size 48x19
+          text run at (696,0) width 48: "' below."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderBlock {DIV} at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 36x19
+            text run at (0,0) width 36: "Hello "
+          RenderInline {SPAN} at (0,0) size 41x19
+            RenderInline {DIV} at (0,0) size 41x19
+              RenderText {#text} at (36,0) size 41x19
+                text run at (36,0) width 41: "World!"
+        RenderBlock (anonymous) at (0,19) size 784x0
+caret: position 6 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt
new file mode 100644 (file)
index 0000000..d4f8841
--- /dev/null
@@ -0,0 +1,23 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 453x19
+          text run at (0,0) width 453: "This tests for a crash when pasting content into a link inside a table cell."
+      RenderBlock {DIV} at (0,33) size 784x29
+        RenderTable {TABLE} at (0,0) size 144x29 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 142x27
+            RenderTableRow {TR} at (0,2) size 142x23
+              RenderTableCell {TD} at (2,2) size 138x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {A} at (0,0) size 134x19 [color=#0000EE]
+                  RenderText {#text} at (2,2) size 9x19
+                    text run at (2,2) width 9: "T"
+                  RenderText {#text} at (11,2) size 121x19
+                    text run at (11,2) width 121: "his should be a link"
+                  RenderInline {SPAN} at (0,0) size 4x19 [color=#000000]
+                    RenderInline {A} at (0,0) size 4x19 [color=#0000EE]
+                      RenderText {#text} at (132,2) size 4x19
+                        text run at (132,2) width 4: "."
+caret: position 20 of child 1 {#text} of child 0 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5245519-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5245519-expected.txt
new file mode 100644 (file)
index 0000000..33e118e
--- /dev/null
@@ -0,0 +1,15 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 747x38
+          text run at (0,0) width 747: "This tests for a crash when pasting content that contains Apple-style-spans that don't have renderers.' You should see"
+          text run at (0,19) width 83: "'Hello World!'"
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderText {#text} at (0,0) size 36x19
+          text run at (0,0) width 36: "Hello "
+        RenderText {#text} at (36,0) size 41x19
+          text run at (36,0) width 41: "World!"
+caret: position 6 of child 1 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt
new file mode 100644 (file)
index 0000000..f5a73e4
--- /dev/null
@@ -0,0 +1,19 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 738x38
+          text run at (0,0) width 738: "This tests for a bug where newlines would not be preserved during copy/paste. Below you should see two paragaphs"
+          text run at (0,19) width 468: "containing \"Hello World!\" and an empty third paragraph with the caret in it."
+      RenderBlock {DIV} at (0,52) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 77x19
+            text run at (0,0) width 77: "Hello World!"
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 77x19
+            text run at (0,0) width 77: "Hello World!"
+        RenderBlock {DIV} at (0,38) size 784x19
+          RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt
new file mode 100644 (file)
index 0000000..7550f7f
--- /dev/null
@@ -0,0 +1,27 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 738x38
+          text run at (0,0) width 445: "We copy and paste a blockquoted paragraph plus a paragraph break. "
+          text run at (445,0) width 281: "The paragraph break shouldn't be inside the"
+          text run at (0,19) width 136: "blockquote on paste. "
+          text run at (136,19) width 602: "You should see 'hello' (blockquoted), empty paragraph, 'hello' (blockquoted), empty paragraph."
+      RenderBlock {DIV} at (0,52) size 784x76
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (7,0) size 30x19
+            text run at (7,0) width 30: "hello"
+          RenderBR {BR} at (37,14) size 0x0
+        RenderBlock (anonymous) at (0,19) size 784x0
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderInline {FONT} at (0,0) size 0x19 [color=#0000FF]
+            RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,38) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (7,0) size 30x19
+            text run at (7,0) width 30: "hello"
+          RenderBR {BR} at (37,14) size 0x0
+        RenderBlock (anonymous) at (0,57) size 784x19
+          RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {BR} of child 0 {FONT} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt
new file mode 100644 (file)
index 0000000..1c15a87
--- /dev/null
@@ -0,0 +1,23 @@
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 764x38
+          text run at (0,0) width 379: "This tests for a crash when pasting content into a table cell. "
+          text run at (379,0) width 385: "The table cell has some collapsed whitespace at the end of it"
+          text run at (0,19) width 139: "that tickled the crash. "
+          text run at (139,19) width 325: "You should see 'Hello World' in the table cell below."
+      RenderBlock {DIV} at (0,52) size 784x29
+        RenderTable {TABLE} at (0,0) size 87x29 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 85x27
+            RenderTableRow {TR} at (0,2) size 85x23
+              RenderTableCell {TD} at (2,2) size 81x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 49x19
+                  text run at (2,2) width 49: "Hello W"
+                RenderText {#text} at (51,2) size 24x19
+                  text run at (51,2) width 24: "orld"
+                RenderText {#text} at (75,2) size 4x19
+                  text run at (75,2) width 4: " "
+caret: position 4 of child 1 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt
new file mode 100644 (file)
index 0000000..27cd8f0
--- /dev/null
@@ -0,0 +1,23 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 519x19
+          text run at (0,0) width 519: "This tests that inherited block properties do not propigate to the editing style span."
+      RenderBlock {DIV} at (50,33) size 734x20
+        RenderText {#text} at (265,0) size 154x20
+          text run at (265,0) width 154: "Some text that is bold."
+      RenderBlock {DIV} at (0,53) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 110x19
+            text run at (0,0) width 110: "Some text that is "
+          RenderInline {SPAN} at (0,0) size 35x20
+            RenderText {#text} at (110,0) size 35x20
+              text run at (110,0) width 35: "bold."
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {B} at (0,0) size 398x20
+            RenderText {#text} at (0,0) size 398x20
+              text run at (0,0) width 398: "This text should bold and left justified with \"Some text...\"."
+caret: position 61 of child 0 {#text} of child 0 {B} of child 2 {DIV} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt
new file mode 100644 (file)
index 0000000..94b08c0
--- /dev/null
@@ -0,0 +1,13 @@
+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 784x19
+        RenderText {#text} at (0,0) size 7x19
+          text run at (0,0) width 7: "x"
+        RenderText {#text} at (7,0) size 20x19
+          text run at (7,0) width 20: "foo"
+        RenderText {#text} at (27,0) size 7x19
+          text run at (27,0) width 7: "x"
+caret: position 3 of child 1 {#text} of child 0 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/7955-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/7955-expected.txt
new file mode 100644 (file)
index 0000000..c6f10b9
--- /dev/null
@@ -0,0 +1,12 @@
+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 784x38
+        RenderBlock {DIV} at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock (anonymous) at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: "bar"
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt
new file mode 100644 (file)
index 0000000..bec4bf6
--- /dev/null
@@ -0,0 +1,18 @@
+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 11 of #text > DIV > BODY > HTML > #document to 11 of #text > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 433x19
+          text run at (0,0) width 433: "This is a replica of the paste that caused the crash covered by 8145."
+      RenderBlock {DIV} at (0,33) size 784x21 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 72x19
+          text run at (1,1) width 72: "foo bar baz"
+caret: position 11 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt
new file mode 100644 (file)
index 0000000..746eb70
--- /dev/null
@@ -0,0 +1,36 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 5 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 784x57
+          text run at (0,0) width 300: "This tests a change made with the fix for 8145. "
+          text run at (300,0) width 434: "The paragraph separator inserted to prevent nesting blocks from the"
+          text run at (0,19) width 784: "fragment to paste inside the block where the paste occured was incorrectly inserted when the paste occured at the start of a"
+          text run at (0,38) width 70: "paragraph."
+      RenderBlock {DIV} at (0,71) size 784x78 [border: (1px solid #000000)]
+        RenderBlock (anonymous) at (1,1) size 782x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+          RenderBR {BR} at (20,14) size 0x0
+        RenderBlock {DIV} at (1,20) size 782x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock (anonymous) at (1,39) size 782x38
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: "bar"
+          RenderText {#text} at (21,0) size 21x19
+            text run at (21,0) width 21: "bar"
+          RenderBR {BR} at (42,14) size 0x0
+          RenderText {#text} at (0,19) size 23x19
+            text run at (0,19) width 23: "baz"
+caret: position 3 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt
new file mode 100644 (file)
index 0000000..1bbde78
--- /dev/null
@@ -0,0 +1,32 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 772x57
+          text run at (0,0) width 300: "This tests a change made with the fix for 8145. "
+          text run at (300,0) width 434: "The paragraph separator inserted to prevent nesting blocks from the"
+          text run at (0,19) width 772: "fragment to paste inside the block where the paste occured was not being inserted when the fragment had an interchange"
+          text run at (0,38) width 120: "newline at the end."
+      RenderBlock {DIV} at (0,71) size 784x59 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (1,1) size 782x19
+          RenderText {#text} at (0,0) size 4x19
+            text run at (0,0) width 4: "f"
+          RenderText {#text} at (4,0) size 21x19
+            text run at (4,0) width 21: "bar"
+        RenderBlock (anonymous) at (1,20) size 782x19
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "baz"
+        RenderBlock {DIV} at (1,39) size 782x19
+          RenderText {#text} at (0,0) size 16x19
+            text run at (0,0) width 16: "oo"
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt
new file mode 100644 (file)
index 0000000..9f81afb
--- /dev/null
@@ -0,0 +1,30 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 761x38
+          text run at (0,0) width 761: "This is a test to make sure that a placeholder, even one without our special class on it, is removed only when it has been"
+          text run at (0,19) width 411: "collapsed away or when it has been displaced by pasted content."
+      RenderBlock {P} at (0,52) size 784x38
+        RenderText {#text} at (0,0) size 773x38
+          text run at (0,0) width 704: "Placeholders with our special class can, through bugs in deletion, be inserted into the document unnecessarily. "
+          text run at (704,0) width 62: "Once that"
+          text run at (0,19) width 773: "happens, we don't want to make matters worse by removing them if they are acting as line breaks instead of placeholders."
+      RenderBlock {DIV} at (0,104) size 784x38
+        RenderText {#text} at (0,0) size 28x19
+          text run at (0,0) width 28: "First"
+        RenderText {#text} at (28,0) size 74x19
+          text run at (28,0) width 74: " paragraph."
+        RenderBR {BR} at (102,14) size 0x0
+        RenderText {#text} at (0,19) size 122x19
+          text run at (0,19) width 122: "Second paragraph."
+caret: position 11 of child 1 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt
new file mode 100644 (file)
index 0000000..8764f59
--- /dev/null
@@ -0,0 +1,25 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 769x19
+          text run at (0,0) width 769: "These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderText {#text} at (692,0) size 92x19
+          text run at (692,0) width 60 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
+          text run at (752,0) width 32: "1234"
+      RenderBlock {DIV} at (0,52) size 784x38
+        RenderBlock {DIV} at (0,0) size 784x38
+          RenderBlock {DIV} at (0,0) size 784x19
+            RenderText {#text} at (0,0) size 92x19
+              text run at (0,0) width 32: "1234"
+              text run at (32,0) width 56 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}"
+              text run at (88,0) width 4: ":"
+          RenderBlock {DIV} at (0,19) size 784x19
+            RenderText {#text} at (692,0) size 92x19
+              text run at (692,0) width 60 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
+              text run at (752,0) width 32: "1234"
+          RenderBlock (anonymous) at (0,38) size 784x0
+caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt
new file mode 100644 (file)
index 0000000..f950de4
--- /dev/null
@@ -0,0 +1,25 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > 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 784x60 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 85x31
+          RenderText {#text} at (14,14) size 85x31
+            text run at (14,14) width 85: "foo  baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt
new file mode 100644 (file)
index 0000000..a16d48f
--- /dev/null
@@ -0,0 +1,25 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 746x38
+          text run at (0,0) width 746: "This is a test to make sure that a placeholder, even one that doesn't have our special class on it, is removed when it is"
+          text run at (0,19) width 181: "displaced by pasted content."
+      RenderBlock {DIV} at (0,52) size 784x38
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: "First paragraph."
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 122x19
+            text run at (0,0) width 122: "Second paragraph."
+        RenderBlock (anonymous) at (0,38) size 784x0
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt
new file mode 100644 (file)
index 0000000..bab8de1
--- /dev/null
@@ -0,0 +1,24 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 607x19
+          text run at (0,0) width 607: "This is a test to make sure that a placeholder is removed when it is displaced by pasted content."
+      RenderBlock {DIV} at (0,33) size 784x38
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: "First paragraph."
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 122x19
+            text run at (0,0) width 122: "Second paragraph."
+        RenderBlock (anonymous) at (0,38) size 784x0
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt
new file mode 100644 (file)
index 0000000..17b8f24
--- /dev/null
@@ -0,0 +1,41 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 5 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > B > SPAN > DIV > BODY > HTML > #document to 4 of #text > B > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > SPAN > 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 (anonymous) at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 198x19
+          text run at (0,0) width 198: "This is a testcase for the fix for "
+        RenderInline {A} at (0,0) size 337x19 [color=#0000EE]
+          RenderText {#text} at (198,0) size 337x19
+            text run at (198,0) width 337: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7904"
+        RenderText {#text} at (535,0) size 770x57
+          text run at (535,0) width 8: ". "
+          text run at (543,0) width 227: "ReplaceSelectionCommand used to"
+          text run at (0,19) width 447: "guess whether or not nodes in the fragment to be pasted were blocks. "
+          text run at (447,19) width 143: "It now knows for sure. "
+          text run at (590,19) width 88: "Before the fix,"
+          text run at (0,38) width 597: "ReplaceSelectionCommand blew away content of the div below after copy/pasting it over itself."
+      RenderBlock {HR} at (0,64) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,73) size 784x40
+        RenderBlock {SPAN} at (0,0) size 784x20
+          RenderInline {B} at (0,0) size 136x20
+            RenderText {#text} at (0,0) size 136x20
+              text run at (0,0) width 136: "This is a paragraph."
+        RenderBlock {SPAN} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 181x20
+            RenderText {#text} at (0,0) size 30x20
+              text run at (0,0) width 30: "This"
+            RenderText {#text} at (30,0) size 151x20
+              text run at (30,0) width 151: " is another paragraph."
+caret: position 4 of child 0 {#text} of child 0 {SPAN} of child 2 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt
new file mode 100644 (file)
index 0000000..63d5931
--- /dev/null
@@ -0,0 +1,31 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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 784x206 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x65
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 572x31
+            text run at (0,33) width 572: "Cntl-y at caret selection when nothing is in the kill ring."
+        RenderBlock {DIV} at (14,95) size 756x97
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 313x31
+            text run at (0,33) width 313: "Deletes a character, yielding: "
+          RenderBR {BR} at (313,56) size 0x0
+          RenderText {#text} at (0,65) size 179x31
+            text run at (0,65) width 179: "one tw three four"
+      RenderBlock {DIV} at (0,230) size 784x36
+        RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 192x31
+            text run at (2,2) width 192: "one two three four"
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt
new file mode 100644 (file)
index 0000000..432ede4
--- /dev/null
@@ -0,0 +1,36 @@
+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 784x578
+      RenderBlock {DIV} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 499x19
+          text run at (0,0) width 499: "Checks that the text iterator is emitting a space before and after an inline table."
+      RenderBlock {DIV} at (0,19) size 784x30
+        RenderText {#text} at (0,11) size 30x19
+          text run at (0,11) width 30: "hello"
+        RenderTable {TABLE} at (30,0) size 14x25
+          RenderTableSection {TBODY} at (0,0) size 14x25
+            RenderTableRow {TR} at (0,2) size 14x21
+              RenderTableCell {TD} at (2,2) size 10x21 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x19
+                  text run at (1,1) width 8: "1"
+        RenderText {#text} at (44,11) size 34x19
+          text run at (44,11) width 34: "world"
+      RenderBlock {DIV} at (0,49) size 784x30
+        RenderText {#text} at (0,11) size 24x19
+          text run at (0,11) width 24: "foo "
+        RenderTable {TABLE} at (24,0) size 14x25
+          RenderTableSection {TBODY} at (0,0) size 14x25
+            RenderTableRow {TR} at (0,2) size 14x21
+              RenderTableCell {TD} at (2,2) size 10x21 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x19
+                  text run at (1,1) width 8: "2"
+        RenderText {#text} at (38,11) size 25x19
+          text run at (38,11) width 25: " bar"
+      RenderBlock {UL} at (0,93) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderBlock {PRE} at (0,0) size 744x20
+            RenderListMarker at (-17,0) size 7x19: bullet
+            RenderText {#text} at (0,2) size 64x17
+              text run at (0,2) width 64: "Success!"
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt
new file mode 100644 (file)
index 0000000..b0a8939
--- /dev/null
@@ -0,0 +1,34 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 778x57
+          text run at (0,0) width 775: "There is an interchange newline at the end of the incoming fragment, so the last bit of pasted content and the content after"
+          text run at (0,19) width 460: "the position where the paste occured should be in separate paragraphs. "
+          text run at (460,19) width 318: "The last bit of pasted content is a div wrapped in a"
+          text run at (0,38) width 483: "span, which breaks the old code in paste that handled interchange newlines."
+      RenderBlock {DIV} at (0,71) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+          RenderInline {SPAN} at (0,0) size 20x19
+            RenderText {#text} at (7,0) size 20x19
+              text run at (7,0) width 20: "foo"
+        RenderBlock (anonymous) at (0,19) size 784x19
+          RenderBlock {DIV} at (0,0) size 784x19
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+        RenderBlock (anonymous) at (0,38) size 784x19
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+caret: position 0 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt
new file mode 100644 (file)
index 0000000..abf06fb
--- /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 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 764x57
+          text run at (0,0) width 453: "This demonstrates a bug in interchange newline handling during paste. "
+          text run at (453,0) width 311: "There is an interchange newline at the end of the"
+          text run at (0,19) width 436: "incoming fragment and so the caret should end up on an empty line. "
+          text run at (436,19) width 295: "The editable region is followed by non-editable"
+          text run at (0,38) width 499: "content, which breaks the old code in paste that handled interchange newlines."
+      RenderBlock {DIV} at (0,71) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: "bar"
+        RenderBlock {DIV} at (0,38) size 784x19
+          RenderBR {BR} at (0,0) size 0x19
+      RenderBlock (anonymous) at (0,128) size 784x19
+        RenderText {#text} at (0,0) size 179x19
+          text run at (0,0) width 179: "This is non-editable content."
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt
new file mode 100644 (file)
index 0000000..6febbd9
--- /dev/null
@@ -0,0 +1,28 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 771x38
+          text run at (0,0) width 771: "This tests for a bug where pasted content starting with an interchange newline would end up outside of the editable region"
+          text run at (0,19) width 134: "where it was pasted. "
+          text run at (134,19) width 206: "You should see 'foo\\nbar' below."
+      RenderBlock {DIV} at (0,52) size 784x38
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 20x19
+            text run at (0,0) width 20: "foo"
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: "bar"
+      RenderBlock (anonymous) at (0,90) size 784x19
+        RenderText {#text} at (0,0) size 79x19
+          text run at (0,0) width 79: "non-editable"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt
new file mode 100644 (file)
index 0000000..da87b97
--- /dev/null
@@ -0,0 +1,39 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 750x57
+          text run at (0,0) width 750: "When ReplaceSelectionCommand deletes the current selection, it should request that the deletion do a merge in some"
+          text run at (0,19) width 740: "cases (normally, though, it should ask that a merge not be done, because a merge will cause information about block"
+          text run at (0,38) width 121: "nesting to be lost). "
+          text run at (121,38) width 375: "It wasn't requesting a merge in cases where it should have."
+      RenderBlock {P} at (0,71) size 784x76
+        RenderText {#text} at (0,0) size 769x76
+          text run at (0,0) width 768: "The failing case is where the incoming fragment has more than one block, and the selection being pasted into ends at the"
+          text run at (0,19) width 130: "end of a paragraph. "
+          text run at (130,19) width 639: "Any time the selection being pasted into ends at the end of a paragraph, deleting will leave leave a) a"
+          text run at (0,38) width 374: "br or b) an empty block at the end of the deleted selection. "
+          text run at (374,38) width 355: "So, not merging will leave an extraneous empty line or a"
+          text run at (0,57) width 261: "collapsed block after the paste operation."
+      RenderBlock {DIV} at (2,161) size 780x50 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (3,3) size 774x21 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 8x19
+            text run at (1,1) width 8: "b"
+          RenderText {#text} at (9,1) size 20x19
+            text run at (9,1) width 20: "foo"
+        RenderBlock {DIV} at (3,26) size 774x21 [border: (1px solid #000000)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: "bar"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of child 2 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt
new file mode 100644 (file)
index 0000000..a8e97cc
--- /dev/null
@@ -0,0 +1,40 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 750x57
+          text run at (0,0) width 750: "When ReplaceSelectionCommand deletes the current selection, it should request that the deletion do a merge in some"
+          text run at (0,19) width 740: "cases (normally, though, it should ask that a merge not be done, because a merge will cause information about block"
+          text run at (0,38) width 121: "nesting to be lost). "
+          text run at (121,38) width 375: "It wasn't requesting a merge in cases where it should have."
+      RenderBlock {P} at (0,71) size 784x76
+        RenderText {#text} at (0,0) size 769x76
+          text run at (0,0) width 768: "The failing case is where the incoming fragment has more than one block, and the selection being pasted into ends at the"
+          text run at (0,19) width 130: "end of a paragraph. "
+          text run at (130,19) width 639: "Any time the selection being pasted into ends at the end of a paragraph, deleting will leave leave a) a"
+          text run at (0,38) width 374: "br or b) an empty block at the end of the deleted selection. "
+          text run at (374,38) width 355: "So, not merging will leave an extraneous empty line or a"
+          text run at (0,57) width 261: "collapsed block after the paste operation."
+      RenderBlock {DIV} at (2,161) size 780x50 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (3,3) size 774x21 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 8x19
+            text run at (1,1) width 8: "b"
+          RenderText {#text} at (9,1) size 20x19
+            text run at (9,1) width 20: "foo"
+        RenderBlock (anonymous) at (1,26) size 778x0
+        RenderBlock {DIV} at (3,26) size 774x21 [border: (1px solid #000000)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: "bar"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of child 2 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt
new file mode 100644 (file)
index 0000000..a817dc7
--- /dev/null
@@ -0,0 +1,25 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 (4,0) size 776x56 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (5,5) size 766x21 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 4x19
+            text run at (1,1) width 4: "f"
+          RenderText {#text} at (5,1) size 20x19
+            text run at (5,1) width 20: "foo"
+        RenderBlock (anonymous) at (1,30) size 774x0
+        RenderBlock {DIV} at (5,30) size 766x21 [border: (1px solid #0000FF)]
+          RenderBR {BR} at (1,1) size 0x19
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of child 2 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt
new file mode 100644 (file)
index 0000000..db656c6
--- /dev/null
@@ -0,0 +1,34 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 763x38
+          text run at (0,0) width 763: "This tests one of the cases where it is necessary for paste to merge the last paragraph in the fragment being pasted with"
+          text run at (0,19) width 353: "the content after the position where the paste will occur."
+      RenderBlock {DIV} at (0,52) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderInline {SPAN} at (0,0) size 4x19
+            RenderText {#text} at (0,0) size 4x19
+              text run at (0,0) width 4: "f"
+        RenderBlock (anonymous) at (0,19) size 784x0
+        RenderBlock (anonymous) at (0,19) size 784x38
+          RenderInline {SPAN} at (0,0) size 39x38
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+            RenderBR {BR} at (21,14) size 0x0
+            RenderText {#text} at (0,19) size 23x19
+              text run at (0,19) width 23: "baz"
+            RenderText {#text} at (23,19) size 16x19
+              text run at (23,19) width 16: "oo"
+caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt
new file mode 100644 (file)
index 0000000..723e52f
--- /dev/null
@@ -0,0 +1,36 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 763x38
+          text run at (0,0) width 763: "This tests one of the cases where it is necessary for paste to merge the last paragraph in the fragment being pasted with"
+          text run at (0,19) width 353: "the content after the position where the paste will occur."
+      RenderBlock {DIV} at (0,52) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderInline {SPAN} at (0,0) size 4x19
+            RenderText {#text} at (0,0) size 4x19
+              text run at (0,0) width 4: "f"
+        RenderBlock (anonymous) at (0,19) size 784x0
+        RenderBlock (anonymous) at (0,19) size 784x38
+          RenderInline {SPAN} at (0,0) size 39x38
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+            RenderBR {BR} at (21,14) size 0x0
+            RenderText {#text} at (0,19) size 23x19
+              text run at (0,19) width 23: "baz"
+            RenderText {#text} at (23,19) size 16x19
+              text run at (23,19) width 16: "oo"
+          RenderText {#text} at (39,19) size 21x19
+            text run at (39,19) width 21: "bar"
+caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt
new file mode 100644 (file)
index 0000000..4eb7fb8
--- /dev/null
@@ -0,0 +1,27 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 563x19
+          text run at (0,0) width 563: "The last paragraph of the incoming fragment should be in the same paragraph as 'three'."
+      RenderBlock {DIV} at (0,33) size 784x38
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 28x19
+            text run at (0,0) width 28: "one "
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: "two"
+          RenderText {#text} at (22,0) size 33x19
+            text run at (22,0) width 33: "three"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt
new file mode 100644 (file)
index 0000000..fb8ad70
--- /dev/null
@@ -0,0 +1,31 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 553x19
+          text run at (0,0) width 345: "Tests for a case where paste's end merge was failing. "
+          text run at (345,0) width 208: "You should see xfoo\\nbar\\nbazx."
+      RenderBlock {DIV} at (0,33) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+          RenderText {#text} at (7,0) size 20x19
+            text run at (7,0) width 20: "foo"
+        RenderBlock {DIV} at (0,19) size 784x19
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: "bar"
+        RenderBlock (anonymous) at (0,38) size 784x19
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "baz"
+          RenderText {#text} at (23,0) size 7x19
+            text run at (23,0) width 7: "x"
+caret: position 3 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt
new file mode 100644 (file)
index 0000000..ff773ff
--- /dev/null
@@ -0,0 +1,29 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 36 of #text > DIV > DIV > BODY > HTML > #document to 36 of #text > DIV > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 758x38
+          text run at (0,0) width 758: "Pasting a paragraph or less into a selection that spans multiple blocks should insert content into the block containing the"
+          text run at (0,19) width 132: "start of the selection."
+      RenderBlock {DIV} at (0,52) size 784x21
+        RenderBlock {DIV} at (0,0) size 784x21 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 31x19
+            text run at (1,1) width 31: "This "
+          RenderText {#text} at (32,1) size 236x19
+            text run at (32,1) width 236: "text should have a red border around"
+          RenderText {#text} at (268,1) size 15x19
+            text run at (268,1) width 15: " it."
+caret: position 36 of child 1 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt
new file mode 100644 (file)
index 0000000..1b9367d
--- /dev/null
@@ -0,0 +1,50 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 16 of #text > DIV > BODY > HTML > #document to 16 of #text > DIV > BODY > HTML > #document toDOMRange:range from 16 of #text > DIV > BODY > HTML > #document to 16 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > SPAN > DIV > BLOCKQUOTE > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BLOCKQUOTE > 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 784x578
+      RenderBlock {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 610x19
+          text run at (0,0) width 404: "This tests pasting a Mail blockquote at the start of a paragraph. "
+          text run at (404,0) width 206: "Blockquoting should be stripped."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderText {#text} at (0,0) size 110x19
+          text run at (0,0) width 110: "Blockquoted Text"
+        RenderText {#text} at (110,0) size 7x19
+          text run at (110,0) width 7: "x"
+      RenderBlock {P} at (0,66) size 784x38
+        RenderText {#text} at (0,0) size 758x38
+          text run at (0,0) width 288: "This tests pasting text into a Mail blockquote. "
+          text run at (288,0) width 470: "The last bit of content in the incoming fragment should be merged with the"
+          text run at (0,19) width 293: "paragraph after the position being pasted into."
+      RenderBlock {DIV} at (0,118) size 784x38
+        RenderBlock {BLOCKQUOTE} at (40,0) size 704x38
+          RenderBlock {DIV} at (0,0) size 704x19
+            RenderText {#text} at (0,0) size 78x19
+              text run at (0,0) width 78: "Blockquoted"
+            RenderInline {SPAN} at (0,0) size 20x19
+              RenderText {#text} at (78,0) size 20x19
+                text run at (78,0) width 20: "foo"
+          RenderBlock {DIV} at (0,19) size 704x19
+            RenderInline {SPAN} at (0,0) size 21x19
+              RenderText {#text} at (0,0) size 21x19
+                text run at (0,0) width 21: "bar"
+            RenderText {#text} at (21,0) size 32x19
+              text run at (21,0) width 32: " Text"
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 0 {BLOCKQUOTE} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt
new file mode 100644 (file)
index 0000000..29b184c
--- /dev/null
@@ -0,0 +1,38 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > 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 {P} at (0,0) size 784x57
+        RenderText {#text} at (0,0) size 775x57
+          text run at (0,0) width 775: "This is a test for the merge that paste does of the last paragraph of the incoming fragment with content after the end of the"
+          text run at (0,19) width 177: "selection being pasted into. "
+          text run at (177,19) width 592: "A fragment that ends in with paragraph surrounded by a blue border is pasted into a selection"
+          text run at (0,38) width 327: "ending in a paragraph surrounded by a red border. "
+          text run at (327,38) width 171: "The red border should win."
+      RenderBlock {P} at (0,71) size 784x20
+        RenderInline {B} at (0,0) size 593x20
+          RenderText {#text} at (0,0) size 593x20
+            text run at (0,0) width 593: "The second paragraph should be surrounded by a red border before and after the test."
+      RenderBlock {DIV} at (0,105) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: "First "
+          RenderText {#text} at (32,0) size 66x19
+            text run at (32,0) width 66: "paragraph"
+        RenderBlock {DIV} at (0,19) size 784x21 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 27x19
+            text run at (1,1) width 27: "This"
+          RenderText {#text} at (28,1) size 276x19
+            text run at (28,1) width 276: " text should be surrounded by a red border."
+caret: position 4 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt
new file mode 100644 (file)
index 0000000..d4c03fc
--- /dev/null
@@ -0,0 +1,58 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > LI > UL > DIV > BODY > HTML > #document to 6 of #text > DIV > LI > UL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > LI > UL > DIV > BODY > HTML > #document to 3 of #text > DIV > LI > UL > 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 784x578
+      RenderBlock {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 514x19
+          text run at (0,0) width 514: "This tests pasting a list into a position that would normally result in an end merge."
+      RenderBlock {DIV} at (0,33) size 784x85
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+        RenderBlock {UL} at (0,33) size 784x19
+          RenderListItem {LI} at (40,0) size 744x19
+            RenderBlock {DIV} at (0,0) size 744x19
+              RenderListMarker at (-17,0) size 7x19: bullet
+              RenderText {#text} at (0,0) size 40x19
+                text run at (0,0) width 40: "Item 1"
+        RenderBlock (anonymous) at (0,66) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+      RenderBlock {P} at (0,132) size 784x38
+        RenderText {#text} at (0,0) size 777x38
+          text run at (0,0) width 237: "This tests pasting text into a list item. "
+          text run at (237,0) width 540: "The last bit of content in the incoming fragment should be merged with the paragraph"
+          text run at (0,19) width 223: "after the position being pasted into."
+      RenderBlock {DIV} at (0,184) size 784x38
+        RenderBlock {UL} at (0,0) size 784x38
+          RenderListItem {LI} at (40,0) size 744x38
+            RenderBlock {DIV} at (0,0) size 744x19
+              RenderListMarker at (-17,0) size 7x19: bullet
+              RenderText {#text} at (0,0) size 28x19
+                text run at (0,0) width 28: "Item"
+              RenderText {#text} at (28,0) size 20x19
+                text run at (28,0) width 20: "foo"
+            RenderBlock {DIV} at (0,19) size 744x19
+              RenderText {#text} at (0,0) size 21x19
+                text run at (0,0) width 21: "bar"
+              RenderText {#text} at (21,0) size 12x19
+                text run at (21,0) width 12: " 1"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {LI} of child 0 {UL} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt
new file mode 100644 (file)
index 0000000..e7e31d5
--- /dev/null
@@ -0,0 +1,65 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 1 of #text > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 3 of #text > DIV > TD > TR > TBODY > TABLE > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 528x19
+          text run at (0,0) width 528: "This tests pasting a table into a position that would normally result in an end merge."
+      RenderBlock {DIV} at (0,33) size 784x67
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+        RenderTable {TABLE} at (0,19) size 32x29 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 30x27
+            RenderTableRow {TR} at (0,2) size 30x23
+              RenderTableCell {TD} at (2,2) size 12x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: "1"
+              RenderTableCell {TD} at (16,2) size 12x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: "2"
+        RenderBlock (anonymous) at (0,48) size 784x19
+          RenderText {#text} at (0,0) size 7x19
+            text run at (0,0) width 7: "x"
+      RenderBlock {P} at (0,114) size 784x38
+        RenderText {#text} at (0,0) size 715x38
+          text run at (0,0) width 245: "This tests pasting text into a table cell. "
+          text run at (245,0) width 470: "The last bit of content in the incoming fragment should be merged with the"
+          text run at (0,19) width 293: "paragraph after the position being pasted into."
+      RenderBlock {DIV} at (0,166) size 784x48
+        RenderTable {TABLE} at (0,0) size 104x48 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 102x46
+            RenderTableRow {TR} at (0,2) size 102x42
+              RenderTableCell {TD} at (2,2) size 52x42 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBlock {DIV} at (2,2) size 48x19
+                  RenderText {#text} at (0,0) size 28x19
+                    text run at (0,0) width 28: "Item"
+                  RenderText {#text} at (28,0) size 20x19
+                    text run at (28,0) width 20: "foo"
+                RenderBlock {DIV} at (2,21) size 48x19
+                  RenderText {#text} at (0,0) size 21x19
+                    text run at (0,0) width 21: "bar"
+                  RenderText {#text} at (21,0) size 12x19
+                    text run at (21,0) width 12: " 1"
+              RenderTableCell {TD} at (56,11) size 44x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 40x19
+                  text run at (2,2) width 40: "Item 2"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt
new file mode 100644 (file)
index 0000000..9fcfb4c
--- /dev/null
@@ -0,0 +1,24 @@
+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 3 of #text > BLOCKQUOTE > DIV > BODY > HTML > #document to 3 of #text > BLOCKQUOTE > 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 784x578
+      RenderBlock {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 776x38
+          text run at (0,0) width 776: "This test makes sure that content inside a Mail blockquote in an incoming fragment isn't pulled out of the blockquote during"
+          text run at (0,19) width 39: "paste."
+      RenderBlock {P} at (0,52) size 784x20
+        RenderInline {B} at (0,0) size 573x20
+          RenderText {#text} at (0,0) size 573x20
+            text run at (0,0) width 573: "You should see 'bar' inside a blockquote (it will have a blue border around it if it is)."
+      RenderBlock {DIV} at (0,86) size 784x21
+        RenderBlock {BLOCKQUOTE} at (40,0) size 704x21 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: "bar"
+caret: position 3 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 4 {DIV} of child 2 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt
new file mode 100644 (file)
index 0000000..0a4c0a7
--- /dev/null
@@ -0,0 +1,25 @@
+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 3 of #text > LI > UL > DIV > BODY > HTML > #document to 3 of #text > LI > UL > 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 784x578
+      RenderBlock {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 685x19
+          text run at (0,0) width 685: "This test makes sure that content inside a list in an incoming fragment isn't pulled out of the list during paste."
+      RenderBlock {P} at (0,33) size 784x20
+        RenderInline {B} at (0,0) size 259x20
+          RenderText {#text} at (0,0) size 259x20
+            text run at (0,0) width 259: "You should see 'bar' inside a list item."
+      RenderBlock {DIV} at (0,67) size 784x19
+        RenderBlock {UL} at (0,0) size 784x19
+          RenderListItem {LI} at (40,0) size 744x19
+            RenderListMarker at (-17,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: "bar"
+caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt
new file mode 100644 (file)
index 0000000..6b2ad6a
--- /dev/null
@@ -0,0 +1,38 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > BODY > HTML > #document to 2 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > 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 (anonymous) at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 542x19
+          text run at (0,0) width 542: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered."
+        RenderBR {BR} at (542,14) size 0x0
+      RenderBlock {DIV} at (0,19) size 784x38
+        RenderText {#text} at (26,0) size 731x38
+          text run at (26,0) width 731: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail "
+          text run at (357,19) width 69: "assertions."
+      RenderBlock {DIV} at (0,57) size 784x49
+        RenderBlock {DIV} at (0,0) size 784x49
+          RenderTextControl {TEXTAREA} at (294,2) size 184x40 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+          RenderText {#text} at (480,30) size 4x19
+            text run at (480,30) width 4: " "
+          RenderInline {SPAN} at (0,0) size 7x19
+            RenderText {#text} at (484,30) size 7x19
+              text run at (484,30) width 7: "x"
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock (anonymous) at (0,106) size 784x0
+layer at (303,68) size 182x38
+  RenderBlock {DIV} at (1,1) size 182x38
+    RenderText {#text} at (3,0) size 4x19
+      text run at (3,0) width 4: " "
+caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt
new file mode 100644 (file)
index 0000000..95ec84c
--- /dev/null
@@ -0,0 +1,36 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > BODY > HTML > #document to 2 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > 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 (anonymous) at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 542x19
+          text run at (0,0) width 542: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered."
+        RenderBR {BR} at (542,14) size 0x0
+      RenderBlock {DIV} at (0,19) size 784x38
+        RenderText {#text} at (26,0) size 731x38
+          text run at (26,0) width 731: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail "
+          text run at (357,19) width 69: "assertions."
+      RenderBlock {DIV} at (0,57) size 784x29
+        RenderBlock {DIV} at (0,0) size 784x29
+          RenderTextControl {INPUT} at (302,2) size 168x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderText {#text} at (472,5) size 4x19
+            text run at (472,5) width 4: " "
+          RenderInline {SPAN} at (0,0) size 7x19
+            RenderText {#text} at (476,5) size 7x19
+              text run at (476,5) width 7: "x"
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock (anonymous) at (0,86) size 784x0
+layer at (313,70) size 162x19
+  RenderBlock {DIV} at (3,3) size 162x19
+caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt
new file mode 100644 (file)
index 0000000..cebd33b
--- /dev/null
@@ -0,0 +1,57 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > 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 784x271 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 115x31
+            text run at (0,33) width 115: "Bug fix for "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (115,33) size 274x31
+              text run at (115,33) width 274: "<rdar://problem/4035648>"
+          RenderText {#text} at (389,33) size 750x63
+            text run at (389,33) width 361: " REGRESSION (Mail): line feed in"
+            text run at (0,65) width 527: "source HTML file causes bad copy/paste behavior"
+        RenderBlock {DIV} at (14,127) size 756x130
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 558x31
+            text run at (0,33) width 558: "Should see the text self-documenting itself correctly: "
+          RenderBR {BR} at (558,56) size 0x0
+          RenderInline {B} at (0,0) size 52x33
+            RenderText {#text} at (0,65) size 52x33
+              text run at (0,65) width 52: "bold"
+            RenderBR {BR} at (52,89) size 0x0
+          RenderText {#text} at (0,98) size 49x31
+            text run at (0,98) width 49: "plain"
+      RenderBlock {DIV} at (0,295) size 784x101
+        RenderBlock {DIV} at (0,0) size 784x101 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (2,2) size 0x31
+          RenderInline {B} at (0,0) size 52x33
+            RenderText {#text} at (2,34) size 52x33
+              text run at (2,34) width 52: "bold"
+            RenderBR {BR} at (54,58) size 0x0
+          RenderText {#text} at (2,67) size 49x31
+            text run at (2,67) width 49: "plain"
+caret: position 5 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt
new file mode 100644 (file)
index 0000000..2bbb934
--- /dev/null
@@ -0,0 +1,52 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > 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 784x302 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 115x31
+            text run at (0,33) width 115: "Bug fix for "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (115,33) size 274x31
+              text run at (115,33) width 274: "<rdar://problem/4038267>"
+          RenderText {#text} at (389,33) size 699x63
+            text run at (389,33) width 310: " REGRESSION (Mail): Crash"
+            text run at (0,65) width 404: "copying and pasting end of paragraph."
+        RenderBlock {DIV} at (14,127) size 756x161
+          RenderBlock (anonymous) at (0,0) size 756x97
+            RenderText {#text} at (0,0) size 214x33
+              text run at (0,0) width 214: "Expected Results: "
+            RenderBR {BR} at (214,24) size 0x0
+            RenderText {#text} at (0,33) size 753x63
+              text run at (0,33) width 753: "Should see this content in the red box below (insertion point must be on"
+              text run at (0,65) width 367: "the second line, right before \"bar\"):"
+          RenderBlock {DIV} at (0,97) size 756x32
+            RenderText {#text} at (0,0) size 33x31
+              text run at (0,0) width 33: "foo"
+          RenderBlock {DIV} at (0,129) size 756x32
+            RenderText {#text} at (0,0) size 34x31
+              text run at (0,0) width 34: "bar"
+      RenderBlock {DIV} at (0,326) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 33x31
+              text run at (0,0) width 33: "foo"
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderText {#text} at (0,0) size 34x31
+              text run at (0,0) width 34: "bar"
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt
new file mode 100644 (file)
index 0000000..ad5597a
--- /dev/null
@@ -0,0 +1,80 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 5 of #text > LI > UL > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > LI > UL > DIV > LI > UL > DIV > DIV > BODY > HTML > #document to 1 of #text > LI > UL > DIV > LI > UL > DIV > 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 784x374 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 115x31
+            text run at (0,33) width 115: "Bug fix for "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (115,33) size 274x31
+              text run at (115,33) width 274: "<rdar://problem/4039777>"
+          RenderText {#text} at (389,33) size 689x63
+            text run at (389,33) width 300: " Pasting particular snippet of"
+            text run at (0,65) width 677: "HTML containing list items and a link creates too many list items"
+        RenderBlock {DIV} at (14,127) size 756x209
+          RenderBlock (anonymous) at (0,0) size 756x65
+            RenderText {#text} at (0,0) size 214x33
+              text run at (0,0) width 214: "Expected Results: "
+            RenderBR {BR} at (214,24) size 0x0
+            RenderText {#text} at (0,33) size 159x31
+              text run at (0,33) width 159: "Should match: "
+            RenderBR {BR} at (159,56) size 0x0
+          RenderBlock {UL} at (0,89) size 756x32
+            RenderListItem {LI} at (40,0) size 716x32
+              RenderListMarker at (-23,0) size 10x31: bullet
+              RenderText {#text} at (700,0) size 16x31
+                text run at (700,0) width 16: "A"
+          RenderBlock {DIV} at (0,145) size 756x64
+            RenderBlock {UL} at (0,0) size 756x64
+              RenderListItem {LI} at (40,0) size 716x64
+                RenderListMarker at (-23,0) size 10x31: bullet
+                RenderInline {A} at (0,0) size 16x31 [color=#0000EE]
+                  RenderText {#text} at (0,0) size 16x31
+                    text run at (0,0) width 16: "B"
+                RenderText {#text} at (16,0) size 7x31
+                  text run at (16,0) width 7: " "
+                RenderBR {BR} at (0,0) size 0x0
+                RenderText {#text} at (0,32) size 17x31
+                  text run at (0,32) width 17: "C"
+      RenderBlock {DIV} at (0,398) size 784x180
+        RenderBlock {DIV} at (0,0) size 784x180 [border: (2px solid #FF0000)]
+          RenderBlock {UL} at (2,26) size 780x128
+            RenderListItem {LI} at (40,0) size 740x128
+              RenderBlock (anonymous) at (0,0) size 740x32
+                RenderListMarker at (-23,0) size 10x31: bullet
+              RenderBlock {UL} at (0,32) size 740x32
+                RenderListItem {LI} at (40,0) size 700x32
+                  RenderListMarker at (-23,0) size 10x31: white bullet
+                  RenderText {#text} at (684,0) size 16x31
+                    text run at (684,0) width 16: "A"
+              RenderBlock {DIV} at (0,64) size 740x64
+                RenderBlock {UL} at (0,0) size 740x64
+                  RenderListItem {LI} at (40,0) size 700x64
+                    RenderListMarker at (-23,0) size 10x31: white bullet
+                    RenderInline {A} at (0,0) size 16x31 [color=#0000EE]
+                      RenderText {#text} at (677,0) size 16x31
+                        text run at (677,0) width 16: "B"
+                    RenderText {#text} at (693,0) size 7x31
+                      text run at (693,0) width 7: " "
+                    RenderBR {BR} at (700,23) size 0x0
+                    RenderText {#text} at (683,32) size 17x31
+                      text run at (683,32) width 17: "C"
+              RenderBlock (anonymous) at (0,128) size 740x0
+          RenderBlock {DIV} at (2,178) size 780x0
+            RenderBlock {UL} at (0,0) size 780x0
+caret: position 1 of child 3 {#text} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 0 {LI} of child 1 {UL} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt
new file mode 100644 (file)
index 0000000..843dfed
--- /dev/null
@@ -0,0 +1,13 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 360x19
+          text run at (0,0) width 360: "This tests pasting a blockquote into an empty paragraph."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 178x19
+            text run at (22,0) width 178: "This should be blockquoted."
+caret: position 27 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt
new file mode 100644 (file)
index 0000000..f25cfc8
--- /dev/null
@@ -0,0 +1,14 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 370x19
+          text run at (0,0) width 370: "This tests pasting a blockquote at the start of a paragraph."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderText {#text} at (0,0) size 202x19
+          text run at (0,0) width 202: "This should not be blockquoted."
+        RenderText {#text} at (202,0) size 206x19
+          text run at (202,0) width 206: " This should not be blockquoted."
+caret: position 31 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt
new file mode 100644 (file)
index 0000000..1cd4d2c
--- /dev/null
@@ -0,0 +1,24 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 395x19
+          text run at (0,0) width 395: "This tests pasting a blockquote into the middle of a paragraph."
+      RenderBlock {DIV} at (0,33) size 784x57
+        RenderBlock (anonymous) at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 202x19
+            text run at (0,0) width 202: "This should not be blockquoted."
+          RenderText {#text} at (202,0) size 206x19
+            text run at (202,0) width 206: " This should not be blockquoted."
+        RenderBlock {BLOCKQUOTE} at (0,19) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 178x19
+            text run at (22,0) width 178: "This should be blockquoted."
+          RenderBR {BR} at (200,14) size 0x0
+        RenderBlock (anonymous) at (0,38) size 784x19
+          RenderText {#text} at (0,0) size 202x19
+            text run at (0,0) width 202: "This should not be blockquoted."
+          RenderText {#text} at (202,0) size 206x19
+            text run at (202,0) width 206: " This should not be blockquoted."
+caret: position 31 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt
new file mode 100644 (file)
index 0000000..c2388dc
--- /dev/null
@@ -0,0 +1,51 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045511>"
+          RenderText {#text} at (445,33) size 749x63
+            text run at (445,33) width 304: " Copying and pasting end-of-"
+            text run at (0,65) width 572: "paragraph selection puts insertion point in wrong place"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 752x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 752: "\"line one\" and \"line two\". The insertion point must be at the start of \"line"
+            text run at (0,97) width 53: "two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 82x31
+            text run at (2,2) width 82: "line one"
+          RenderBR {BR} at (84,25) size 0x0
+          RenderText {#text} at (2,34) size 80x31
+            text run at (2,34) width 80: "line two"
+caret: position 0 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt
new file mode 100644 (file)
index 0000000..568c89c
--- /dev/null
@@ -0,0 +1,51 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045511>"
+          RenderText {#text} at (445,33) size 749x63
+            text run at (445,33) width 304: " Copying and pasting end-of-"
+            text run at (0,65) width 572: "paragraph selection puts insertion point in wrong place"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 752x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 752: "\"line one\" and \"line two\". The insertion point must be at the start of \"line"
+            text run at (0,97) width 53: "two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 82x31
+              text run at (0,0) width 82: "line one"
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderText {#text} at (0,0) size 80x31
+              text run at (0,0) width 80: "line two"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt
new file mode 100644 (file)
index 0000000..068ec48
--- /dev/null
@@ -0,0 +1,51 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045511>"
+          RenderText {#text} at (445,33) size 749x63
+            text run at (445,33) width 304: " Copying and pasting end-of-"
+            text run at (0,65) width 572: "paragraph selection puts insertion point in wrong place"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 752x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 752: "\"line one\" and \"line two\". The insertion point must be at the start of \"line"
+            text run at (0,97) width 53: "two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 82x31
+              text run at (0,0) width 82: "line one"
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderText {#text} at (0,0) size 80x31
+              text run at (0,0) width 80: "line two"
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt
new file mode 100644 (file)
index 0000000..ca3eb2e
--- /dev/null
@@ -0,0 +1,52 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045511>"
+          RenderText {#text} at (445,33) size 749x63
+            text run at (445,33) width 304: " Copying and pasting end-of-"
+            text run at (0,65) width 572: "paragraph selection puts insertion point in wrong place"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 752x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 752: "\"line one\" and \"line two\". The insertion point must be at the start of \"line"
+            text run at (0,97) width 53: "two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x64
+            RenderBlock (anonymous) at (0,0) size 780x32
+              RenderText {#text} at (0,0) size 82x31
+                text run at (0,0) width 82: "line one"
+            RenderBlock {DIV} at (0,32) size 780x32
+              RenderText {#text} at (0,0) size 80x31
+                text run at (0,0) width 80: "line two"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt
new file mode 100644 (file)
index 0000000..cb3258e
--- /dev/null
@@ -0,0 +1,52 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of #text > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045511>"
+          RenderText {#text} at (445,33) size 749x63
+            text run at (445,33) width 304: " Copying and pasting end-of-"
+            text run at (0,65) width 572: "paragraph selection puts insertion point in wrong place"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 752x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 752: "\"line one\" and \"line two\". The insertion point must be at the start of \"line"
+            text run at (0,97) width 53: "two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x64
+            RenderBlock {DIV} at (0,0) size 780x32
+              RenderText {#text} at (0,0) size 82x31
+                text run at (0,0) width 82: "line one"
+            RenderBlock (anonymous) at (0,32) size 780x32
+              RenderText {#text} at (0,0) size 80x31
+                text run at (0,0) width 80: "line two"
+caret: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt
new file mode 100644 (file)
index 0000000..5858e0d
--- /dev/null
@@ -0,0 +1,54 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045513>"
+          RenderText {#text} at (445,33) size 747x63
+            text run at (445,33) width 222: " Copying and pasting"
+            text run at (0,65) width 747: "selection starting at end of paragraph can incorrectly remove line break"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 693: "\"line one\" and \"line two\". The insertion point must be after the first"
+            text run at (0,97) width 284: "character (\"l\") of \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 82x31
+            text run at (2,2) width 82: "line one"
+          RenderBR {BR} at (84,25) size 0x0
+          RenderText {#text} at (2,34) size 5x31
+            text run at (2,34) width 5: "l"
+          RenderText {#text} at (7,34) size 75x31
+            text run at (7,34) width 75: "ine two"
+caret: position 1 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt
new file mode 100644 (file)
index 0000000..541582b
--- /dev/null
@@ -0,0 +1,55 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045513>"
+          RenderText {#text} at (445,33) size 747x63
+            text run at (445,33) width 222: " Copying and pasting"
+            text run at (0,65) width 747: "selection starting at end of paragraph can incorrectly remove line break"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 693: "\"line one\" and \"line two\". The insertion point must be after the first"
+            text run at (0,97) width 284: "character (\"l\") of \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 82x31
+              text run at (0,0) width 82: "line one"
+            RenderBR {BR} at (82,23) size 0x0
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderText {#text} at (0,0) size 5x31
+              text run at (0,0) width 5: "l"
+            RenderText {#text} at (5,0) size 75x31
+              text run at (5,0) width 75: "ine two"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt
new file mode 100644 (file)
index 0000000..5f112bd
--- /dev/null
@@ -0,0 +1,55 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045513>"
+          RenderText {#text} at (445,33) size 747x63
+            text run at (445,33) width 222: " Copying and pasting"
+            text run at (0,65) width 747: "selection starting at end of paragraph can incorrectly remove line break"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 693: "\"line one\" and \"line two\". The insertion point must be after the first"
+            text run at (0,97) width 284: "character (\"l\") of \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 82x31
+              text run at (0,0) width 82: "line one"
+          RenderBlock (anonymous) at (2,34) size 780x0
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderText {#text} at (0,0) size 5x31
+              text run at (0,0) width 5: "l"
+            RenderText {#text} at (5,0) size 75x31
+              text run at (5,0) width 75: "ine two"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt
new file mode 100644 (file)
index 0000000..d5c4115
--- /dev/null
@@ -0,0 +1,56 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045513>"
+          RenderText {#text} at (445,33) size 747x63
+            text run at (445,33) width 222: " Copying and pasting"
+            text run at (0,65) width 747: "selection starting at end of paragraph can incorrectly remove line break"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 693: "\"line one\" and \"line two\". The insertion point must be after the first"
+            text run at (0,97) width 284: "character (\"l\") of \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x64
+            RenderBlock (anonymous) at (0,0) size 780x32
+              RenderText {#text} at (0,0) size 82x31
+                text run at (0,0) width 82: "line one"
+              RenderBR {BR} at (82,23) size 0x0
+            RenderBlock {DIV} at (0,32) size 780x32
+              RenderText {#text} at (0,0) size 5x31
+                text run at (0,0) width 5: "l"
+              RenderText {#text} at (5,0) size 75x31
+                text run at (5,0) width 75: "ine two"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt
new file mode 100644 (file)
index 0000000..ca44559
--- /dev/null
@@ -0,0 +1,55 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4045513>"
+          RenderText {#text} at (445,33) size 747x63
+            text run at (445,33) width 222: " Copying and pasting"
+            text run at (0,65) width 747: "selection starting at end of paragraph can incorrectly remove line break"
+        RenderBlock {DIV} at (14,127) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x95
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 693: "\"line one\" and \"line two\". The insertion point must be after the first"
+            text run at (0,97) width 284: "character (\"l\") of \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x64
+            RenderBlock {DIV} at (0,0) size 780x32
+              RenderText {#text} at (0,0) size 82x31
+                text run at (0,0) width 82: "line one"
+            RenderBlock (anonymous) at (0,32) size 780x32
+              RenderText {#text} at (0,0) size 5x31
+                text run at (0,0) width 5: "l"
+              RenderText {#text} at (5,0) size 75x31
+                text run at (5,0) width 75: "ine two"
+caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt
new file mode 100644 (file)
index 0000000..127b8b9
--- /dev/null
@@ -0,0 +1,48 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 6 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document toDOMRange:range from 21 of #text > LI > OL > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > LI > OL > 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 784x300 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x32
+          RenderInline {SPAN} at (0,0) size 156x31
+            RenderText {#text} at (0,0) size 156x31
+              text run at (0,0) width 156: "Empty list item"
+          RenderText {#text} at (0,0) size 0x0
+        RenderBlock {P} at (14,70) size 756x0
+        RenderBlock {OL} at (14,70) size 756x192
+          RenderListItem {LI} at (40,0) size 716x32
+            RenderListMarker at (-34,0) size 27x31: "1"
+            RenderText {#text} at (0,0) size 230x31
+              text run at (0,0) width 230: "I should be number 1."
+          RenderListItem {LI} at (40,32) size 716x32
+            RenderListMarker at (-34,0) size 27x31: "2"
+          RenderListItem {LI} at (40,64) size 716x128
+            RenderBlock (anonymous) at (0,0) size 716x32
+              RenderListMarker at (-34,0) size 27x31: "3"
+              RenderText {#text} at (0,0) size 230x31
+                text run at (0,0) width 230: "I should be number 3."
+            RenderBlock {OL} at (0,32) size 716x96
+              RenderListItem {LI} at (40,0) size 676x32
+                RenderListMarker at (-34,0) size 27x31: "1"
+                RenderText {#text} at (0,0) size 230x31
+                  text run at (0,0) width 230: "I should be number 1."
+              RenderListItem {LI} at (40,32) size 676x32
+                RenderListMarker at (-34,0) size 27x31: "2"
+              RenderListItem {LI} at (40,64) size 676x32
+                RenderListMarker at (-34,0) size 27x31: "3"
+                RenderText {#text} at (0,0) size 230x31
+                  text run at (0,0) width 230: "I should be number 3."
+caret: position 21 of child 0 {#text} of child 2 {LI} of child 1 {OL} of child 5 {LI} of child 4 {OL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt
new file mode 100644 (file)
index 0000000..c89e417
--- /dev/null
@@ -0,0 +1,50 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:b replacingDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > 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 784x239 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x65
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 291x31
+            text run at (0,33) width 291: "Pasting and matching style."
+        RenderBlock {DIV} at (14,95) size 756x130
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 729x63
+            text run at (0,33) width 729: "The pasted letter should match the style of the preexisting bold letter."
+            text run at (0,65) width 480: "Should see this content in the red box below: "
+          RenderBR {BR} at (480,88) size 0x0
+          RenderInline {B} at (0,0) size 28x33
+            RenderText {#text} at (0,97) size 28x33
+              text run at (0,97) width 28: "ab"
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,263) size 784x37
+        RenderBlock {DIV} at (0,0) size 784x37 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 28x33
+            RenderText {#text} at (2,2) size 13x33
+              text run at (2,2) width 13: "a"
+            RenderText {#text} at (15,2) size 15x33
+              text run at (15,2) width 15: "b"
+        RenderBlock (anonymous) at (0,37) size 784x0
+caret: position 1 of child 1 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt
new file mode 100644 (file)
index 0000000..9420844
--- /dev/null
@@ -0,0 +1,50 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:hello replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > B > DIV > DIV > BODY > HTML > #document to 5 of #text > B > DIV > 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 784x271 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 738x63
+            text run at (0,33) width 738: "Pasting and matching style when there is nothing typed, but the typing"
+            text run at (0,65) width 554: "style is set to bold. This test was created after fixing "
+          RenderInline {A} at (0,0) size 91x31 [color=#0000EE]
+            RenderText {#text} at (554,65) size 91x31
+              text run at (554,65) width 91: "3976872"
+          RenderText {#text} at (645,65) size 7x31
+            text run at (645,65) width 7: "."
+        RenderBlock {DIV} at (14,127) size 756x130
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 754x63
+            text run at (0,33) width 754: "The pasted word should match the current typing style. In this case, the"
+            text run at (0,65) width 754: "typing style is set to bold. Should see this content in the red box below: "
+          RenderBR {BR} at (754,88) size 0x0
+          RenderInline {B} at (0,0) size 57x33
+            RenderText {#text} at (0,97) size 57x33
+              text run at (0,97) width 57: "hello"
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,295) size 784x37
+        RenderBlock {DIV} at (0,0) size 784x37 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 57x33
+            RenderText {#text} at (2,2) size 57x33
+              text run at (2,2) width 57: "hello"
+caret: position 5 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
new file mode 100644 (file)
index 0000000..4bb5034
--- /dev/null
@@ -0,0 +1,60 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of PRE > DIV > DIV > BODY > HTML > #document to 0 of PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of PRE > DIV > DIV > BODY > HTML > #document to 0 of PRE > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > SPAN > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > SPAN > PRE > DIV > 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 784x348 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x97
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 751x63
+            text run at (0,33) width 751: "Copying and pasting content inside of a PRE tag. This test was created"
+            text run at (0,65) width 117: "after fixing "
+          RenderInline {A} at (0,0) size 91x31 [color=#0000EE]
+            RenderText {#text} at (117,65) size 91x31
+              text run at (117,65) width 91: "3918056"
+          RenderText {#text} at (208,65) size 7x31
+            text run at (208,65) width 7: "."
+        RenderBlock {DIV} at (14,127) size 756x183
+          RenderBlock (anonymous) at (0,0) size 756x97
+            RenderText {#text} at (0,0) size 214x33
+              text run at (0,0) width 214: "Expected Results: "
+            RenderBR {BR} at (214,24) size 0x0
+            RenderText {#text} at (0,33) size 749x63
+              text run at (0,33) width 749: "The PRE tag and the formatting of the text inside of the PRE should be"
+              text run at (0,65) width 602: "maintained. Should see this content in the red box below:"
+          RenderBlock {PRE} at (0,121) size 756x62
+            RenderText {#text} at (0,1) size 42x59
+              text run at (0,1) width 42: "foo"
+              text run at (42,1) width 0: " "
+              text run at (0,32) width 42: "bar"
+      RenderBlock {DIV} at (0,372) size 784x114
+        RenderBlock {DIV} at (0,0) size 784x114 [border: (2px solid #FF0000)]
+          RenderBlock {PRE} at (2,26) size 780x62
+            RenderBlock (anonymous) at (0,0) size 780x0
+              RenderInline {SPAN} at (0,0) size 0x0
+            RenderBlock (anonymous) at (0,0) size 780x62
+              RenderBlock {PRE} at (0,0) size 780x62
+                RenderText {#text} at (0,1) size 42x59
+                  text run at (0,1) width 42: "foo"
+                  text run at (42,1) width 0: " "
+                  text run at (0,32) width 42: "bar"
+            RenderBlock (anonymous) at (0,86) size 780x0
+              RenderInline {SPAN} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
new file mode 100644 (file)
index 0000000..f9dbb0d
--- /dev/null
@@ -0,0 +1,40 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of PRE > DIV > DIV > BODY > HTML > #document to 0 of PRE > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > SPAN > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > SPAN > PRE > DIV > 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 784x578
+      RenderBlock {DIV} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 147x19
+          text run at (0,0) width 147: "This is a layout test for "
+        RenderInline {A} at (0,0) size 150x19 [color=#0000EE]
+          RenderText {#text} at (147,0) size 150x19
+            text run at (147,0) width 150: "rdar://problem/4370209"
+        RenderText {#text} at (297,0) size 782x38
+          text run at (297,0) width 392: " \"Reproducible crash when pasting over whitespace:pre text\". "
+          text run at (689,0) width 93: "The text below"
+          text run at (0,19) width 269: "is selected, copied, and pasted over itself. "
+          text run at (269,19) width 203: "You'll see foo/nbar if successful."
+      RenderBlock {DIV} at (0,52) size 784x38
+        RenderBlock {DIV} at (0,0) size 784x38
+          RenderBlock {PRE} at (0,0) size 784x38
+            RenderBlock (anonymous) at (0,0) size 784x0
+              RenderInline {SPAN} at (0,0) size 0x0
+            RenderBlock (anonymous) at (0,0) size 784x38
+              RenderBlock {PRE} at (0,0) size 784x38
+                RenderText {#text} at (0,1) size 24x36
+                  text run at (0,1) width 24: "foo"
+                  text run at (24,1) width 0: " "
+                  text run at (0,20) width 24: "bar"
+            RenderBlock (anonymous) at (0,52) size 784x0
+              RenderInline {SPAN} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt
new file mode 100644 (file)
index 0000000..dfa73ce
--- /dev/null
@@ -0,0 +1,85 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 4 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of P > DIV > BODY > HTML > #document to 2 of P > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of P > DIV > BODY > HTML > #document to 2 of P > DIV > BODY > HTML > #document toDOMRange:range from 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document to 32 of #text > TD > TR > TBODY > TABLE > P > 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 784x220 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x32
+          RenderInline {SPAN} at (0,0) size 168x31
+            RenderText {#text} at (0,0) size 168x31
+              text run at (0,0) width 168: "Empty table cell"
+          RenderText {#text} at (0,0) size 0x0
+        RenderBlock {P} at (14,70) size 756x112
+          RenderTable {TABLE} at (0,0) size 287x56 [border: (2px outset #808080)]
+            RenderTableSection {TBODY} at (2,2) size 283x52
+              RenderTableRow {TR} at (0,2) size 283x23
+                RenderTableCell {TD} at (2,2) size 78x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 74x19
+                    text run at (2,2) width 74: "Left column"
+                RenderTableCell {TD} at (82,2) size 199x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 83x19
+                    text run at (2,2) width 83: "Right column"
+              RenderTableRow {TR} at (0,27) size 283x23
+                RenderTableCell {TD} at (2,36) size 78x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderTableCell {TD} at (82,27) size 199x23 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 195x19
+                    text run at (2,2) width 195: "I should be in the right column."
+          RenderTable {TABLE} at (0,56) size 287x56 [border: (2px outset #808080)]
+            RenderTableSection {TBODY} at (2,2) size 283x52
+              RenderTableRow {TR} at (0,2) size 283x23
+                RenderTableCell {TD} at (2,2) size 78x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 74x19
+                    text run at (2,2) width 74: "Left column"
+                RenderTableCell {TD} at (82,2) size 199x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 83x19
+                    text run at (2,2) width 83: "Right column"
+              RenderTableRow {TR} at (0,27) size 283x23
+                RenderTableCell {TD} at (2,36) size 78x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderTableCell {TD} at (82,27) size 199x23 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 195x19
+                    text run at (2,2) width 195: "I should be in the right column."
+caret: position 32 of child 0 {#text} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 3 {P} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt
new file mode 100644 (file)
index 0000000..20bd04d
--- /dev/null
@@ -0,0 +1,47 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 8 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 2 of TD > TR > TBODY > TABLE > 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 {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 299x19
+          text run at (0,0) width 299: "This tests pasting a table to replace some text. "
+        RenderInline {B} at (0,0) size 775x80
+          RenderText {#text} at (299,0) size 775x80
+            text run at (299,0) width 474: "It demonstrates two bugs: 1) selecting a table without also selecting "
+            text run at (0,20) width 775: "the line break after programmatically is impossible when its followed by a div because of the way DOM positions "
+            text run at (0,40) width 741: "are mapped to visible positions, 2) pasting content that ends in a table places the caret in the last table cell "
+            text run at (0,60) width 726: "instead of after the table, so the interchange newline is placed in the last table cell and not after the table."
+      RenderTable {TABLE} at (0,94) size 56x25
+        RenderTableSection {TBODY} at (0,0) size 56x25
+          RenderTableRow {TR} at (0,2) size 56x21
+            RenderTableCell {TD} at (2,2) size 26x21 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 24x19
+                text run at (1,1) width 24: "one"
+            RenderTableCell {TD} at (30,2) size 24x21 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 22x19
+                text run at (1,1) width 22: "two"
+      RenderBlock {DIV} at (0,119) size 784x44
+        RenderTable {TABLE} at (0,0) size 56x44
+          RenderTableSection {TBODY} at (0,0) size 56x44
+            RenderTableRow {TR} at (0,2) size 56x40
+              RenderTableCell {TD} at (2,11) size 26x21 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 24x19
+                  text run at (1,1) width 24: "one"
+              RenderTableCell {TD} at (30,2) size 24x40 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: "two"
+                RenderBR {BR} at (23,15) size 0x0
+                RenderBR {BR} at (1,20) size 0x19
+        RenderBlock (anonymous) at (0,44) size 784x0
+caret: position 0 of child 2 {BR} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt
new file mode 100644 (file)
index 0000000..0716ae5
--- /dev/null
@@ -0,0 +1,35 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 6 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 5 of #text > TD > TR > TBODY > TABLE > 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
+      RenderTable {TABLE} at (0,0) size 74x25
+        RenderTableSection {TBODY} at (0,0) size 74x25
+          RenderTableRow {TR} at (0,2) size 74x21
+            RenderTableCell {TD} at (2,2) size 32x21 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 30x19
+                text run at (1,1) width 30: "hello"
+            RenderTableCell {TD} at (36,2) size 36x21 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 34x19
+                text run at (1,1) width 34: "world"
+      RenderBlock {DIV} at (0,25) size 784x25
+        RenderTable {TABLE} at (0,0) size 74x25
+          RenderTableSection {TBODY} at (0,0) size 74x25
+            RenderTableRow {TR} at (0,2) size 74x21
+              RenderTableCell {TD} at (2,2) size 32x21 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 30x19
+                  text run at (1,1) width 30: "hello"
+              RenderTableCell {TD} at (36,2) size 36x21 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 34x19
+                  text run at (1,1) width 34: "world"
+        RenderBlock (anonymous) at (0,25) size 784x0
+caret: position 5 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt
new file mode 100644 (file)
index 0000000..574ec51
--- /dev/null
@@ -0,0 +1,88 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > 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 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 69x31
+          text run at (14,14) width 69: "There "
+        RenderText {#text} at (83,14) size 306x31
+          text run at (83,14) width 306: "is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 131x31
+          text run at (14,14) width 131: "Which taken"
+        RenderText {#text} at (145,14) size 306x31
+          text run at (145,14) width 306: "is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 131x31
+          text run at (14,14) width 131: "Which taken"
+        RenderText {#text} at (145,14) size 336x31
+          text run at (145,14) width 336: " at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,180) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 368x31
+          text run at (14,14) width 368: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,240) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 386x31
+          text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt
new file mode 100644 (file)
index 0000000..4628043
--- /dev/null
@@ -0,0 +1,138 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > 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 784x388 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x32
+          RenderText {#text} at (0,0) size 69x31
+            text run at (0,0) width 69: "There "
+          RenderText {#text} at (69,0) size 306x31
+            text run at (69,0) width 306: "is a tide in the affairs of men,"
+        RenderBlock {DIV} at (14,46) size 756x60 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 467x31
+            text run at (14,14) width 467: "Which taken at the flood leads on to fortune."
+        RenderBlock {DIV} at (14,106) size 756x268 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 728x0
+          RenderBlock {DIV} at (14,14) size 728x60 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,14) size 84x31
+              text run at (14,14) width 84: "Omitted"
+            RenderText {#text} at (98,14) size 306x31
+              text run at (98,14) width 306: "is a tide in the affairs of men,"
+          RenderBlock (anonymous) at (14,74) size 728x0
+          RenderBlock {DIV} at (14,74) size 728x60 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,14) size 467x31
+              text run at (14,14) width 467: "Which taken at the flood leads on to fortune."
+          RenderBlock {DIV} at (14,134) size 728x120 [border: (2px solid #FF0000)]
+            RenderBlock (anonymous) at (14,14) size 700x32
+              RenderText {#text} at (0,0) size 84x31
+                text run at (0,0) width 84: "Omitted"
+              RenderText {#text} at (84,0) size 284x31
+                text run at (84,0) width 284: ", all the voyage of their life,"
+            RenderBlock {DIV} at (14,46) size 700x60 [border: (2px solid #FF0000)]
+              RenderText {#text} at (14,14) size 386x31
+                text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 7 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt
new file mode 100644 (file)
index 0000000..6473584
--- /dev/null
@@ -0,0 +1,66 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document 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 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 69x31
+          text run at (14,14) width 69: "There "
+        RenderText {#text} at (83,14) size 306x31
+          text run at (83,14) width 306: "is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 467x31
+          text run at (14,14) width 467: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 368x31
+          text run at (14,14) width 368: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,180) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 386x31
+          text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt
new file mode 100644 (file)
index 0000000..3fe4b35
--- /dev/null
@@ -0,0 +1,71 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document 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
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+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 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 69x31
+          text run at (14,14) width 69: "There "
+        RenderText {#text} at (83,14) size 306x31
+          text run at (83,14) width 306: "is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 306x31
+          text run at (14,14) width 306: "is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 467x31
+          text run at (14,14) width 467: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,180) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 368x31
+          text run at (14,14) width 368: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,240) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 386x31
+          text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt
new file mode 100644 (file)
index 0000000..a1ae1d0
--- /dev/null
@@ -0,0 +1,70 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+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 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 375x31
+          text run at (14,14) width 375: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 375x31
+          text run at (14,14) width 375: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 467x31
+          text run at (14,14) width 467: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,180) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 368x31
+          text run at (14,14) width 368: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,240) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 386x31
+          text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt
new file mode 100644 (file)
index 0000000..4813996
--- /dev/null
@@ -0,0 +1,73 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+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 784x272 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x64
+          RenderText {#text} at (0,0) size 375x31
+            text run at (0,0) width 375: "There is a tide in the affairs of men,"
+          RenderBR {BR} at (375,23) size 0x0
+          RenderText {#text} at (0,32) size 375x31
+            text run at (0,32) width 375: "There is a tide in the affairs of men,"
+        RenderBlock {DIV} at (14,78) size 756x180 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 728x32
+            RenderText {#text} at (0,0) size 467x31
+              text run at (0,0) width 467: "Which taken at the flood leads on to fortune."
+          RenderBlock {DIV} at (14,46) size 728x120 [border: (2px solid #FF0000)]
+            RenderBlock (anonymous) at (14,14) size 700x32
+              RenderText {#text} at (0,0) size 368x31
+                text run at (0,0) width 368: "Omitted, all the voyage of their life,"
+            RenderBlock {DIV} at (14,46) size 700x60 [border: (2px solid #FF0000)]
+              RenderText {#text} at (14,14) size 386x31
+                text run at (14,14) width 386: "Is bound in shallows and in miseries."
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt
new file mode 100644 (file)
index 0000000..62c3331
--- /dev/null
@@ -0,0 +1,111 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > 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 784x152 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x32
+          RenderText {#text} at (0,0) size 368x31
+            text run at (0,0) width 368: "Omitted, all the voyage of their life,"
+        RenderBlock {DIV} at (14,46) size 756x60 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 386x31
+            text run at (14,14) width 386: "Is bound in shallows and in miseries."
+        RenderBlock (anonymous) at (14,106) size 756x32
+          RenderText {#text} at (0,0) size 17x31
+            text run at (0,0) width 17: "U"
+      RenderBlock (anonymous) at (0,152) size 784x0
+      RenderBlock {DIV} at (0,152) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 17x31
+          text run at (14,14) width 17: "U"
+        RenderText {#text} at (31,14) size 398x31
+          text run at (31,14) width 398: "pon such a full sea are we now afloat,"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt
new file mode 100644 (file)
index 0000000..43907fb
--- /dev/null
@@ -0,0 +1,71 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 38 of #text > DIV > BODY > HTML > #document to 38 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) 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: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 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
+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 784x124 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 375x31
+          text run at (14,14) width 375: "There is a tide in the affairs of men."
+        RenderBR {BR} at (389,37) size 0x0
+        RenderBR {BR} at (14,46) size 0x31
+        RenderText {#text} at (14,78) size 80x31
+          text run at (14,78) width 80: "of men."
+        RenderText {#text} at (94,78) size 80x31
+          text run at (94,78) width 80: "of men."
+      RenderBlock (anonymous) at (0,124) size 784x0
+caret: position 7 of child 4 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt
new file mode 100644 (file)
index 0000000..7cbcb8f
--- /dev/null
@@ -0,0 +1,50 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 6 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P > BODY > HTML > #document to 0 of P > BODY > HTML > #document toDOMRange:range from 0 of #text > B > FONT > P > BODY > HTML > #document to 5 of #text > B > FONT > P > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > B > FONT > P > BODY > HTML > #document to 5 of #text > B > FONT > P > BODY > HTML > #document toDOMRange:range from 0 of P > BODY > HTML > #document to 0 of P > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > BODY > HTML > #document to 0 of P > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > B > FONT > P > SPAN > B > FONT > P > BODY > HTML > #document to 5 of #text > B > FONT > P > SPAN > B > FONT > P > 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 784x578
+      RenderBlock {P} at (0,0) size 784x20
+        RenderInline {FONT} at (0,0) size 34x19
+          RenderInline {B} at (0,0) size 34x20
+            RenderText {#text} at (0,0) size 34x20
+              text run at (0,0) width 34: "hello"
+      RenderBlock {P} at (0,34) size 784x20
+        RenderInline {FONT} at (0,0) size 35x19
+          RenderInline {B} at (0,0) size 35x20
+            RenderText {#text} at (0,0) size 35x20
+              text run at (0,0) width 35: "there"
+      RenderBlock {P} at (0,68) size 784x54
+        RenderBlock (anonymous) at (0,0) size 784x0
+          RenderInline {FONT} at (0,0) size 0x0
+            RenderInline {B} at (0,0) size 0x0
+              RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,0) size 784x54
+          RenderBlock {P} at (0,0) size 784x20
+            RenderInline {FONT} at (0,0) size 34x19
+              RenderInline {B} at (0,0) size 34x20
+                RenderText {#text} at (0,0) size 34x20
+                  text run at (0,0) width 34: "hello"
+          RenderBlock {P} at (0,34) size 784x20
+            RenderInline {FONT} at (0,0) size 35x19
+              RenderInline {B} at (0,0) size 35x20
+                RenderText {#text} at (0,0) size 35x20
+                  text run at (0,0) width 35: "there"
+        RenderBlock (anonymous) at (0,68) size 784x0
+          RenderInline {FONT} at (0,0) size 0x0
+            RenderInline {B} at (0,0) size 0x0
+              RenderInline {SPAN} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 0 {B} of child 0 {FONT} of child 1 {P} of child 0 {SPAN} of child 0 {B} of child 0 {FONT} of child 4 {P} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt
new file mode 100644 (file)
index 0000000..b43c994
--- /dev/null
@@ -0,0 +1,46 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > DIV > SPAN > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > SPAN > 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 (anonymous) at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 87x19
+          text run at (0,0) width 87: "See this bug: "
+        RenderInline {A} at (0,0) size 166x19 [color=#0000EE]
+          RenderText {#text} at (87,0) size 166x19
+            text run at (87,0) width 166: "<rdar://problem/3918712>"
+        RenderText {#text} at (253,0) size 744x38
+          text run at (253,0) width 491: " \"Paste as Quotation\" in Mail just pastes (<blockquote> tag seems to be lost). "
+          text run at (0,19) width 483: "Should see two boxes with blockquoted \"foo\" text, followed by an empty box."
+        RenderBR {BR} at (483,33) size 0x0
+      RenderBlock {DIV} at (0,38) size 784x108 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x32
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x32
+            RenderText {#text} at (0,0) size 33x31
+              text run at (0,0) width 33: "foo"
+      RenderBlock {DIV} at (0,146) size 784x168 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (14,14) size 756x140
+          RenderBlock {DIV} at (0,0) size 756x140 [border: (2px solid #FF0000)]
+            RenderBlock {DIV} at (14,38) size 728x88
+              RenderBlock {BLOCKQUOTE} at (40,0) size 648x32
+                RenderText {#text} at (0,0) size 33x31
+                  text run at (0,0) width 33: "foo"
+              RenderBlock {DIV} at (0,56) size 728x32
+                RenderBR {BR} at (0,0) size 0x31
+        RenderBlock (anonymous) at (14,154) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of child 0 {DIV} of child 0 {SPAN} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt
new file mode 100644 (file)
index 0000000..ceb853a
--- /dev/null
@@ -0,0 +1,43 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+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 (anonymous) at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 87x19
+          text run at (0,0) width 87: "See this bug: "
+        RenderInline {A} at (0,0) size 166x19 [color=#0000EE]
+          RenderText {#text} at (87,0) size 166x19
+            text run at (87,0) width 166: "<rdar://problem/3918712>"
+        RenderText {#text} at (253,0) size 744x38
+          text run at (253,0) width 491: " \"Paste as Quotation\" in Mail just pastes (<blockquote> tag seems to be lost). "
+          text run at (0,19) width 566: "Should see two boxes with blockquoted \"foo\" text, followed by a box with an unquoted \"x\"."
+      RenderBlock {DIV} at (0,38) size 784x24
+      RenderBlock {DIV} at (0,62) size 784x108 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x32
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x32
+            RenderText {#text} at (0,0) size 33x31
+              text run at (0,0) width 33: "foo"
+      RenderBlock {DIV} at (0,170) size 784x108 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x32
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x32
+            RenderText {#text} at (0,0) size 33x31
+              text run at (0,0) width 33: "foo"
+      RenderBlock {DIV} at (0,278) size 784x60 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 12x31
+          text run at (14,14) width 12: "x"
+caret: position 0 of child 0 {#text} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt
new file mode 100644 (file)
index 0000000..f8d4695
--- /dev/null
@@ -0,0 +1,65 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > DIV > SPAN > P > DIV > DIV > SPAN > P > DIV > 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 784x212
+        RenderBlock {DIV} at (0,0) size 784x212 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (14,14) size 756x184
+            RenderBlock (anonymous) at (0,0) size 756x0
+              RenderInline {SPAN} at (0,0) size 0x0
+            RenderBlock (anonymous) at (0,0) size 756x184
+              RenderBlock {DIV} at (0,0) size 756x184
+                RenderBlock {DIV} at (0,0) size 756x184 [border: (2px solid #FF0000)]
+                  RenderBlock {P} at (14,14) size 728x32
+                    RenderText {#text} at (0,0) size 33x31
+                      text run at (0,0) width 33: "foo"
+                  RenderBlock {P} at (14,46) size 728x32
+                    RenderText {#text} at (0,0) size 34x31
+                      text run at (0,0) width 34: "bar"
+                  RenderBlock {P} at (14,78) size 728x92
+                    RenderBlock (anonymous) at (0,0) size 728x0
+                      RenderInline {SPAN} at (0,0) size 0x0
+                    RenderBlock (anonymous) at (0,0) size 728x92
+                      RenderBlock {DIV} at (0,0) size 728x92
+                        RenderBlock {DIV} at (0,0) size 728x92 [border: (2px solid #FF0000)]
+                          RenderBlock {P} at (14,14) size 700x32
+                            RenderText {#text} at (0,0) size 33x31
+                              text run at (0,0) width 33: "foo"
+                          RenderBlock {P} at (14,46) size 700x32
+                            RenderText {#text} at (0,0) size 34x31
+                              text run at (0,0) width 34: "bar"
+                    RenderBlock (anonymous) at (0,92) size 728x0
+                      RenderInline {SPAN} at (0,0) size 0x0
+            RenderBlock (anonymous) at (0,184) size 756x0
+              RenderInline {SPAN} at (0,0) size 0x0
+caret: position 3 of child 0 {#text} of child 1 {P} of child 0 {DIV} of child 0 {DIV} of child 0 {SPAN} of child 2 {P} of child 0 {DIV} of child 0 {DIV} of child 0 {SPAN} of child 0 {P} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt
new file mode 100644 (file)
index 0000000..952960d
--- /dev/null
@@ -0,0 +1,68 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 of BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of P > DIV > DIV > BODY > HTML > #document to 2 of P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > P > DIV > DIV > BODY > HTML > #document to 0 of DIV > P > DIV > 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 (anonymous) at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 96x19
+          text run at (0,0) width 96: "Fixes this bug: "
+        RenderInline {A} at (0,0) size 166x19 [color=#0000EE]
+          RenderText {#text} at (96,0) size 166x19
+            text run at (96,0) width 166: "<rdar://problem/3927554>"
+        RenderText {#text} at (262,0) size 377x19
+          text run at (262,0) width 377: " REGRESSION (Mail): Paste inserts content in wrong place "
+        RenderBR {BR} at (0,0) size 0x0
+        RenderText {#text} at (0,19) size 352x19
+          text run at (0,19) width 352: "***TEST*** line should be second, following the first line."
+      RenderBlock {DIV} at (0,38) size 784x12
+      RenderBlock {DIV} at (0,50) size 784x252
+        RenderBlock {DIV} at (0,0) size 784x252 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (14,14) size 756x128
+            RenderBlock (anonymous) at (0,0) size 756x32
+              RenderText {#text} at (0,0) size 340x31
+                text run at (0,0) width 340: "Should be first line of document."
+              RenderBR {BR} at (340,23) size 0x0
+            RenderBlock {P} at (0,32) size 756x32
+              RenderText {#text} at (0,0) size 116x31
+                text run at (0,0) width 116: "***TEST***"
+            RenderBlock {DIV} at (0,64) size 756x32
+              RenderBR {BR} at (0,0) size 0x31
+            RenderBlock (anonymous) at (0,96) size 756x32
+              RenderText {#text} at (0,0) size 133x31
+                text run at (0,0) width 133: "Another line."
+          RenderBlock {P} at (14,142) size 756x0
+          RenderBlock (anonymous) at (14,142) size 756x32
+            RenderText {#text} at (0,0) size 7x31
+              text run at (0,0) width 7: " "
+          RenderBlock {P} at (14,174) size 756x0
+          RenderBlock (anonymous) at (14,174) size 756x32
+            RenderText {#text} at (0,0) size 7x31
+              text run at (0,0) width 7: " "
+          RenderBlock {P} at (14,206) size 756x32
+            RenderBR {BR} at (0,0) size 0x31
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 0 {P} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt
new file mode 100644 (file)
index 0000000..85ceac5
--- /dev/null
@@ -0,0 +1,54 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x161
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 746x63
+            text run at (0,33) width 746: "Copying and pasting a whole line followed by a blank line could remove"
+            text run at (0,65) width 549: "the blank line incorrectly, as in the case described in"
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (0,97) size 274x31
+              text run at (0,97) width 274: "<rdar://problem/3951178>"
+          RenderText {#text} at (274,97) size 719x63
+            text run at (274,97) width 445: " REGRESSION (Mail): blank line lost after"
+            text run at (0,129) width 219: "pasting as quotation."
+        RenderBlock {DIV} at (14,191) size 756x65
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 527x31
+            text run at (0,33) width 527: "Should see a blank line between \"two\" and \"three\""
+      RenderBlock {DIV} at (0,294) size 784x164
+        RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x32
+            RenderText {#text} at (0,0) size 39x31
+              text run at (0,0) width 39: "one"
+          RenderBlock {DIV} at (2,34) size 780x32
+            RenderBR {BR} at (0,0) size 0x31
+          RenderBlock {DIV} at (2,66) size 780x64
+            RenderBlock {DIV} at (0,0) size 780x32
+              RenderText {#text} at (0,0) size 37x31
+                text run at (0,0) width 37: "two"
+            RenderBlock (anonymous) at (0,32) size 780x0
+            RenderBlock {DIV} at (0,32) size 780x32
+              RenderBR {BR} at (0,0) size 0x31
+          RenderBlock {DIV} at (2,130) size 780x32
+            RenderText {#text} at (0,0) size 54x31
+              text run at (0,0) width 54: "three"
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 5 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt
new file mode 100644 (file)
index 0000000..66de90c
--- /dev/null
@@ -0,0 +1,57 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > 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 784x270 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x129
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 274x31
+              text run at (171,33) width 274: "<rdar://problem/4039676>"
+          RenderText {#text} at (445,33) size 710x63
+            text run at (445,33) width 265: " REGRESSION (Mail): in"
+            text run at (0,65) width 65: "reply, "
+          RenderInline {CR} at (0,0) size 706x63
+            RenderText {#text} at (65,65) size 706x63
+              text run at (65,65) width 641: "on pasted text (without trailing newline) is eaten when pasted"
+              text run at (0,97) width 117: "above date"
+        RenderBlock {DIV} at (14,159) size 756x97
+          RenderText {#text} at (0,0) size 214x33
+            text run at (0,0) width 214: "Expected Results: "
+          RenderBR {BR} at (214,24) size 0x0
+          RenderText {#text} at (0,33) size 711x63
+            text run at (0,33) width 711: "Should see two lines of text below, self-documenting themselves as"
+            text run at (0,65) width 258: "\"line one\" and \"line two\"."
+      RenderBlock {DIV} at (0,294) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x68 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 82x31
+            text run at (2,2) width 82: "line one"
+          RenderBR {BR} at (84,25) size 0x0
+          RenderText {#text} at (2,34) size 80x31
+            text run at (2,34) width 80: "line two"
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
new file mode 100644 (file)
index 0000000..2ac3976
--- /dev/null
@@ -0,0 +1,60 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:Bar replacingDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > 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 784x349 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x129
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 171x31
+            text run at (0,33) width 171: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 585x31 [color=#0000EE]
+            RenderText {#text} at (171,33) size 585x31
+              text run at (171,33) width 585: "<http://bugzilla.opendarwin.org/show_bug.cgi?id=3429>"
+          RenderText {#text} at (0,65) size 697x63
+            text run at (0,65) width 697: "Text transformed with text-transform does not copy with transform"
+            text run at (0,97) width 75: "applied"
+        RenderBlock {DIV} at (14,159) size 756x176
+          RenderBlock (anonymous) at (0,0) size 756x65
+            RenderText {#text} at (0,0) size 214x33
+              text run at (0,0) width 214: "Expected Results: "
+            RenderBR {BR} at (214,24) size 0x0
+            RenderText {#text} at (0,33) size 223x31
+              text run at (0,33) width 223: "Should see the string"
+          RenderBlock {PRE} at (0,89) size 756x31
+            RenderText {#text} at (0,1) size 210x28
+              text run at (0,1) width 210: "Foo Bar baz Bar"
+          RenderBlock (anonymous) at (0,144) size 756x32
+            RenderText {#text} at (0,0) size 172x31
+              text run at (0,0) width 172: "(case sensitive)."
+      RenderBlock {DIV} at (0,373) size 784x36 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 167x31
+          RenderInline {SPAN} at (0,0) size 85x31
+            RenderText {#text} at (2,2) size 85x31
+              text run at (2,2) width 85: "Foo Bar"
+          RenderText {#text} at (87,2) size 45x31
+            text run at (87,2) width 45: " baz"
+          RenderText {#text} at (132,2) size 37x31
+            text run at (132,2) width 37: "Bar"
+caret: position 3 of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
new file mode 100644 (file)
index 0000000..336c7c4
--- /dev/null
@@ -0,0 +1,30 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > 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 784x60 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 71x31
+          RenderText {#text} at (14,14) size 13x31
+            text run at (14,14) width 13: "a"
+          RenderText {#text} at (27,14) size 25x31
+            text run at (27,14) width 25: "ax"
+          RenderInline {SPAN} at (0,0) size 21x31
+            RenderText {#text} at (52,14) size 21x31
+              text run at (52,14) width 21: "\x{9}\x{9}\x{9}"
+          RenderText {#text} at (73,14) size 12x31
+            text run at (73,14) width 12: "z"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 2 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
new file mode 100644 (file)
index 0000000..1b51da9
--- /dev/null
@@ -0,0 +1,34 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > 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 784x60 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 71x31
+          RenderText {#text} at (14,14) size 13x31
+            text run at (14,14) width 13: "a"
+          RenderInline {SPAN} at (0,0) size 7x31
+            RenderText {#text} at (27,14) size 7x31
+              text run at (27,14) width 7: "\x{9}"
+          RenderText {#text} at (34,14) size 25x31
+            text run at (34,14) width 25: "ax"
+          RenderInline {SPAN} at (0,0) size 14x31
+            RenderText {#text} at (59,14) size 14x31
+              text run at (59,14) width 14: "\x{9}\x{9}"
+          RenderText {#text} at (73,14) size 12x31
+            text run at (73,14) width 12: "z"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
new file mode 100644 (file)
index 0000000..42dbbf5
--- /dev/null
@@ -0,0 +1,33 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > 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 784x60 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 71x31
+          RenderText {#text} at (14,14) size 13x31
+            text run at (14,14) width 13: "a"
+          RenderInline {SPAN} at (0,0) size 21x31
+            RenderText {#text} at (27,14) size 21x31
+              text run at (27,14) width 21: "\x{9}\x{9}\x{9}"
+          RenderText {#text} at (48,14) size 25x31
+            text run at (48,14) width 25: "ax"
+          RenderText {#text} at (73,14) size 12x31
+            text run at (73,14) width 12: "z"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt
new file mode 100644 (file)
index 0000000..3f66b05
--- /dev/null
@@ -0,0 +1,22 @@
+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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 581x19
+          text run at (0,0) width 297: "This tests copy/paste of an unrendered select. "
+          text run at (297,0) width 284: "The options inside of it should not be pasted."
+      RenderBlock {DIV} at (0,33) size 784x19
+        RenderText {#text} at (0,0) size 36x19
+          text run at (0,0) width 36: "Hello "
+        RenderText {#text} at (36,0) size 37x19
+          text run at (36,0) width 37: "World"
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderText {#text} at (0,0) size 32x19
+          text run at (0,0) width 32: "Hello"
+        RenderText {#text} at (32,0) size 4x19
+          text run at (32,0) width 4: " "
+        RenderText {#text} at (36,0) size 37x19
+          text run at (36,0) width 37: "World"
+caret: position 5 of child 2 {#text} of child 4 {DIV} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt
new file mode 100644 (file)
index 0000000..e3f8bb1
--- /dev/null
@@ -0,0 +1,23 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 764x38
+          text run at (0,0) width 764: "This tests for a bug where attachments dragged into Mail documents blew all content after the position being pasted into."
+          text run at (0,19) width 302: "You should see \"Hello[black box] World!\" below."
+      RenderBlock {DIV} at (0,52) size 784x157
+        RenderText {#text} at (0,138) size 32x19
+          text run at (0,138) width 32: "Hello"
+        RenderPartObject {OBJECT} at (32,0) size 302x152 [border: (1px solid #AAAAAA)]
+        RenderText {#text} at (334,138) size 45x19
+          text run at (334,138) width 45: " World!"
+caret: position 1 of child 1 {OBJECT} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt
new file mode 100644 (file)
index 0000000..e381c95
--- /dev/null
@@ -0,0 +1,36 @@
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 0 of #text > DIV toDOMRange:range from 0 of #text > DIV to 11 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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: shouldInsertText:Tab->       <-Tab replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > 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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 773x38
+          text run at (0,0) width 651: "This tests copying plain text with tabs and pasting it into an editable region using paste and match tyle. "
+          text run at (651,0) width 122: "The tabs should be"
+          text run at (0,19) width 68: "preserved."
+      RenderBlock (anonymous) at (0,52) size 784x44
+        RenderTextControl {TEXTAREA} at (2,2) size 184x40 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,96) size 784x19
+        RenderText {#text} at (0,0) size 38x19
+          text run at (0,0) width 38: "Tab->"
+        RenderInline {SPAN} at (0,0) size 4x19
+          RenderText {#text} at (38,0) size 4x19
+            text run at (38,0) width 4: "\x{9}"
+        RenderText {#text} at (42,0) size 38x19
+          text run at (42,0) width 38: "<-Tab"
+layer at (11,63) size 182x38
+  RenderBlock {DIV} at (1,1) size 182x38
+    RenderText {#text} at (3,0) size 80x19
+      text run at (3,0) width 80: "Tab->\x{9}<-Tab"
+caret: position 5 of child 2 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt
new file mode 100644 (file)
index 0000000..a05ecf5
--- /dev/null
@@ -0,0 +1,30 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 85 of #text > DIV > DIV > BODY > HTML > #document to 85 of #text > DIV > 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 {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 723x19
+          text run at (0,0) width 723: "The code in paste that prevents block nesting had a bug where the order of pasted paragraphs could be reversed."
+      RenderBlock {DIV} at (2,33) size 780x69 [border: (1px solid #FF0000)]
+        RenderBlock (anonymous) at (1,1) size 778x19
+          RenderText {#text} at (0,0) size 397x19
+            text run at (0,0) width 397: "There should be an empty line between these two paragraphs."
+          RenderInline {SPAN} at (0,0) size 0x19
+        RenderBlock (anonymous) at (1,22) size 778x21
+          RenderBlock {DIV} at (2,0) size 774x21 [border: (1px solid #FF0000)]
+            RenderBR {BR} at (1,1) size 0x19
+        RenderBlock (anonymous) at (1,45) size 778x0
+          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock {DIV} at (3,45) size 774x21 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 541x19
+            text run at (1,1) width 541: "This paragraph and the empty line should have be in their own divs with a red border."
+        RenderBlock (anonymous) at (1,68) size 778x0
+caret: position 85 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 2 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt
new file mode 100644 (file)
index 0000000..91470e5
--- /dev/null
@@ -0,0 +1,21 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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 {P} at (0,0) size 784x38
+        RenderText {#text} at (0,0) size 783x38
+          text run at (0,0) width 783: "This is a test to make sure that the final <br> in an incoming fragment is interpretted strictly in quirks mode (where brs at the"
+          text run at (0,19) width 186: "end of blocks are collapsed). "
+          text run at (186,19) width 518: "This test used to fail because of unrendered content to the left of the collapsed br."
+      RenderBlock {DIV} at (0,52) size 784x19
+        RenderBlock {DIV} at (0,0) size 784x19
+          RenderText {#text} at (0,0) size 376x19
+            text run at (0,0) width 376: "The test should add a single blank line after this paragraph."
+          RenderInline {SPAN} at (0,0) size 0x19
+          RenderBR {BR} at (376,14) size 0x0
+caret: position 61 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt
new file mode 100644 (file)
index 0000000..f1d7c68
--- /dev/null
@@ -0,0 +1,54 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > 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 784x238 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x65
+          RenderText {#text} at (0,0) size 77x33
+            text run at (0,0) width 77: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 713x31
+            text run at (0,33) width 713: "Smart paste when pasting between smart paste exempt characters."
+        RenderBlock {DIV} at (14,95) size 756x129
+          RenderText {#text} at (0,0) size 214x33
+