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

Issue 2727673005: Better spellcheck_test (Closed)

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

Description

Better spellcheck_test spellcheck_test used to verify spellchecking results by repeatedly settings timeouts and compare after timeout, which is an inefficient and error-prone pattern. This patch makes the verification more efficient: - If spellchecker didn't create any result, validate immediately - Otherwise, validate when all pending results have been resolved BUG=517298 Review-Url: https://codereview.chromium.org/2727673005 Cr-Commit-Position: refs/heads/master@{#454958} Committed: https://chromium.googlesource.com/chromium/src/+/266c9a16c8af6638fd43307a4aac5df5077f1c88

Patch Set 1 #

Patch Set 2 : minor fix #

Patch Set 3 : more minor fix #

Total comments: 6

Patch Set 4 : Stop compiler from complaining #

Patch Set 5 : Use FOR_EACH(V) #

Patch Set 6 : Rebased #

Total comments: 3

Patch Set 7 : Mon Mar 6 11:18:30 PST 2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -63 lines) Patch
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js View 1 2 3 4 5 6 7 chunks +56 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h View 1 2 3 4 5 6 2 chunks +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 2 chunks +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (20 generated)
Xiaocheng
PTAL.
3 years, 9 months ago (2017-03-03 04:16:52 UTC) #7
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2727673005/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/2727673005/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode308 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:308: var verificationForCurrentTest = null; nit: s/var/let/ ...
3 years, 9 months ago (2017-03-03 04:44:59 UTC) #12
Xiaocheng
Updated. PTAL. https://codereview.chromium.org/2727673005/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/2727673005/diff/40001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js#newcode308 third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js:308: var verificationForCurrentTest = null; On 2017/03/03 at ...
3 years, 9 months ago (2017-03-03 18:56:41 UTC) #15
yosin_UTC9
still lgtm https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h (right): https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h#newcode18 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h:18: V(kInactive) \ I prefer not to have ...
3 years, 9 months ago (2017-03-06 05:01:26 UTC) #20
Xiaocheng
Kent-san, could you review the changes in core/testings? Thanks! https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h (right): https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h#newcode18 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h:18: ...
3 years, 9 months ago (2017-03-06 06:31:19 UTC) #21
yosin_UTC9
On 2017/03/06 at 06:31:19, xiaochengh wrote: > Kent-san, could you review the changes in core/testings? ...
3 years, 9 months ago (2017-03-06 06:37:49 UTC) #22
Xiaocheng
https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h (right): https://codereview.chromium.org/2727673005/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h#newcode18 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h:18: V(kInactive) \ On 2017/03/06 at 06:31:19, Xiaocheng wrote: > ...
3 years, 9 months ago (2017-03-06 06:41:32 UTC) #23
tkent
lgtm
3 years, 9 months ago (2017-03-06 06:44:20 UTC) #24
Xiaocheng
Committing after fixing the macros...
3 years, 9 months ago (2017-03-06 19:33:01 UTC) #26
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/2727673005/120001
3 years, 9 months ago (2017-03-06 19:33:34 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 21:16:44 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/266c9a16c8af6638fd43307a4aac...

Powered by Google App Engine
This is Rietveld 408576698