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

Issue 2257703002: MD History: Improve test helpers, update synced tabs tests to use them (Closed)

Created:
4 years, 4 months ago by tsergeant
Modified:
4 years, 4 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Improve test helpers, update synced tabs tests to use them Many of our existing tests rely heavily on the state of the whole page. While this is necessary in many cases, we should avoid it when possible and take steps to ensure the page state is properly reset between tests. This CL adds new test helpers to support completely resetting the page for each individual test. As part of this, CSS mixin/variable definitions are moved so that they apply once to <html> rather than to many different elements. Finally, the test suite for <history-synced-device-manager> is updated to use the new helpers. Most tests now directly test the manager element, with no <history-app> integration. A separate test suite for integration tests with a <history-app> is also available. BUG=425625 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/26684461f0a2babf696a9118d34c08d697699115 Cr-Commit-Position: refs/heads/master@{#413033}

Patch Set 1 #

Patch Set 2 : revulcanize #

Patch Set 3 : Rebase #

Patch Set 4 : Revulcanize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -138 lines) Patch
M chrome/browser/browser_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_history/app.crisper.js View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/app.vulcanized.html View 1 2 3 4 chunks +53 lines, -33 lines 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/shared_style.html View 1 chunk +2 lines, -33 lines 0 comments Download
A chrome/browser/resources/md_history/shared_vars.html View 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_history/history_synced_tabs_test.js View 14 chunks +77 lines, -69 lines 0 comments Download
M chrome/test/data/webui/md_history/test_util.js View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
tsergeant
4 years, 4 months ago (2016-08-18 01:38:15 UTC) #6
calamity
lgtm. FYI, https://codereview.chromium.org/2248223003/ contains the same getSelectedList() change.
4 years, 4 months ago (2016-08-18 07:55:57 UTC) #9
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/2257703002/60001
4 years, 4 months ago (2016-08-19 00:01:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/264535)
4 years, 4 months ago (2016-08-19 01:22:13 UTC) #14
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/2257703002/60001
4 years, 4 months ago (2016-08-19 01:30:06 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-19 02:36:11 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 02:38:49 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/26684461f0a2babf696a9118d34c08d697699115
Cr-Commit-Position: refs/heads/master@{#413033}

Powered by Google App Engine
This is Rietveld 408576698