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

Issue 2435273002: Introduce spellcheck_test (Closed)

Created:
4 years, 2 months 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

Introduce spellcheck_test This patch introduces |spellcheck_test| for writing asynchronous layout tests for spellchecker in an intuitive manner, following the same spirit of |assert_selection|. This patch allows us to convert existing spellcheck tests easily as a preparation for idle time spellchecker. BUG=517298 Committed: https://crrev.com/75efa395dfe1f181bd98e0a595cd3083cc3e50d7 Cr-Commit-Position: refs/heads/master@{#427035}

Patch Set 1 #

Patch Set 2 : Introduce Marker class #

Total comments: 18

Patch Set 3 : spellcheck_test Mon Oct 24 14:09:33 JST 2016 #

Total comments: 6

Patch Set 4 : Address comments and disallow simultaneous running #

Total comments: 20

Patch Set 5 : Mon Oct 24 16:17:59 JST 2016 #

Total comments: 1

Patch Set 6 : Mon Oct 24 16:37:45 JST 2016 #

Total comments: 6

Patch Set 7 : Mon Oct 24 17:28:00 JST 2016 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js View 1 2 3 4 5 6 1 chunk +351 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
Xiaocheng
PTAL. Besides, is there any tool to check if the annotations are correct?
4 years, 1 month ago (2016-10-24 03:35:15 UTC) #8
yosin_UTC9
On 2016/10/24 at 03:35:15, xiaochengh wrote: > PTAL. > > Besides, is there any tool ...
4 years, 1 month ago (2016-10-24 04:28:07 UTC) #11
yosin_UTC9
Please add "!" for type annotation as much as possible you can. https://codereview.chromium.org/2435273002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html ...
4 years, 1 month ago (2016-10-24 04:40:08 UTC) #12
Xiaocheng
Updated. Closure compiles now reports "variable assert_foo undefined" only. PTAL. https://codereview.chromium.org/2435273002/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/2435273002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html#newcode9 ...
4 years, 1 month ago (2016-10-24 05:11:38 UTC) #15
yosin_UTC9
https://codereview.chromium.org/2435273002/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/2435273002/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode34 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:34: // { Let's use |spellingMarker()| and |grammarMarker()| in examples. ...
4 years, 1 month ago (2016-10-24 06:17:00 UTC) #16
Xiaocheng
I realized that we must ensure that the spellcheck tests are run sequentially, since spellchecker ...
4 years, 1 month ago (2016-10-24 06:37:57 UTC) #21
yosin_UTC9
https://codereview.chromium.org/2435273002/diff/60001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2435273002/diff/60001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode61 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:61: /** @type {string|null} */ s/string|null/?string/ https://codereview.chromium.org/2435273002/diff/60001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode62 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:62: this.description_ = ...
4 years, 1 month ago (2016-10-24 06:58:32 UTC) #22
Xiaocheng
Updated. PTAL. https://codereview.chromium.org/2435273002/diff/60001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2435273002/diff/60001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode61 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:61: /** @type {string|null} */ On 2016/10/24 at ...
4 years, 1 month ago (2016-10-24 07:18:57 UTC) #23
yosin_UTC9
https://codereview.chromium.org/2435273002/diff/70001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2435273002/diff/70001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode67 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:67: this.description_ = opt_description ? opt_description : null; Let's have ...
4 years, 1 month ago (2016-10-24 07:28:18 UTC) #24
Xiaocheng
Updated with the introduction of |ignoreDescription_|. Also added an empty-array check in |checkExpectedMarkers| since Array#reduce ...
4 years, 1 month ago (2016-10-24 07:41:40 UTC) #25
yosin_UTC9
https://codereview.chromium.org/2435273002/diff/90001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2435273002/diff/90001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode149 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:149: if (!expectedMarkers.length) Better to write: |expectedMarkers.length === 0| https://codereview.chromium.org/2435273002/diff/90001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode171 ...
4 years, 1 month ago (2016-10-24 07:54:14 UTC) #26
Xiaocheng
Updated with making assertion failure message more user friendly. PTAL. https://codereview.chromium.org/2435273002/diff/90001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js File third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js (right): https://codereview.chromium.org/2435273002/diff/90001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode149 ...
4 years, 1 month ago (2016-10-24 08:29:24 UTC) #27
yosin_UTC9
lgtm
4 years, 1 month ago (2016-10-24 08:40:51 UTC) #29
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/2435273002/110001
4 years, 1 month ago (2016-10-24 08:41:05 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 1 month ago (2016-10-24 09:57:20 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 09:59:07 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/75efa395dfe1f181bd98e0a595cd3083cc3e50d7
Cr-Commit-Position: refs/heads/master@{#427035}

Powered by Google App Engine
This is Rietveld 408576698