[Chromium] Layout test does not return correct misspelling positions if there are...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 06:28:06 +0000 (06:28 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 06:28:06 +0000 (06:28 +0000)
commit62ce34e0964e86d736c3d146e10a59235ff9e3e6
tree95e63511fe397afbd1772f8e2af9e13549d63514
parentd3c24d411351cd3f792fbb5694db83c44e953a30
[Chromium] Layout test does not return correct misspelling positions if there are multiple misspelled words.
https://bugs.webkit.org/show_bug.cgi?id=72655

Patch by Shinya Kawanaka <shinyak@google.com> on 2011-11-20
Reviewed by Hajime Morita.

Tools:

Fixed the calculation of offset.

* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::finishLastTextCheck):

LayoutTests:

Fixed the calculation of offset, and added test cases having multiple misspelled words.

* editing/spelling/script-tests/spellcheck-paste.js:
  Added test cases having multiple misspelled words.
(verifyMarker):
(tests):
* editing/spelling/spellcheck-paste-expected.txt: Recreated.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/spelling/script-tests/spellcheck-paste.js
LayoutTests/editing/spelling/spellcheck-paste-expected.txt
Tools/ChangeLog
Tools/DumpRenderTree/chromium/WebViewHost.cpp