Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Issue 219073002: design-mode-spellcheck-off.html is always passing (Closed)

Created:
6 years, 8 months ago by grzegorz
Modified:
6 years, 8 months ago
Reviewers:
tony, groby-ooo-7-16
CC:
blink-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

design-mode-spellcheck-off.html is always passing There are two reasons for the positive result of the test. Firstly, assuming that the misspelled word has been already typed, placing the caret at the beginning or in the middle of the word does not guarantee to be spellchecked. The patch moves the selection out of the misspelled words. Secondly, MockSpellCheck::misspelledWords[] contatins 'asd' not 'asdf'. As a result, 'asdf' could not be recognized as misspelled word. Consistent with editing/selection/13804.html, design-mode-spellcheck-off.html relies on 'asd' as well. <body spellcheck=false> causes that the bug was not revealed. To be more reliable, the test now contains two test cases when spellcheck attribute is off and on. Due to js-test.js adds some HTML elements inside the BODY, the misspelled phrase was moved into separated div element. It allows to check spelling marker on desired element instead of whole body. Inspired by WebKit changeset http://trac.webkit.org/changeset/164101. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170858

Patch Set 1 #

Total comments: 1

Patch Set 2 : verify 'asd' (not 'asdf') since MockSpellCheck::misspelledWords[] contatins it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -20 lines) Patch
M LayoutTests/editing/spelling/design-mode-spellcheck-off.html View 1 2 chunks +24 lines, -17 lines 0 comments Download
M LayoutTests/editing/spelling/design-mode-spellcheck-off-expected.txt View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
grzegorz
6 years, 8 months ago (2014-03-31 08:32:28 UTC) #1
grzegorz
Hi, May I ask you for review this CL? Thanks
6 years, 8 months ago (2014-04-01 12:43:33 UTC) #2
tony
LGTM https://codereview.chromium.org/219073002/diff/1/LayoutTests/editing/spelling/design-mode-spellcheck-off.html File LayoutTests/editing/spelling/design-mode-spellcheck-off.html (right): https://codereview.chromium.org/219073002/diff/1/LayoutTests/editing/spelling/design-mode-spellcheck-off.html#newcode9 LayoutTests/editing/spelling/design-mode-spellcheck-off.html:9: + "when spellcheck='false'. To test manually, click arround ...
6 years, 8 months ago (2014-04-01 16:38:44 UTC) #3
groby-ooo-7-16
RSLGTM
6 years, 8 months ago (2014-04-01 18:03:11 UTC) #4
grzegorz
Thanks for the review. I can not commit it due to a dependent bug 214153005 ...
6 years, 8 months ago (2014-04-03 13:31:23 UTC) #5
grzegorz
The CQ bit was checked by g.czajkowski@samsung.com
6 years, 8 months ago (2014-04-04 11:18:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/g.czajkowski@samsung.com/219073002/20001
6 years, 8 months ago (2014-04-04 11:18:43 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 12:20:03 UTC) #8
Message was sent while issue was closed.
Change committed as 170858

Powered by Google App Engine
This is Rietveld 408576698