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

Issue 2863213002: MD Settings: Fix and re-enable settings-main tests. (Closed)

Created:
3 years, 7 months ago by dpapad
Modified:
3 years, 7 months ago
Reviewers:
michaelpg
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix and re-enable settings-main tests. - Updated cases where the code had rotten (for example functions that used to return synchronously now return a Promise). - Updated test logic where Polymer.dom.flush() was not sufficient anymore, to use a MutationObserer (for detecting visibility changes). - Re-enable tests an all platforms, for non-debug builds. Debug builds remain disabled. The tests still use the real chrome.settingsPrivate API, which makes it likely that they could flake (timeout). Will address that if it happens. BUG=667882 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2863213002 Cr-Commit-Position: refs/heads/master@{#470123} Committed: https://chromium.googlesource.com/chromium/src/+/1510abbfe7ba6d200cfcc0f461c5a38c761fa353

Patch Set 1 #

Patch Set 2 : Fix more #

Patch Set 3 : Nit #

Total comments: 5

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -23 lines) Patch
M chrome/browser/resources/settings/settings_main/settings_main.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/test/data/webui/settings/settings_main_test.js View 1 2 3 7 chunks +33 lines, -17 lines 0 comments Download
M chrome/test/data/webui/settings/test_util.js View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 21 (15 generated)
dpapad
Green tests at patch 2.
3 years, 7 months ago (2017-05-06 01:33:36 UTC) #5
michaelpg
Would you mind adding something to the description about how the tests are being fixed? ...
3 years, 7 months ago (2017-05-08 18:00:04 UTC) #10
dpapad
https://codereview.chromium.org/2863213002/diff/40001/chrome/test/data/webui/settings/settings_main_test.js File chrome/test/data/webui/settings/settings_main_test.js (right): https://codereview.chromium.org/2863213002/diff/40001/chrome/test/data/webui/settings/settings_main_test.js#newcode183 chrome/test/data/webui/settings/settings_main_test.js:183: expectedAdvanced || 'block', On 2017/05/08 at 18:00:04, michaelpg wrote: ...
3 years, 7 months ago (2017-05-08 19:07:52 UTC) #12
michaelpg
lgtm https://codereview.chromium.org/2863213002/diff/40001/chrome/test/data/webui/settings/settings_main_test.js File chrome/test/data/webui/settings/settings_main_test.js (right): https://codereview.chromium.org/2863213002/diff/40001/chrome/test/data/webui/settings/settings_main_test.js#newcode183 chrome/test/data/webui/settings/settings_main_test.js:183: expectedAdvanced || 'block', On 2017/05/08 19:07:52, dpapad wrote: ...
3 years, 7 months ago (2017-05-08 20:01:33 UTC) #15
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/2863213002/60001
3 years, 7 months ago (2017-05-08 20:42:09 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 21:08:17 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1510abbfe7ba6d200cfcc0f461c5...

Powered by Google App Engine
This is Rietveld 408576698