WebKit Bugzilla
Attachment 361239 Details for
Bug 194275
: [iOS] Layout tests editing/pasteboard/smart-paste-007.html and editing/pasteboard/smart-paste-008.html are failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-194275-20190205161337.patch (text/plain), 39.23 KB, created by
Megan Gardner
on 2019-02-05 16:13:38 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Megan Gardner
Created:
2019-02-05 16:13:38 PST
Size:
39.23 KB
patch
obsolete
>Subversion Revision: 240990 >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index 74908a7fa06567b5bd8e5dc2c62e2aca801455b4..c87f2306701247939998b4c065eb1aa20c1710c1 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,24 @@ >+2019-02-05 Megan Gardner <megan_gardner@apple.com> >+ >+ [iOS] Layout tests editing/pasteboard/smart-paste-007.html and editing/pasteboard/smart-paste-008.html are failing >+ https://bugs.webkit.org/show_bug.cgi?id=194275 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Smart paste tests 7 and 8 were outputting more information that was needed >+ to verify correct functionality. Also cleaned up test 8 to be more similar to >+ the other smart copy paste tests. >+ >+ * editing/pasteboard/smart-paste-007.html: >+ * editing/pasteboard/smart-paste-008.html: >+ * platform/ios-wk1/editing/pasteboard/smart-paste-007-expected.txt: Removed. >+ * platform/ios-wk1/editing/pasteboard/smart-paste-008-expected.txt: Removed. >+ * platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt: Removed. >+ * platform/ios/editing/pasteboard/smart-paste-007-expected.txt: Renamed from LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt. >+ * platform/ios/editing/pasteboard/smart-paste-008-expected.txt: Added. >+ * platform/mac/editing/pasteboard/smart-paste-007-expected.txt: >+ * platform/mac/editing/pasteboard/smart-paste-008-expected.txt: >+ > 2019-02-05 Nikita Vasilyev <nvasilyev@apple.com> > > Web Inspector: Fix modify-css-property-race.html test failures >diff --git a/LayoutTests/editing/pasteboard/smart-paste-007.html b/LayoutTests/editing/pasteboard/smart-paste-007.html >index ab8837dc33e59f3df23fd5a26abca745a9339fa6..12155ca5692c806945d3e8ca2c892f3fdb88d191 100644 >--- a/LayoutTests/editing/pasteboard/smart-paste-007.html >+++ b/LayoutTests/editing/pasteboard/smart-paste-007.html >@@ -57,7 +57,7 @@ test > </div> > > <script> >-runEditingTest(); >+runDumpAsTextEditingTest(true); > </script> > > </body> >diff --git a/LayoutTests/editing/pasteboard/smart-paste-008.html b/LayoutTests/editing/pasteboard/smart-paste-008.html >index 312902e628303df6dca780f7fb674c63a0875b2f..779bf974047df71df3b0fcd52b47fc6d1ebf56b9 100644 >--- a/LayoutTests/editing/pasteboard/smart-paste-008.html >+++ b/LayoutTests/editing/pasteboard/smart-paste-008.html >@@ -1,18 +1,27 @@ >-<script> >-if (window.testRunner) >- testRunner.dumpEditingCallbacks(); >-</script> >-<p>There was a bug in paste's smart replace whitespace handling. In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.</p> >-<p>A smart paste is performed into a selection starting in one block and ending in another. Spaces should surround the pasted word.</p> >-<div id="test" contenteditable="true"><div>foo</div><div>x bar</div></div> >+<html> >+<head> >+ >+<style> >+.editing { >+ border: 2px solid red; >+ font-size: 24px; >+} >+.explanation { >+ border: 2px solid blue; >+ padding: 12px; >+ font-size: 24px; >+ margin-bottom: 24px; >+} >+.scenario { margin-bottom: 16px;} >+.scenario:first-line { font-weight: bold; margin-bottom: 16px;} >+.expected-results:first-line { font-weight: bold } >+</style> > > <script src="../editing.js"></script> > <script src="../../resources/ui-helper.js"></script> > <script> >-var e = document.getElementById("test"); > >-async function runTest() { >- getSelection().setBaseAndExtent(e, 0, e, 0); >+async function editingTest() { > await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test')); > copyCommand(); > moveSelectionBackwardByCharacterCommand(); >@@ -20,6 +29,20 @@ async function runTest() { > extendSelectionForwardByLineCommand(); > pasteCommand(); > } >+</script> >+ >+<div class="explanation"> >+<div class="scenario"> >+<p>There was a bug in paste's smart replace whitespace handling. In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.</p> >+<div class="expected-results"> >+Expected Results: >+<br> >+A smart paste is performed into a selection starting in one block and ending in another. Spaces should surround the pasted word and look like: >+<br> >+f foo bar >+</div> >+<div id="test" contenteditable="true"><div>foo</div><div>x bar</div></div> > >-UIHelper.wait(runTest()); >+<script> >+runDumpAsTextEditingTest(true); > </script> >diff --git a/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-007-expected.txt >deleted file mode 100644 >index 54eda41ef7a9a68e2fbae2bb78d78c1ffecdc45a..0000000000000000000000000000000000000000 >--- a/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-007-expected.txt >+++ /dev/null >@@ -1,57 +0,0 @@ >-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 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document 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:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 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 >-EDITING DELEGATE: shouldApplyStyle:<DOMCSSStyleDeclaration: 0x7fef55d07fc0> toElementsInDOMRange: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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > FONT > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > FONT > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > SPAN > FONT > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > FONT > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification >-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 784x224 [border: (2px solid #0000FF)] >- RenderBlock {DIV} at (14,14) size 756x60 >- RenderText {#text} at (0,1) size 66x28 >- text run at (0,1) width 66: "Tests: " >- RenderBR {BR} at (0,0) size 0x0 >- RenderText {#text} at (0,31) size 457x28 >- text run at (0,31) width 457: "Smart paste when pasting between two periods." >- RenderBlock {DIV} at (14,90) size 756x120 >- RenderText {#text} at (0,1) size 190x28 >- text run at (0,1) width 190: "Expected Results: " >- RenderBR {BR} at (189,23) size 1x0 >- RenderText {#text} at (0,31) size 738x58 >- text run at (0,31) width 738: "A space should be added before, but not after the pasted word. It should look" >- text run at (0,61) width 90: "like this: " >- RenderBR {BR} at (89,83) size 1x0 >- RenderText {#text} at (0,91) size 52x28 >- text run at (0,91) width 52: ". test." >- RenderBlock {DIV} at (0,248) size 784x34 >- RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)] >- RenderText {#text} at (2,3) size 6x28 >- text run at (2,3) width 6: "." >- RenderInline {FONT} at (0,0) size 23x19 >- RenderInline {SPAN} at (0,0) size 23x19 [bgcolor=#FFFFFF00] >- RenderText {#text} at (8,10) size 23x19 >- text run at (8,10) width 23: "test" >- RenderText {#text} at (30,3) size 40x28 >- text run at (30,3) width 40: ".test" >- RenderBlock (anonymous) at (0,34) size 784x0 >-caret: position 4 of child 0 {#text} of child 0 {SPAN} of child 1 {FONT} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity) >diff --git a/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-008-expected.txt >deleted file mode 100644 >index b9d84dfe0903ff730701b643e4d9bec5b63ceaf0..0000000000000000000000000000000000000000 >--- a/LayoutTests/platform/ios-wk1/editing/pasteboard/smart-paste-008-expected.txt >+++ /dev/null >@@ -1,43 +0,0 @@ >-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 DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-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:range from 0 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification >-EDITING DELEGATE: shouldApplyStyle:<DOMCSSStyleDeclaration: 0x7fef55f60300> toElementsInDOMRange:range from 0 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document >-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification >-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 784x40 >- RenderText {#text} at (0,0) size 767x39 >- text run at (0,0) width 401: "There was a bug in paste's smart replace whitespace handling. " >- text run at (400,0) width 367: "In some cases, it used information gathered at the start of" >- text run at (0,20) width 759: "the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content." >- RenderBlock {P} at (0,56) size 784x40 >- RenderText {#text} at (0,0) size 779x39 >- text run at (0,0) width 559: "A smart paste is performed into a selection starting in one block and ending in another. " >- text run at (558,0) width 221: "Spaces should surround the pasted" >- text run at (0,20) width 37: "word." >- RenderBlock {DIV} at (0,112) size 784x20 >- RenderBlock {DIV} at (0,0) size 784x20 >- RenderText {#text} at (0,0) size 6x19 >- text run at (0,0) width 6: "f" >- RenderInline {SPAN} at (0,0) size 23x19 [bgcolor=#FFFFFF00] >- RenderText {#text} at (5,0) size 23x19 >- text run at (5,0) width 23: "test" >- RenderText {#text} at (27,0) size 25x19 >- text run at (27,0) width 25: " bar" >- RenderBlock (anonymous) at (0,20) size 784x0 >-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 4 {DIV} of body (upstream affinity) >diff --git a/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt >deleted file mode 100644 >index d88a593802d77e8d4209bc6f98ed227fa6bd9f02..0000000000000000000000000000000000000000 >--- a/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt >+++ /dev/null >@@ -1,51 +0,0 @@ >-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 DIV > DIV > BODY > HTML > #document to 0 of DIV > 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: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 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: 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:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 >-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 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:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 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 784x224 [border: (2px solid #0000FF)] >- RenderBlock {DIV} at (14,14) size 756x60 >- RenderText {#text} at (0,1) size 66x28 >- text run at (0,1) width 66: "Tests: " >- RenderBR {BR} at (0,0) size 0x0 >- RenderText {#text} at (0,31) size 457x28 >- text run at (0,31) width 457: "Smart paste when pasting between two periods." >- RenderBlock {DIV} at (14,90) size 756x120 >- RenderText {#text} at (0,1) size 190x28 >- text run at (0,1) width 190: "Expected Results: " >- RenderBR {BR} at (189,23) size 1x0 >- RenderText {#text} at (0,31) size 738x58 >- text run at (0,31) width 738: "A space should be added before, but not after the pasted word. It should look" >- text run at (0,61) width 90: "like this: " >- RenderBR {BR} at (89,83) size 1x0 >- RenderText {#text} at (0,91) size 52x28 >- text run at (0,91) width 52: ". test." >- RenderBlock {DIV} at (0,248) size 784x34 >- RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)] >- RenderText {#text} at (2,3) size 52x28 >- text run at (2,3) width 52: ". test." >-caret: position 6 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body >-scrolled to 0,21 >diff --git a/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt >deleted file mode 100644 >index b1b40165055f2ab64c094cc2f05039a8d4a7d3b9..0000000000000000000000000000000000000000 >--- a/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt >+++ /dev/null >@@ -1,35 +0,0 @@ >-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 DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-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 > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >-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 > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted >-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document 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 {P} at (0,0) size 784x40 >- RenderText {#text} at (0,0) size 767x39 >- text run at (0,0) width 401: "There was a bug in paste's smart replace whitespace handling. " >- text run at (400,0) width 367: "In some cases, it used information gathered at the start of" >- text run at (0,20) width 759: "the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content." >- RenderBlock {P} at (0,56) size 784x40 >- RenderText {#text} at (0,0) size 779x39 >- text run at (0,0) width 559: "A smart paste is performed into a selection starting in one block and ending in another. " >- text run at (558,0) width 221: "Spaces should surround the pasted" >- text run at (0,20) width 37: "word." >- RenderBlock {DIV} at (0,112) size 784x20 >- RenderBlock {DIV} at (0,0) size 784x20 >- RenderText {#text} at (0,0) size 56x19 >- text run at (0,0) width 56: "f foo bar" >-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 4 {DIV} of body >diff --git a/LayoutTests/platform/ios/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/ios/editing/pasteboard/smart-paste-007-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..97114b64c42195b9c726c06b9bc8677b2c9dc8a8 >--- /dev/null >+++ b/LayoutTests/platform/ios/editing/pasteboard/smart-paste-007-expected.txt >@@ -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: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 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: 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:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 >+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 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:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification >+Tests: >+Smart paste when pasting between two periods. >+Expected Results: >+A space should be added before, but not after the pasted word. It should look like this: >+. test. >+. test. >+execCutCommand: <div id="test" class="editing"><br></div> >+execTypeCharacterCommand: <div id="test" class="editing">.</div> >+execTypeCharacterCommand: <div id="test" class="editing">..</div> >+execPasteCommand: <div id="test" class="editing">. test.</div> >diff --git a/LayoutTests/platform/ios/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/ios/editing/pasteboard/smart-paste-008-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..f115a5d2bc8b596e89586ad40a721597c138f9d4 >--- /dev/null >+++ b/LayoutTests/platform/ios/editing/pasteboard/smart-paste-008-expected.txt >@@ -0,0 +1,21 @@ >+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > DIV > BODY > HTML > #document >+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > 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: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification >+There was a bug in paste's smart replace whitespace handling. In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content. >+ >+Expected Results: >+A smart paste is performed into a selection starting in one block and ending in another. Spaces should surround the pasted word and look like: >+f foo bar >+f foo bar >+ >diff --git a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt >index 760f520a111331fa5027c89420082e59122f52a5..e361028b45f9fa2ba754a0948bed2940e943f90f 100644 >--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt >+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt >@@ -20,30 +20,13 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio > EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 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 784x212 [border: (2px solid #0000FF)] >- RenderBlock {DIV} at (14,14) size 756x56 >- RenderText {#text} at (0,0) size 66x28 >- text run at (0,0) width 66: "Tests: " >- RenderBR {BR} at (0,0) size 0x0 >- RenderText {#text} at (0,28) size 457x28 >- text run at (0,28) width 457: "Smart paste when pasting between two periods." >- RenderBlock {DIV} at (14,86) size 756x112 >- RenderText {#text} at (0,0) size 190x28 >- text run at (0,0) width 190: "Expected Results: " >- RenderBR {BR} at (189,22) size 1x0 >- RenderText {#text} at (0,28) size 738x56 >- text run at (0,28) width 738: "A space should be added before, but not after the pasted word. It should look" >- text run at (0,56) width 90: "like this: " >- RenderBR {BR} at (89,78) size 1x0 >- RenderText {#text} at (0,84) size 52x28 >- text run at (0,84) width 52: ". test." >- RenderBlock {DIV} at (0,236) size 784x32 >- RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] >- RenderText {#text} at (2,2) size 52x28 >- text run at (2,2) width 52: ". test." >-caret: position 6 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body >+Tests: >+Smart paste when pasting between two periods. >+Expected Results: >+A space should be added before, but not after the pasted word. It should look like this: >+. test. >+. test. >+execCutCommand: <div id="test" class="editing"><br></div> >+execTypeCharacterCommand: <div id="test" class="editing">.</div> >+execTypeCharacterCommand: <div id="test" class="editing">..</div> >+execPasteCommand: <div id="test" class="editing">. test.</div> >diff --git a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt >index eef2cc70ad54df00c03d3a47ee2b6306443bb581..2c159017e1a2a5723ec8c57c05635097ff1d7ef2 100644 >--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt >+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt >@@ -1,35 +1,22 @@ >-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document >+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > 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 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > DIV > DIV > BODY > HTML > #document to 0 of 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: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE >+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification > EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification > 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: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted > EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification >-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document 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: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 5 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 {P} at (0,0) size 784x36 >- RenderText {#text} at (0,0) size 767x36 >- text run at (0,0) width 401: "There was a bug in paste's smart replace whitespace handling. " >- text run at (400,0) width 367: "In some cases, it used information gathered at the start of" >- text run at (0,18) width 759: "the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content." >- RenderBlock {P} at (0,52) size 784x36 >- RenderText {#text} at (0,0) size 779x36 >- text run at (0,0) width 559: "A smart paste is performed into a selection starting in one block and ending in another. " >- text run at (558,0) width 221: "Spaces should surround the pasted" >- text run at (0,18) width 37: "word." >- RenderBlock {DIV} at (0,104) size 784x18 >- RenderBlock {DIV} at (0,0) size 784x18 >- RenderText {#text} at (0,0) size 56x18 >- text run at (0,0) width 56: "f foo bar" >-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 4 {DIV} of body >+There was a bug in paste's smart replace whitespace handling. In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content. >+ >+Expected Results: >+A smart paste is performed into a selection starting in one block and ending in another. Spaces should surround the pasted word and look like: >+f foo bar >+f foo bar >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 194275
: 361239