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

Issue 2932123002: Add test case for context click at misspelled word boundary (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add test case for context click at misspelled word boundary On most platforms, right-clicking a misspelled word only selects it and shows suggestions in the context menu if you right-clik in the interior of the word. In https://codereview.chromium.org/2925363002, I modified some of the spellcheck code (specifically, the method that replaces the misspelled word) to support the case where we have a caret selection immediately before or after a word, since tapping at a word boundary should open the spellcheck menu on Android (this feature is still in progress, but this is the behavior for a native EditText widget, so we're trying to match it.) This CL adds a test case to verify we don't accidentally change the behavior for other platforms. BUG=715365 Review-Url: https://codereview.chromium.org/2932123002 Cr-Commit-Position: refs/heads/master@{#478805} Committed: https://chromium.googlesource.com/chromium/src/+/e7fe96812663e16778c2517bd3587eded541088e

Patch Set 1 #

Patch Set 2 : Attempt to fix test on Mac #

Patch Set 3 : Actually fix Mac #

Total comments: 6

Patch Set 4 : Fix Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html View 1 2 3 3 chunks +40 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
rlanday
3 years, 6 months ago (2017-06-09 20:37:37 UTC) #4
rlanday
https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode103 third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html:103: container, 0, '', Note: we might want to modify ...
3 years, 6 months ago (2017-06-10 00:40:05 UTC) #11
Xiaocheng
https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode97 third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html:97: title: 'Context click at boundary of misspelled word.', nit: ...
3 years, 6 months ago (2017-06-10 01:02:51 UTC) #12
Xiaocheng
https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode103 third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html:103: container, 0, '', On 2017/06/10 at 01:02:51, Xiaocheng wrote: ...
3 years, 6 months ago (2017-06-10 01:07:30 UTC) #13
rlanday
https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode42 third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html:42: const x = document.offsetLeft + rect.left; If we move ...
3 years, 6 months ago (2017-06-10 06:20:39 UTC) #16
rlanday
3 years, 6 months ago (2017-06-10 06:20:42 UTC) #17
Xiaocheng
https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode42 third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html:42: const x = document.offsetLeft + rect.left; On 2017/06/10 at ...
3 years, 6 months ago (2017-06-12 19:06:26 UTC) #18
rlanday
On 2017/06/12 at 19:06:26, xiaochengh wrote: > https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html > File third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html (right): > > https://codereview.chromium.org/2932123002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html#newcode42 ...
3 years, 6 months ago (2017-06-12 20:12:44 UTC) #19
Xiaocheng
On 2017/06/12 at 20:12:44, rlanday wrote: > On 2017/06/12 at 19:06:26, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-12 21:11:08 UTC) #20
rlanday
Ok, I've moved the x coord over two pixels. There's one more thing I had ...
3 years, 6 months ago (2017-06-12 21:26:55 UTC) #23
Xiaocheng
lgtm Shifting by 2 px seems pretty hacky but... whatever.
3 years, 6 months ago (2017-06-12 21:50:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932123002/60001
3 years, 6 months ago (2017-06-12 22:00:21 UTC) #26
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 22:59:16 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e7fe96812663e16778c2517bd358...

Powered by Google App Engine
This is Rietveld 408576698