DescriptionBetter 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 #
Dependent Patchsets: Messages
Total messages: 31 (20 generated)
|