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

Issue 23534071: Use shouldBecomeEqual in asynchronous spellchecking tests. (Closed)

Created:
7 years, 3 months ago by grzegorz
Modified:
7 years, 3 months ago
Reviewers:
tony, gmorrita
CC:
blink-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Use shouldBecomeEqual in asynchronous spellchecking tests. Every asynchronous spellchecking layout test waits for spelling or grammar markers using setTimeout. It duplicates the code, moreover the implementation differs in every test. Use shouldBecomeEqual helper (introduced in WebKit's r143860) to test spellchecking asynchronously. In grammar-paste.html, dump text of destination element instead of source one to show what is really tested. It stops outputting that the input and textarea elements can store html tags, for example, PASS INPUT has a marker on 'I have a<b>n ki</b>wi'. This is mostly merge of WebKit changeset: http://trac.webkit.org/changeset/156137 In addition, adjust the latest Blink specific spellchecking tests to start using shouldBecomeEqual apart from spellcheck-editable-on-focus.html due to its flakiness. Turn on asynchronous spellchecking at the beginning of spellcheck-paste-disabled.html and spellcheck-paste-continuous-disabled.html. Previously, the feature was enabled in the second part of the tests and first one used synchronous path of spell checking which is going to be removed. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158283

Patch Set 1 #

Total comments: 2

Patch Set 2 : Apply Tony's review and use asynchronous spellchecking in two tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -188 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/editing/spelling/delete-misspelled-word.html View 1 chunk +1 line, -11 lines 0 comments Download
M LayoutTests/editing/spelling/delete-misspelled-word-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/spelling/grammar-markers.html View 1 2 chunks +10 lines, -17 lines 0 comments Download
M LayoutTests/editing/spelling/grammar-markers-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/editing/spelling/grammar-markers-hidpi.html View 1 1 chunk +9 lines, -16 lines 0 comments Download
M LayoutTests/editing/spelling/grammar-markers-hidpi-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/editing/spelling/grammar-paste.html View 2 chunks +10 lines, -21 lines 0 comments Download
M LayoutTests/editing/spelling/grammar-paste-expected.txt View 1 chunk +18 lines, -9 lines 0 comments Download
M LayoutTests/editing/spelling/move-cursor-to-misspelled-word.html View 2 chunks +3 lines, -1 line 0 comments Download
M LayoutTests/editing/spelling/move-cursor-to-misspelled-word-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/spelling/script-tests/spellcheck-paste.js View 2 chunks +13 lines, -21 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html View 1 2 chunks +4 lines, -19 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-disabled.html View 1 2 chunks +4 lines, -20 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-disabled-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-expected.txt View 1 chunk +11 lines, -2 lines 0 comments Download
M LayoutTests/editing/spelling/spelling-huge-text.html View 1 2 chunks +4 lines, -12 lines 0 comments Download
M LayoutTests/editing/spelling/spelling-huge-text-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/spelling/spelling-marker-description.html View 2 chunks +1 line, -28 lines 0 comments Download
M LayoutTests/editing/spelling/spelling-marker-description-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
grzegorz
7 years, 3 months ago (2013-09-20 14:11:04 UTC) #1
groby-ooo-7-16
One thing to keep in mind is that (IIRC!) Chromium doesn't actually use the synchronous ...
7 years, 3 months ago (2013-09-20 15:39:59 UTC) #2
Hajime Morrita
If we no longer use synchronous path and the async version is stable enough, it ...
7 years, 3 months ago (2013-09-20 15:54:04 UTC) #3
groby-ooo-7-16
I know - but I haven't looked at it in enough detail to know definitively ...
7 years, 3 months ago (2013-09-20 15:58:54 UTC) #4
tony
LGTM with the following fixes. https://codereview.chromium.org/23534071/diff/1/LayoutTests/editing/spelling/grammar-markers.html File LayoutTests/editing/spelling/grammar-markers.html (right): https://codereview.chromium.org/23534071/diff/1/LayoutTests/editing/spelling/grammar-markers.html#newcode27 LayoutTests/editing/spelling/grammar-markers.html:27: return false; Nit: Looks ...
7 years, 3 months ago (2013-09-20 17:10:24 UTC) #5
grzegorz
On 2013/09/20 15:58:54, groby wrote: > I know - but I haven't looked at it ...
7 years, 3 months ago (2013-09-24 13:42:20 UTC) #6
tony
LGTM
7 years, 3 months ago (2013-09-24 16:48:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/g.czajkowski@samsung.com/23534071/8001
7 years, 3 months ago (2013-09-24 16:49:07 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-24 17:50:54 UTC) #9
Message was sent while issue was closed.
Change committed as 158283

Powered by Google App Engine
This is Rietveld 408576698