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

Issue 2270293003: Add a switch to TestRunner to enable/disable mock spell checker (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
Reviewers:
tkent, yosin_UTC9
CC:
aboxhall, aboxhall+watch_chromium.org, blink-reviews, chromium-reviews, dmazzoni, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, einbinder+watch-test-runner_chromium.org, je_julie, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, nektarios, nektar+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a switch to TestRunner to enable/disable mock spell checker Most layout tests are not related to spell checker, and we do not want to see failures due to appearance/disappearance of spelling markers in their pixel results. This patch adds a switch to TestRunner (more specifically, its SpellCheckClient) so that the mock spell checker returns non-empty result only when the switch is on. It is off by default, and hence, spelling markers do not appear in unrelated tests. Spell checking tests are modified to explicitly set this switch on so their results remain the same as before. The following tests are rebaselined to remove the spelling markers from their pixel results: - compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html - editing/execCommand/5569741.html - editing/inserting/5418891.html - editing/inserting/insert-div-027.html - editing/inserting/paragraph-separator-01.html - editing/inserting/paragraph-separator-02.html - editing/inserting/paragraph-separator-03.html - editing/inserting/return-key-with-selection-003.html - editing/pasteboard/cut-text-001.html - editing/pasteboard/undoable-fragment-removes.html - editing/selection/move-backwords-by-word-001.html - editing/selection/move-by-word-001.html - editing/style/block-styles-007.html - fast/dom/blur-contenteditable.html - fast/dom/focus-contenteditable.html - fast/forms/text/input-double-click-selection-gap-bug.html - fast/inline-block/14498-positionForCoordinates.html - fast/repaint/inline-outline-repaint.html - virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html BUG=639213 Committed: https://crrev.com/2fa3e76400d5f0fcc39eea19f9818599a3ea5016 Cr-Commit-Position: refs/heads/master@{#414042}

Patch Set 1 #

Patch Set 2 : Rebaselined tests #

Total comments: 4

Patch Set 3 : Use in-class initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -7 lines) Patch
M components/test_runner/spell_check_client.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/test_runner/spell_check_client.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M components/test_runner/test_runner.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.cc View 5 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/misspellings.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/context-menu-suggestions.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/design-mode-spellcheck-off.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar-markers.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar-markers-hidpi.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-composited.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline_spelling_markers.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/mark-empty-crash.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/markers.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/markers-input-type-text.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/mixed-paste-long.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/mixed-paste-short.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/move-cursor-to-misspelled-word.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/resources/util.js View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/right-click-no-renderer-crash.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-api-crash.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-mutation.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-remove-frame.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-disable-enable.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-input-search-crash.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-mixed-editable-crash.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-mixed-editable-long-text-crash.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-sequencenum.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-backward.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-huge-text.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-linebreak.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-marker-description.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-unified-emulation.html View 1 chunk +3 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/dom/blur-contenteditable-expected.png View 1 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/inline-block/14498-positionForCoordinates-expected.png View 1 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/repaint/inline-outline-repaint-expected.png View 1 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/5569741-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/5418891-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/insert-div-027-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/paragraph-separator-01-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/paragraph-separator-02-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/paragraph-separator-03-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/inserting/return-key-with-selection-003-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/cut-text-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/undoable-fragment-removes-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/selection/move-backwords-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/selection/move-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/style/block-styles-007-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/blur-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/focus-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/inline-block/14498-positionForCoordinates-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/inline-outline-repaint-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/editing/inserting/paragraph-separator-03-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/dom/focus-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/execCommand/5569741-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/5418891-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/insert-div-027-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/paragraph-separator-01-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/paragraph-separator-02-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/paragraph-separator-03-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-003-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/cut-text-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/undoable-fragment-removes-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/selection/move-backwords-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/selection/move-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/style/block-styles-007-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/blur-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/inline-block/14498-positionForCoordinates-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/repaint/inline-outline-repaint-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/execCommand/5569741-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/5418891-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/insert-div-027-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/paragraph-separator-01-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/paragraph-separator-02-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/paragraph-separator-03-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/inserting/return-key-with-selection-003-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/cut-text-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/undoable-fragment-removes-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/selection/move-backwords-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/selection/move-by-word-001-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/style/block-styles-007-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/dom/blur-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/dom/focus-contenteditable-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/forms/text/input-double-click-selection-gap-bug-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/inline-block/14498-positionForCoordinates-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/repaint/inline-outline-repaint-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents-expected.png View 1 Binary file 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (18 generated)
Xiaocheng
What do you think about this idea? It reuses existing code and still keeps spell ...
4 years, 4 months ago (2016-08-24 06:17:13 UTC) #5
yosin_UTC9
On 2016/08/24 at 06:17:13, xiaochengh wrote: > What do you think about this idea? It ...
4 years, 4 months ago (2016-08-24 06:32:23 UTC) #6
Xiaocheng
On 2016/08/24 at 06:32:23, yosin wrote: > On 2016/08/24 at 06:17:13, xiaochengh wrote: > > ...
4 years, 4 months ago (2016-08-24 06:45:50 UTC) #7
yosin_UTC9
On 2016/08/24 at 06:45:50, xiaochengh wrote: > On 2016/08/24 at 06:32:23, yosin wrote: > > ...
4 years, 4 months ago (2016-08-24 07:10:02 UTC) #9
Xiaocheng
On 2016/08/24 at 07:10:02, yosin wrote: > On 2016/08/24 at 06:45:50, xiaochengh wrote: > > ...
4 years, 4 months ago (2016-08-24 07:18:56 UTC) #10
yosin_UTC9
lgtm But, I'm not fan of switch. :-< https://codereview.chromium.org/2270293003/diff/20001/components/test_runner/spell_check_client.cc File components/test_runner/spell_check_client.cc (right): https://codereview.chromium.org/2270293003/diff/20001/components/test_runner/spell_check_client.cc#newcode23 components/test_runner/spell_check_client.cc:23: : ...
4 years, 4 months ago (2016-08-24 08:00:38 UTC) #16
Xiaocheng
+tkent for owner's review PTAL. https://codereview.chromium.org/2270293003/diff/20001/components/test_runner/spell_check_client.cc File components/test_runner/spell_check_client.cc (right): https://codereview.chromium.org/2270293003/diff/20001/components/test_runner/spell_check_client.cc#newcode23 components/test_runner/spell_check_client.cc:23: : enabled_(false), On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 08:28:23 UTC) #20
tkent
lgtm
4 years, 4 months ago (2016-08-24 08:45:54 UTC) #21
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/2270293003/40001
4 years, 4 months ago (2016-08-24 11:20:25 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-24 11:27:30 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 11:29:20 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2fa3e76400d5f0fcc39eea19f9818599a3ea5016
Cr-Commit-Position: refs/heads/master@{#414042}

Powered by Google App Engine
This is Rietveld 408576698