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

Issue 2185493003: MD Settings: Adding some unit tests for <settings-main>. (Closed)

Created:
4 years, 4 months ago by dpapad
Modified:
4 years, 4 months ago
Reviewers:
michaelpg
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@search_no_results
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Adding some unit tests for <settings-main>. Specifically testing the "no results" message is shown/hidden as expected. - Splitting SearchManager to an interface and an implementation. - Using a TestSearchManager class (implements SearchManager) for testing <settings-main>. BUG=630383 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/bb8fba2c2dbc0b02555f11877f4929786eab456c Cr-Commit-Position: refs/heads/master@{#409615}

Patch Set 1 : Nit. #

Total comments: 28

Patch Set 2 : Address comments. #

Total comments: 7

Patch Set 3 : Address comments. #

Patch Set 4 : Resolve conflicts with ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -42 lines) Patch
M chrome/browser/resources/settings/search_settings.js View 1 8 chunks +37 lines, -18 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.html View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 2 chunks +25 lines, -20 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/main_page_behavior.js View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/settings_main_test.js View 1 2 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (38 generated)
dpapad
4 years, 4 months ago (2016-07-30 00:08:56 UTC) #30
michaelpg
Thanks for adding tests! If you'd like to discuss the Promise/setTimeout stuff in a separate ...
4 years, 4 months ago (2016-07-30 05:38:45 UTC) #32
dpapad
https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (right): https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/search_settings.js#newcode494 chrome/browser/resources/settings/search_settings.js:494: // 'finisthed', if any, and droping all pending tasks. ...
4 years, 4 months ago (2016-08-01 21:23:06 UTC) #35
dpapad
Friendly ping.
4 years, 4 months ago (2016-08-02 18:22:37 UTC) #36
michaelpg
https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode47 chrome/browser/resources/settings/settings_page/main_page_behavior.js:47: this.scroller = document.body; // Used in unit tests. On ...
4 years, 4 months ago (2016-08-02 20:45:20 UTC) #37
dpapad
https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2185493003/diff/240001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode47 chrome/browser/resources/settings/settings_page/main_page_behavior.js:47: this.scroller = document.body; // Used in unit tests. On ...
4 years, 4 months ago (2016-08-02 22:33:15 UTC) #39
dpapad
Friendly ping.
4 years, 4 months ago (2016-08-03 17:42:31 UTC) #40
michaelpg
lgtm https://codereview.chromium.org/2185493003/diff/300001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2185493003/diff/300001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode44 chrome/browser/resources/settings/settings_page/main_page_behavior.js:44: if (this.domHost && this.domHost.parentNode.tagName == 'PAPER-HEADER-PANEL') On 2016/08/02 ...
4 years, 4 months ago (2016-08-03 18:54:50 UTC) #41
dpapad
Thanks!
4 years, 4 months ago (2016-08-03 19:18:13 UTC) #42
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/2185493003/340001
4 years, 4 months ago (2016-08-03 19:18:52 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/230440) closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-03 19:22:03 UTC) #46
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/2185493003/360001
4 years, 4 months ago (2016-08-03 19:32:23 UTC) #49
commit-bot: I haz the power
Committed patchset #4 (id:360001)
4 years, 4 months ago (2016-08-03 20:42:37 UTC) #50
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/bb8fba2c2dbc0b02555f11877f4929786eab456c Cr-Commit-Position: refs/heads/master@{#409615}
4 years, 4 months ago (2016-08-03 20:44:46 UTC) #52
Peter Beverloo
4 years, 4 months ago (2016-08-04 15:27:03 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:360001) has been created in
https://codereview.chromium.org/2217493002/ by peter@chromium.org.

The reason for reverting is: Causing various debug bots to fail browser_tests

https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%2...

https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%2...

A series of JavaScript errors are visible that preferences were not found for
various elements, all in pref_control_behavior.js:38.

Powered by Google App Engine
This is Rietveld 408576698