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

Issue 2587823003: Allow test runner to run a callback when finishing a spellcheck request (Closed)

Created:
4 years ago by Xiaocheng
Modified:
4 years ago
Reviewers:
haraken, tkent
CC:
chromium-reviews, einbinder+watch-test-runner_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow test runner to run a callback when finishing a spellcheck request This patch adds a new method setSpellCheckResolvedCallback to test runner, so that layout tests can run script when a spell check request is resolved, which can be used to inspect spelling markers in a better manner. It also adds removeSpellCheckResolvedCallback for clearing a previously set callback. Currently layout tests can only set a timeout to wait for markers to appear. Follow-up patches will utilize this new method in layout tests. BUG=674819 Committed: https://crrev.com/5fe2c6a2c0339de9ad318841e26df0bde9754eff Cr-Commit-Position: refs/heads/master@{#439725}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Tue Dec 20 12:44:34 JST 2016 #

Patch Set 3 : fix typo... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -3 lines) Patch
M components/test_runner/spell_check_client.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M components/test_runner/spell_check_client.cc View 1 4 chunks +45 lines, -2 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 7 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 29 (17 generated)
Xiaocheng
PTAL.
4 years ago (2016-12-20 00:28:44 UTC) #7
tkent
haraken, would you review code interacting with v8?
4 years ago (2016-12-20 00:39:21 UTC) #9
haraken
https://codereview.chromium.org/2587823003/diff/1/components/test_runner/spell_check_client.cc File components/test_runner/spell_check_client.cc (right): https://codereview.chromium.org/2587823003/diff/1/components/test_runner/spell_check_client.cc#newcode158 components/test_runner/spell_check_client.cc:158: frame->callFunctionEvenIfScriptDisabled( Is there any reason you want to run ...
4 years ago (2016-12-20 02:46:21 UTC) #10
Xiaocheng
Thanks for the review. https://codereview.chromium.org/2587823003/diff/1/components/test_runner/spell_check_client.cc File components/test_runner/spell_check_client.cc (right): https://codereview.chromium.org/2587823003/diff/1/components/test_runner/spell_check_client.cc#newcode158 components/test_runner/spell_check_client.cc:158: frame->callFunctionEvenIfScriptDisabled( On 2016/12/20 at 02:46:21, ...
4 years ago (2016-12-20 03:05:59 UTC) #11
haraken
LGTM. On 2016/12/20 03:05:59, Xiaocheng wrote: > Thanks for the review. > > https://codereview.chromium.org/2587823003/diff/1/components/test_runner/spell_check_client.cc > ...
4 years ago (2016-12-20 03:09:13 UTC) #12
tkent
lgtm
4 years ago (2016-12-20 03:16:41 UTC) #13
Xiaocheng
Sorry for my carelessness... There should be one more method for clearing the new callback. ...
4 years ago (2016-12-20 04:49:09 UTC) #16
tkent
On 2016/12/20 04:49:09, Xiaocheng wrote: > Sorry for my carelessness... There should be one more ...
4 years ago (2016-12-20 06:03:51 UTC) #20
Xiaocheng
Thanks for the review!
4 years ago (2016-12-20 06:06:58 UTC) #22
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/2587823003/40001
4 years ago (2016-12-20 06:07:18 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 06:12:46 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-20 06:14:56 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5fe2c6a2c0339de9ad318841e26df0bde9754eff
Cr-Commit-Position: refs/heads/master@{#439725}

Powered by Google App Engine
This is Rietveld 408576698