Index: LayoutTests/editing/style/background-color-retained-expected.txt |
diff --git a/LayoutTests/editing/inserting/typing-001-expected.txt b/LayoutTests/editing/style/background-color-retained-expected.txt |
similarity index 61% |
copy from LayoutTests/editing/inserting/typing-001-expected.txt |
copy to LayoutTests/editing/style/background-color-retained-expected.txt |
index 022a24fa01e1203387fe164cfddc49e7868bf974..161958dc28190e72098c80072cb9a0f0c3df41c2 100644 |
--- a/LayoutTests/editing/inserting/typing-001-expected.txt |
+++ b/LayoutTests/editing/style/background-color-retained-expected.txt |
@@ -1,44 +1,43 @@ |
-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document |
+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 0 of DIV > BODY > HTML > #document to 0 of 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: 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 86 of #text > 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: shouldChangeSelectedDOMRange:range from 86 of #text > SPAN > DIV > BODY > HTML > #document to 86 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 86 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 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: shouldDeleteDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 86 of #text > SPAN > DIV > BODY > HTML > #document |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of 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: 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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > SPAN > DIV > BODY > HTML > #document to 5 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+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 |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 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 |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > SPAN > DIV > BODY > HTML > #document to 8 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 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 |
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > SPAN > DIV > BODY > HTML > #document to 5 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > SPAN > DIV > BODY > HTML > #document to 10 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > SPAN > DIV > BODY > HTML > #document to 11 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > SPAN > DIV > BODY > HTML > #document to 5 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > SPAN > DIV > BODY > HTML > #document to 11 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 12 of #text > SPAN > DIV > BODY > HTML > #document to 12 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > SPAN > DIV > BODY > HTML > #document to 12 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 13 of #text > SPAN > DIV > BODY > HTML > #document to 13 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > SPAN > DIV > BODY > HTML > #document to 8 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 784x56 [border: (2px solid #FF0000)] |
- RenderInline {SPAN} at (0,0) size 176x28 |
- RenderText {#text} at (14,14) size 176x28 |
- text run at (14,14) width 176: "xxxXXxxxXXxxx" |
-caret: position 13 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body |
+PASS span.style.backgroundColor is green |
+This tests whether background style applied on a selection is retained when the selection is deleted/cut and is replaced with new text. |
+The background color of the text below should be green. |
+ |
+New Text |
+ |