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

Issue 1457543004: Add Mocha based tests for Settings pages (Closed)

Created:
5 years, 1 month ago by stevenjb
Modified:
5 years, 1 month ago
Reviewers:
michaelpg, dpapad
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Mocha based tests for Settings pages This CL introduces a base Prototype and some simple tests for the main page to ensure that the correct sections are present. We should add additional tests for each section as we make any changes to them (and for any new sections of course). BUG=425627 Committed: https://crrev.com/9dd2c84b4dfbf7aa6478b3086bcf8674314a7e7c Cr-Commit-Position: refs/heads/master@{#360478}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Feedback #

Total comments: 6

Patch Set 3 : More Feedback #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -0 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/main_page_browsertest.js View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/settings_page_browsertest.js View 1 2 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
stevenjb
5 years, 1 month ago (2015-11-18 01:14:14 UTC) #2
dpapad
https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js File chrome/test/data/webui/settings/main_page_browsertest.js (right): https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js#newcode36 chrome/test/data/webui/settings/main_page_browsertest.js:36: }); Nit: How about avoiding "var self = this" ...
5 years, 1 month ago (2015-11-18 01:44:55 UTC) #3
michaelpg
https://codereview.chromium.org/1457543004/diff/1/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1457543004/diff/1/chrome/chrome_tests.gypi#newcode991 chrome/chrome_tests.gypi:991: 'test/data/webui/settings/main_page_browsertest.js', alphabetize https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js File chrome/test/data/webui/settings/main_page_browsertest.js (right): https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js#newcode7 chrome/test/data/webui/settings/main_page_browsertest.js:7: // ...
5 years, 1 month ago (2015-11-18 02:00:32 UTC) #4
stevenjb
https://codereview.chromium.org/1457543004/diff/1/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1457543004/diff/1/chrome/chrome_tests.gypi#newcode991 chrome/chrome_tests.gypi:991: 'test/data/webui/settings/main_page_browsertest.js', On 2015/11/18 02:00:32, michaelpg wrote: > alphabetize Done. ...
5 years, 1 month ago (2015-11-18 20:02:34 UTC) #7
michaelpg
lgtm
5 years, 1 month ago (2015-11-18 20:06:39 UTC) #8
dpapad
lgtm https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js File chrome/test/data/webui/settings/main_page_browsertest.js (right): https://codereview.chromium.org/1457543004/diff/1/chrome/test/data/webui/settings/main_page_browsertest.js#newcode36 chrome/test/data/webui/settings/main_page_browsertest.js:36: }); On 2015/11/18 at 02:00:32, michaelpg wrote: > ...
5 years, 1 month ago (2015-11-18 21:09:53 UTC) #9
dschuyler
https://codereview.chromium.org/1457543004/diff/20001/chrome/test/data/webui/settings/settings_page_browsertest.js File chrome/test/data/webui/settings/settings_page_browsertest.js (right): https://codereview.chromium.org/1457543004/diff/20001/chrome/test/data/webui/settings/settings_page_browsertest.js#newcode63 chrome/test/data/webui/settings/settings_page_browsertest.js:63: return s; Indent return(?)
5 years, 1 month ago (2015-11-18 22:24:55 UTC) #10
stevenjb
https://codereview.chromium.org/1457543004/diff/20001/chrome/test/data/webui/settings/main_page_browsertest.js File chrome/test/data/webui/settings/main_page_browsertest.js (right): https://codereview.chromium.org/1457543004/diff/20001/chrome/test/data/webui/settings/main_page_browsertest.js#newcode26 chrome/test/data/webui/settings/main_page_browsertest.js:26: test('load page', function() {}); On 2015/11/18 21:09:53, dpapad wrote: ...
5 years, 1 month ago (2015-11-18 23:23:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457543004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457543004/60001
5 years, 1 month ago (2015-11-18 23:25:40 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-19 01:54:55 UTC) #15
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 01:56:15 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9dd2c84b4dfbf7aa6478b3086bcf8674314a7e7c
Cr-Commit-Position: refs/heads/master@{#360478}

Powered by Google App Engine
This is Rietveld 408576698