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

Issue 49613006: Refactoring inline_spelling_markers.html to use async path for spellcheck (Closed)

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

Description

Refactoring inline_spelling_markers.html to use async path for spellcheck This change mostly adapts inline_spelling_markers.html to use asynchronous path for spellchecking which will be enabled by default. To achieve this, shouldBecomeEqual helper has been used. Additionally, make cross platform text expectation by dumping spelling/grammar markers instead of whole tree which in terms of spellchecking says nothing. Enabling unified text checker and adjusting MockGrammarCheck.cpp allow us to restore grammar checking in inline_spelling_markers.html. Remove unnecessary new lines in div elements so position of markers can be given from 0. BUG=295722 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161436

Patch Set 1 #

Total comments: 6

Patch Set 2 : Took into account groby's comments #

Patch Set 3 : Rebase commit (due to recent changes in TestExpectations) #

Total comments: 2

Patch Set 4 : Use resources/js-test.js and remove js-test-post.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -116 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/editing/spelling/inline_spelling_markers.html View 1 2 3 2 chunks +71 lines, -37 lines 0 comments Download
M LayoutTests/editing/spelling/inline_spelling_markers-expected.txt View 1 1 chunk +40 lines, -39 lines 0 comments Download
D LayoutTests/platform/linux/editing/spelling/inline_spelling_markers-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win/editing/spelling/inline_spelling_markers-expected.txt View 1 chunk +0 lines, -39 lines 0 comments Download
M Source/testing/runner/MockGrammarCheck.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
grzegorz
7 years, 1 month ago (2013-10-29 15:01:47 UTC) #1
tony
LGTM
7 years, 1 month ago (2013-10-29 17:16:47 UTC) #2
groby-ooo-7-16
https://codereview.chromium.org/49613006/diff/1/LayoutTests/editing/spelling/inline_spelling_markers.html File LayoutTests/editing/spelling/inline_spelling_markers.html (right): https://codereview.chromium.org/49613006/diff/1/LayoutTests/editing/spelling/inline_spelling_markers.html#newcode72 LayoutTests/editing/spelling/inline_spelling_markers.html:72: for (var i = 0; i < div.innerHTML.length; i++ ...
7 years, 1 month ago (2013-10-29 17:19:05 UTC) #3
groby-ooo-7-16
7 years, 1 month ago (2013-10-29 17:19:25 UTC) #4
grzegorz
https://codereview.chromium.org/49613006/diff/1/LayoutTests/editing/spelling/inline_spelling_markers.html File LayoutTests/editing/spelling/inline_spelling_markers.html (right): https://codereview.chromium.org/49613006/diff/1/LayoutTests/editing/spelling/inline_spelling_markers.html#newcode72 LayoutTests/editing/spelling/inline_spelling_markers.html:72: for (var i = 0; i < div.innerHTML.length; i++ ...
7 years, 1 month ago (2013-10-30 15:47:47 UTC) #5
grzegorz
Two thing came to mind after patch#2 1) we could apply those changes to its ...
7 years, 1 month ago (2013-10-31 13:55:22 UTC) #6
groby-ooo-7-16
lgtm Since this doesn't seem to
7 years, 1 month ago (2013-11-01 01:13:49 UTC) #7
groby-ooo-7-16
Gah. Ignore trailing text. This does indeed look fine to me, and if you can ...
7 years, 1 month ago (2013-11-01 01:14:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/g.czajkowski@samsung.com/49613006/100001
7 years, 1 month ago (2013-11-01 16:23:30 UTC) #9
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-01 16:23:34 UTC) #10
grzegorz
On 2013/11/01 01:14:32, groby wrote: > Gah. Ignore trailing text. This does indeed look fine ...
7 years, 1 month ago (2013-11-04 08:52:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/g.czajkowski@samsung.com/49613006/190001
7 years, 1 month ago (2013-11-04 17:55:16 UTC) #12
tony
https://codereview.chromium.org/49613006/diff/190001/LayoutTests/editing/spelling/inline_spelling_markers.html File LayoutTests/editing/spelling/inline_spelling_markers.html (right): https://codereview.chromium.org/49613006/diff/190001/LayoutTests/editing/spelling/inline_spelling_markers.html#newcode109 LayoutTests/editing/spelling/inline_spelling_markers.html:109: <script src="../../fast/js/resources/js-test-post.js"></script> Oops, this is now gone. Please remove ...
7 years, 1 month ago (2013-11-04 18:00:22 UTC) #13
grzegorz
https://codereview.chromium.org/49613006/diff/190001/LayoutTests/editing/spelling/inline_spelling_markers.html File LayoutTests/editing/spelling/inline_spelling_markers.html (right): https://codereview.chromium.org/49613006/diff/190001/LayoutTests/editing/spelling/inline_spelling_markers.html#newcode109 LayoutTests/editing/spelling/inline_spelling_markers.html:109: <script src="../../fast/js/resources/js-test-post.js"></script> On 2013/11/04 18:00:22, tony wrote: > Oops, ...
7 years, 1 month ago (2013-11-06 07:46:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/g.czajkowski@samsung.com/49613006/340001
7 years, 1 month ago (2013-11-06 07:57:42 UTC) #15
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 09:10:15 UTC) #16
Message was sent while issue was closed.
Change committed as 161436

Powered by Google App Engine
This is Rietveld 408576698