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

Issue 2450733002: Make spellcheck_test easier to use (Closed)

Created:
4 years, 1 month ago by Xiaocheng
Modified:
4 years, 1 month ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make spellcheck_test easier to use This patch aims at simplifying the usage of |spellcheck_test| by changing the way how expectation is passed. With this patch, we no longer count character offsets as before, but pass an HTML fragment instead, in the same spirit as |assert_selection|, with the only difference that we do not indicate the ending selection, but instead, surround marked text with '_' for spelling marker and '~' for grammar marker, respectively. Example: spellcheck_test( '<div contenteditable>|</div>', 'insertText zz.', '<div contenteditable>_zz_.</div>', 'Mark misspellings after typing.'); This patch temporarily removes the functionality of checking marker description from |spellcheck_test|, which will be added back in the future. BUG=517298 Committed: https://crrev.com/1f5ab09f8114481f968bddfe614887b2b00a13c4 Cr-Commit-Position: refs/heads/master@{#427586}

Patch Set 1 #

Total comments: 18

Patch Set 2 : minor revision #

Total comments: 3

Patch Set 3 : Tue Oct 25 21:56:06 JST 2016 #

Total comments: 2

Patch Set 4 : Wed Oct 26 11:19:55 JST 2016 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -237 lines) Patch
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html View 1 2 1 chunk +32 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js View 1 2 3 4 chunks +253 lines, -218 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (17 generated)
Xiaocheng
This is still WIP, but I would like to have some comments first :)
4 years, 1 month ago (2016-10-25 08:11:34 UTC) #2
Xiaocheng
PTAL at the updated patch.
4 years, 1 month ago (2016-10-25 08:52:53 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2450733002/diff/1/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html (right): https://codereview.chromium.org/2450733002/diff/1/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html#newcode13 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html:13: '<div contenteditable>__.</div>', How about having expected selection? spellcheck_test( '<div ...
4 years, 1 month ago (2016-10-25 09:41:11 UTC) #7
yosin_UTC9
https://codereview.chromium.org/2450733002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html (right): https://codereview.chromium.org/2450733002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html#newcode26 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html:26: '<div contenteditable>~~~~~~~##~~~~~~~</div>', Yet another idea: spellcheck_test( '<div contenteditable>|</div>', 'insertText ...
4 years, 1 month ago (2016-10-25 09:54:01 UTC) #8
Xiaocheng
Updated with: - changed the specification of |expectedText| - fixed a bug with serializing TEXTAREA ...
4 years, 1 month ago (2016-10-25 13:19:17 UTC) #14
yosin_UTC9
lgtm w/ small nits https://codereview.chromium.org/2450733002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2450733002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode66 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:66: if (!isElement(node)) nit: We don't ...
4 years, 1 month ago (2016-10-26 02:11:12 UTC) #18
Xiaocheng
Committing with nits fixed.
4 years, 1 month ago (2016-10-26 02:20:57 UTC) #20
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/2450733002/60001
4 years, 1 month ago (2016-10-26 02:21:13 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/322404)
4 years, 1 month ago (2016-10-26 02:26:00 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/2450733002/60001
4 years, 1 month ago (2016-10-26 03:11:13 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-26 04:07:46 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 04:11:17 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1f5ab09f8114481f968bddfe614887b2b00a13c4
Cr-Commit-Position: refs/heads/master@{#427586}

Powered by Google App Engine
This is Rietveld 408576698