Changeset 147994 in webkit
- Timestamp:
- Apr 9, 2013 12:35:31 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147983 r147994 1 2013-04-09 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION: Autocorrection doesn't work in DumpRenderTree 4 https://bugs.webkit.org/show_bug.cgi?id=113846 5 6 Reviewed by Alexey Proskuryakov. 7 8 Removed failing expectations from tests that require "mesage" to be corrected to "message". 9 10 Also modified to dynamically assert the marker positions so that we may catch regressions 11 without pixel results (we still dump pixel results via dumpAsText(true) for sanity check). 12 13 * platform/mac/TestExpectations: 14 * platform/mac/editing/spelling/autocorrection-contraction-expected.png: 15 * platform/mac/editing/spelling/autocorrection-contraction-expected.txt: 16 * platform/mac/editing/spelling/click-autocorrected-word-expected.png: 17 * platform/mac/editing/spelling/click-autocorrected-word-expected.txt: 18 * platform/mac/editing/spelling/click-autocorrected-word.html: 19 * platform/mac/editing/spelling/delete-into-autocorrected-word-expected.png: 20 * platform/mac/editing/spelling/delete-into-autocorrected-word-expected.txt: 21 * platform/mac/editing/spelling/delete-into-autocorrected-word.html: 22 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.png: 23 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.txt: 24 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html: 25 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.png: 26 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.txt: 27 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html: 28 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.png: 29 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.txt: 30 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html: 31 * platform/mac-wk2/TestExpectations: 32 1 33 2013-04-08 Mihai Maerean <mmaerean@adobe.com> 2 34 -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r147978 r147994 167 167 # [WK2] [Mac] Spellcheck tests don't seem to work 168 168 webkit.org/b/105616 platform/mac/editing/spelling/removing-underline-after-accepting-autocorrection-using-punctuation.html [ Failure ] 169 webkit.org/b/105616 platform/mac/editing/spelling/click-autocorrected-word.html 170 webkit.org/b/105616 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html 171 webkit.org/b/105616 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 172 webkit.org/b/105616 platform/mac/editing/spelling/delete-into-autocorrected-word.html 173 webkit.org/b/105616 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 169 174 170 175 # [WK2] [Mac] Support drag in mouse events for WebKit2 EventSender -
trunk/LayoutTests/platform/mac/TestExpectations
r147971 r147994 687 687 # Spelling tests that are flakey. https://bugs.webkit.org/show_bug.cgi?id=82555 688 688 editing/spelling/spellcheck-async-mutation.html 689 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html690 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html691 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html692 platform/mac/editing/spelling/editing-word-with-marker-1.html693 platform/mac/editing/spelling/delete-into-autocorrected-word.html694 platform/mac/editing/spelling/click-autocorrected-word.html695 platform/mac/editing/spelling/autocorrection-contraction.html696 689 697 690 # https://bugs.webkit.org/show_bug.cgi?id=82665 -
trunk/LayoutTests/platform/mac/editing/spelling/autocorrection-contraction-expected.txt
r111031 r147994 152 152 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 153 153 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 154 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 155 EDITING DELEGATE: shouldInsertText:would replacingDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionTyped 156 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 157 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 158 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 159 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 160 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 161 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 162 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 163 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 164 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 165 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 166 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 167 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 168 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 8 of #text > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 169 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 170 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 171 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 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 172 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 173 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 174 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 175 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 176 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 177 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 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 178 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 179 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 180 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 12 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 181 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 182 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 183 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 13 of #text > DIV > DIV > BODY > HTML > #document to 13 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 184 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 185 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 186 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text > DIV > DIV > BODY > HTML > #document to 13 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 187 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 188 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 189 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > 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 190 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 191 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 192 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 193 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 194 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 195 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 196 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 197 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 198 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > 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 199 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 200 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 201 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 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 202 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 203 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 204 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > 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 205 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 206 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 207 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 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 208 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 209 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 210 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 211 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 212 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 213 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 8 of #text > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 214 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 215 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 216 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 217 EDITING DELEGATE: shouldInsertText:would replacingDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionTyped 218 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 219 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 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 220 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 221 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 222 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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 223 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 224 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 225 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 154 226 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 155 227 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 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 … … 174 246 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 175 247 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 176 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE177 EDITING DELEGATE: shouldInsertText:would replacingDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionTyped178 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE179 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE180 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification181 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification182 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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:FALSE183 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification184 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification185 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification186 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text > DIV > DIV > BODY > HTML > #document to 13 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE187 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification188 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification189 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > 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:FALSE190 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification191 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification192 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:FALSE193 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification194 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification195 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:FALSE196 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification197 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification198 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > 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:FALSE199 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification200 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification201 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 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:FALSE202 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification203 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification204 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > 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:FALSE205 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification206 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification207 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 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:FALSE208 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification209 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification210 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE211 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification212 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification213 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 8 of #text > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE214 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification215 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification216 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification217 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 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE218 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification219 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification220 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE221 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification222 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification223 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 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE224 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification225 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification226 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 12 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE227 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification228 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification229 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 13 of #text > DIV > DIV > BODY > HTML > #document to 13 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE230 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification231 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification232 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text > DIV > DIV > BODY > HTML > #document to 13 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE233 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification234 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification235 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE236 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification237 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification238 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE239 EDITING DELEGATE: shouldInsertText:would replacingDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionTyped240 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE241 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE242 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification243 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification244 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > 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:FALSE245 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification246 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification247 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification248 248 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > DIV > DIV > BODY > HTML > #document to 14 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 249 249 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/mac/editing/spelling/click-autocorrected-word-expected.txt
r97384 r147994 58 58 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 59 59 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 60 layer at (0,0) size 800x600 61 RenderView at (0,0) size 800x600 62 layer at (0,0) size 800x600 63 RenderBlock {HTML} at (0,0) size 800x600 64 RenderBody {BODY} at (8,8) size 784x584 65 RenderBlock {P} at (0,0) size 784x36 66 RenderText {#text} at (0,0) size 753x36 67 text run at (0,0) width 753: "The test verified that if user clicks a word that is marked as autocorrected, the autocorrection underline will remain. You" 68 text run at (0,18) width 460: "should see phrase \"it's a message\", in which the word 'message' has blue " 69 text run at (460,18) width 63: "underline." 70 RenderBlock {P} at (0,52) size 784x54 [color=#008000] 71 RenderText {#text} at (0,0) size 774x54 72 text run at (0,0) width 393: "Note, this test can fail due to user specific spell checking data. " 73 text run at (393,0) width 373: "If the user has previously dismissed 'message' as the correct" 74 text run at (0,18) width 216: "spelling of 'mesage' several times, " 75 text run at (216,18) width 558: "the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove" 76 text run at (0,36) width 185: "all files in ~/Library/Spelling." 77 RenderBlock {DIV} at (0,122) size 784x18 78 RenderText {#text} at (0,0) size 89x18 79 text run at (0,0) width 85: "it's a message" 80 text run at (85,0) width 4: " " 81 RenderText {#text} at (0,0) size 0x0 82 caret: position 10 of child 0 {#text} of child 5 {DIV} of body 60 PASS markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer is textNode 61 PASS markerRange.toString() is 'message' 62 PASS markerRange.endContainer is textNode 63 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 64 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 65 PASS internals.markerRangeForNode(textNode, 'replacement', 1) is null 66 PASS internals.markerRangeForNode(textNode, 'spelling', 0) is null 67 PASS internals.markerRangeForNode(textNode, 'autocorrected', 0) is null 68 PASS successfullyParsed is true 69 70 TEST COMPLETE 71 The test verified that if user clicks a word that is marked as autocorrected, the autocorrection underline will remain. You should see phrase "it's a message", in which the word 'message' has blue underline. 72 73 Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'message' as the correct spelling of 'mesage' several times, the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling. 74 75 it's a message -
trunk/LayoutTests/platform/mac/editing/spelling/click-autocorrected-word.html
r80226 r147994 2 2 <head> 3 3 <script src=../../../../editing/editing.js language="javascript" type="text/javascript"></script> 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 5 <script> 5 6 … … 23 24 typeCharacterCommand(' '); 24 25 s.setBaseAndExtent(edit.firstChild, 10, edit.firstChild, 10); 26 27 if (window.testRunner) { 28 testRunner.dumpAsText(true); 29 textNode = edit.firstChild; 30 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer", "textNode"); 31 shouldBe("markerRange.toString()", "'message'"); 32 shouldBe("markerRange.endContainer", "textNode"); 33 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 34 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 35 shouldBeNull("internals.markerRangeForNode(textNode, 'replacement', 1)"); 36 shouldBeNull("internals.markerRangeForNode(textNode, 'spelling', 0)"); 37 shouldBeNull("internals.markerRangeForNode(textNode, 'autocorrected', 0)"); 38 } 25 39 } 26 40 … … 40 54 runEditingTest(); 41 55 </script> 56 <script src="../../../../fast/js/resources/js-test-post.js"></script> 42 57 </body> 43 58 </html> -
trunk/LayoutTests/platform/mac/editing/spelling/delete-into-autocorrected-word-expected.txt
r97384 r147994 61 61 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 62 62 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 63 layer at (0,0) size 800x600 64 RenderView at (0,0) size 800x600 65 layer at (0,0) size 800x600 66 RenderBlock {HTML} at (0,0) size 800x600 67 RenderBody {BODY} at (8,8) size 784x584 68 RenderBlock {P} at (0,0) size 784x18 69 RenderText {#text} at (0,0) size 612x18 70 text run at (0,0) width 373: "You should see phrase \"it's a message\", in which the word " 71 text run at (373,0) width 239: "'message' doesn't have blue underline." 72 RenderBlock {P} at (0,34) size 784x54 [color=#008000] 73 RenderText {#text} at (0,0) size 774x54 74 text run at (0,0) width 393: "Note, this test can fail due to user specific spell checking data. " 75 text run at (393,0) width 373: "If the user has previously dismissed 'message' as the correct" 76 text run at (0,18) width 216: "spelling of 'mesage' several times, " 77 text run at (216,18) width 558: "the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove" 78 text run at (0,36) width 185: "all files in ~/Library/Spelling." 79 RenderBlock {DIV} at (0,104) size 784x18 80 RenderText {#text} at (0,0) size 85x18 81 text run at (0,0) width 85: "it's a message" 82 RenderText {#text} at (0,0) size 0x0 83 caret: position 14 of child 0 {#text} of child 5 {DIV} of body 63 PASS markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer is textNode 64 PASS markerRange.toString() is 'message' 65 PASS markerRange.endContainer is textNode 66 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 67 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 68 PASS internals.markerRangeForNode(textNode, 'replacement', 1) is null 69 PASS internals.markerRangeForNode(textNode, 'spelling', 0) is null 70 PASS internals.markerRangeForNode(textNode, 'autocorrected', 0) is null 71 PASS successfullyParsed is true 72 73 TEST COMPLETE 74 You should see phrase "it's a message", in which the word 'message' doesn't have blue underline. 75 76 Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'message' as the correct spelling of 'mesage' several times, the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling. 77 78 it's a message -
trunk/LayoutTests/platform/mac/editing/spelling/delete-into-autocorrected-word.html
r80226 r147994 2 2 <head> 3 3 <script src=../../../../editing/editing.js language="javascript" type="text/javascript"></script> 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 5 <script> 5 6 … … 22 23 typeCharacterCommand(' '); 23 24 execDeleteCommand(); 25 26 if (window.testRunner) { 27 testRunner.dumpAsText(true); 28 textNode = edit.firstChild; 29 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer", "textNode"); 30 shouldBe("markerRange.toString()", "'message'"); 31 shouldBe("markerRange.endContainer", "textNode"); 32 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 33 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 34 shouldBeNull("internals.markerRangeForNode(textNode, 'replacement', 1)"); 35 shouldBeNull("internals.markerRangeForNode(textNode, 'spelling', 0)"); 36 shouldBeNull("internals.markerRangeForNode(textNode, 'autocorrected', 0)"); 37 } 24 38 } 25 39 … … 38 52 runEditingTest(); 39 53 </script> 54 <script src="../../../../fast/js/resources/js-test-post.js"></script> 40 55 </body> 41 56 </html> -
trunk/LayoutTests/platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.txt
r97384 r147994 61 61 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 62 62 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 63 layer at (0,0) size 800x600 64 RenderView at (0,0) size 800x600 65 layer at (0,0) size 800x600 66 RenderBlock {HTML} at (0,0) size 800x600 67 RenderBody {BODY} at (8,8) size 784x584 68 RenderBlock {P} at (0,0) size 784x18 69 RenderText {#text} at (0,0) size 608x18 70 text run at (0,0) width 369: "You should see phrase \"it's amessage\", in which the word " 71 text run at (369,0) width 239: "'message' doesn't have blue underline." 72 RenderBlock {P} at (0,34) size 784x54 [color=#008000] 73 RenderText {#text} at (0,0) size 774x54 74 text run at (0,0) width 393: "Note, this test can fail due to user specific spell checking data. " 75 text run at (393,0) width 373: "If the user has previously dismissed 'message' as the correct" 76 text run at (0,18) width 216: "spelling of 'mesage' several times, " 77 text run at (216,18) width 558: "the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove" 78 text run at (0,36) width 185: "all files in ~/Library/Spelling." 79 RenderBlock {DIV} at (0,104) size 784x18 80 RenderText {#text} at (0,0) size 85x18 81 text run at (0,0) width 81: "it's amessage" 82 text run at (81,0) width 4: " " 83 RenderText {#text} at (0,0) size 0x0 84 caret: position 6 of child 0 {#text} of child 5 {DIV} of body 63 PASS markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer is textNode 64 PASS markerRange.toString() is 'message' 65 PASS markerRange.endContainer is textNode 66 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 67 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 68 PASS internals.markerRangeForNode(textNode, 'replacement', 1) is null 69 PASS markerRange = internals.markerRangeForNode(textNode, 'spelling', 0); markerRange.startContainer is textNode 70 PASS markerRange.toString() is 'amessage' 71 PASS markerRange.endContainer is textNode 72 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 73 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 74 PASS internals.markerRangeForNode(textNode, 'spelling', 1) is null 75 PASS internals.markerRangeForNode(textNode, 'autocorrected', 0) is null 76 PASS successfullyParsed is true 77 78 TEST COMPLETE 79 You should see phrase "it's amessage", in which the word 'message' doesn't have blue underline. 80 81 Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'message' as the correct spelling of 'mesage' several times, the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling. 82 83 it's amessage -
trunk/LayoutTests/platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html
r80226 r147994 2 2 <head> 3 3 <script src=../../../../editing/editing.js language="javascript" type="text/javascript"></script> 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 5 <script> 5 6 … … 24 25 s.setBaseAndExtent(edit.firstChild, 6, edit.firstChild, 6); 25 26 execForwardDeleteCommand(); 27 28 if (window.testRunner) { 29 testRunner.dumpAsText(true); 30 textNode = edit.firstChild; 31 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer", "textNode"); 32 shouldBe("markerRange.toString()", "'message'"); 33 shouldBe("markerRange.endContainer", "textNode"); 34 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 35 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 36 shouldBeNull("internals.markerRangeForNode(textNode, 'replacement', 1)"); 37 38 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'spelling', 0); markerRange.startContainer", "textNode"); 39 shouldBe("markerRange.toString()", "'amessage'"); 40 shouldBe("markerRange.endContainer", "textNode"); 41 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 42 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 43 shouldBeNull("internals.markerRangeForNode(textNode, 'spelling', 1)"); 44 45 shouldBeNull("internals.markerRangeForNode(textNode, 'autocorrected', 0)"); 46 } 26 47 } 27 48 … … 40 61 runEditingTest(); 41 62 </script> 63 <script src="../../../../fast/js/resources/js-test-post.js"></script> 42 64 </body> 43 65 </html> -
trunk/LayoutTests/platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.txt
r97384 r147994 58 58 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 59 59 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 60 layer at (0,0) size 800x600 61 RenderView at (0,0) size 800x600 62 layer at (0,0) size 800x600 63 RenderBlock {HTML} at (0,0) size 800x600 64 RenderBody {BODY} at (8,8) size 784x584 65 RenderBlock {P} at (0,0) size 784x36 66 RenderText {#text} at (0,0) size 766x36 67 text run at (0,0) width 653: "The test verified that if user used arrow key to move cursor into a word that is marked as autocorrected, " 68 text run at (653,0) width 113: "the autocorrection" 69 text run at (0,18) width 515: "underline will remain. You should see phrase \"it's a message\", in which the word " 70 text run at (515,18) width 182: "'message' has blue underline." 71 RenderBlock {P} at (0,52) size 784x54 [color=#008000] 72 RenderText {#text} at (0,0) size 774x54 73 text run at (0,0) width 393: "Note, this test can fail due to user specific spell checking data. " 74 text run at (393,0) width 373: "If the user has previously dismissed 'message' as the correct" 75 text run at (0,18) width 216: "spelling of 'mesage' several times, " 76 text run at (216,18) width 558: "the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove" 77 text run at (0,36) width 185: "all files in ~/Library/Spelling." 78 RenderBlock {DIV} at (0,122) size 784x18 79 RenderText {#text} at (0,0) size 89x18 80 text run at (0,0) width 85: "it's a message" 81 text run at (85,0) width 4: " " 82 RenderText {#text} at (0,0) size 0x0 83 caret: position 14 of child 0 {#text} of child 5 {DIV} of body 60 PASS markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer is textNode 61 PASS markerRange.toString() is 'message' 62 PASS markerRange.endContainer is textNode 63 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 64 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 65 PASS internals.markerRangeForNode(textNode, 'replacement', 1) is null 66 PASS internals.markerRangeForNode(textNode, 'spelling', 0) is null 67 PASS internals.markerRangeForNode(textNode, 'autocorrected', 0) is null 68 PASS successfullyParsed is true 69 70 TEST COMPLETE 71 The test verified that if user used arrow key to move cursor into a word that is marked as autocorrected, the autocorrection underline will remain. You should see phrase "it's a message", in which the word 'message' has blue underline. 72 73 Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'message' as the correct spelling of 'mesage' several times, the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling. 74 75 it's a message -
trunk/LayoutTests/platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html
r80226 r147994 2 2 <head> 3 3 <script src=../../../../editing/editing.js language="javascript" type="text/javascript"></script> 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 5 <script> 5 6 … … 22 23 typeCharacterCommand(' '); 23 24 execMoveSelectionBackwardByCharacterCommand(); 25 26 if (window.testRunner) { 27 testRunner.dumpAsText(true); 28 textNode = edit.firstChild; 29 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer", "textNode"); 30 shouldBe("markerRange.toString()", "'message'"); 31 shouldBe("markerRange.endContainer", "textNode"); 32 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 33 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 34 shouldBeNull("internals.markerRangeForNode(textNode, 'replacement', 1)"); 35 shouldBeNull("internals.markerRangeForNode(textNode, 'spelling', 0)"); 36 shouldBeNull("internals.markerRangeForNode(textNode, 'autocorrected', 0)"); 37 } 24 38 } 25 39 … … 39 53 runEditingTest(); 40 54 </script> 55 <script src="../../../../fast/js/resources/js-test-post.js"></script> 41 56 </body> 42 57 </html> -
trunk/LayoutTests/platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.txt
r97384 r147994 59 59 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 60 60 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 61 layer at (0,0) size 800x600 62 RenderView at (0,0) size 800x600 63 layer at (0,0) size 800x600 64 RenderBlock {HTML} at (0,0) size 800x600 65 RenderBody {BODY} at (8,8) size 784x584 66 RenderBlock {P} at (0,0) size 784x36 67 RenderText {#text} at (0,0) size 741x36 68 text run at (0,0) width 453: "The test verified that if user moves caret to the beginning of a word that " 69 text run at (453,0) width 288: "is marked as autocorrected, the autocorrection" 70 text run at (0,18) width 328: "underline will remain. You should see phrase \"it's a " 71 text run at (328,18) width 369: "message\", in which the word 'message' has blue underline." 72 RenderBlock {P} at (0,52) size 784x54 [color=#008000] 73 RenderText {#text} at (0,0) size 774x54 74 text run at (0,0) width 393: "Note, this test can fail due to user specific spell checking data. " 75 text run at (393,0) width 373: "If the user has previously dismissed 'message' as the correct" 76 text run at (0,18) width 216: "spelling of 'mesage' several times, " 77 text run at (216,18) width 558: "the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove" 78 text run at (0,36) width 185: "all files in ~/Library/Spelling." 79 RenderBlock {DIV} at (0,122) size 784x18 80 RenderText {#text} at (0,0) size 89x18 81 text run at (0,0) width 85: "it's a message" 82 text run at (85,0) width 4: " " 83 RenderText {#text} at (0,0) size 0x0 84 caret: position 7 of child 0 {#text} of child 5 {DIV} of body 61 PASS markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer is textNode 62 PASS markerRange.toString() is 'message' 63 PASS markerRange.endContainer is textNode 64 PASS markerRange.startOffset is textNode.textContent.indexOf(markerRange.toString()) 65 PASS markerRange.endOffset is markerRange.startOffset + markerRange.toString().length 66 PASS internals.markerRangeForNode(textNode, 'replacement', 1) is null 67 PASS internals.markerRangeForNode(textNode, 'spelling', 0) is null 68 PASS internals.markerRangeForNode(textNode, 'autocorrected', 0) is null 69 PASS successfullyParsed is true 70 71 TEST COMPLETE 72 The test verified that if user moves caret to the beginning of a word that is marked as autocorrected, the autocorrection underline will remain. You should see phrase "it's a message", in which the word 'message' has blue underline. 73 74 Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'message' as the correct spelling of 'mesage' several times, the spell checker will not provide 'message' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling. 75 76 it's a message -
trunk/LayoutTests/platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html
r80226 r147994 2 2 <head> 3 3 <script src=../../../../editing/editing.js language="javascript" type="text/javascript"></script> 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 5 <script> 5 6 7 var textNode; 8 var markerRange; 6 9 function editingTest() { 7 10 edit = document.getElementById('edit'); … … 24 27 s.setBaseAndExtent(edit.firstChild, 6, edit.firstChild, 6); 25 28 execMoveSelectionForwardByCharacterCommand(); 29 30 if (window.testRunner) { 31 testRunner.dumpAsText(true); 32 textNode = edit.firstChild; 33 shouldBe("markerRange = internals.markerRangeForNode(textNode, 'replacement', 0); markerRange.startContainer", "textNode"); 34 shouldBe("markerRange.toString()", "'message'"); 35 shouldBe("markerRange.endContainer", "textNode"); 36 shouldBe("markerRange.startOffset", "textNode.textContent.indexOf(markerRange.toString())"); 37 shouldBe("markerRange.endOffset", "markerRange.startOffset + markerRange.toString().length"); 38 shouldBeNull("internals.markerRangeForNode(textNode, 'replacement', 1)"); 39 shouldBeNull("internals.markerRangeForNode(textNode, 'spelling', 0)"); 40 shouldBeNull("internals.markerRangeForNode(textNode, 'autocorrected', 0)"); 41 } 26 42 } 27 43 … … 41 57 runEditingTest(); 42 58 </script> 59 <script src="../../../../fast/js/resources/js-test-post.js"></script> 43 60 </body> 44 61 </html> -
trunk/Tools/ChangeLog
r147991 r147994 1 2013-04-09 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION: Autocorrection doesn't work in DumpRenderTree 4 https://bugs.webkit.org/show_bug.cgi?id=113846 5 6 Reviewed by Alexey Proskuryakov. 7 8 The problem was that we were replacing NSSpellCheck's dictionary with our own 9 in DumpRenderTree but we were not adding necessary corrections to the dictionary. 10 11 Fixed the bug by having NSSpellChecker correct "mesage" and "wouldn" to "message" 12 and "would" respectively in DumpRenderTree. 13 14 * DumpRenderTree/mac/DumpRenderTree.mm: 15 (resetDefaultsToConsistentValues): 16 1 17 2013-04-09 Benjamin Poulain <benjamin@webkit.org> 2 18 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r147705 r147994 597 597 598 598 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 599 [defaults setObject:[NSDictionary dictionaryWithObjectsAndKeys:@"notational", @"notationl", nil] forKey:@"NSTestCorrectionDictionary"]; 599 [defaults setObject:[NSDictionary dictionaryWithObjectsAndKeys: 600 @"notational", @"notationl", 601 @"message", @"mesage", 602 @"would", @"wouldn", 603 nil] forKey:@"NSTestCorrectionDictionary"]; 600 604 #endif 601 605
Note: See TracChangeset
for help on using the changeset viewer.