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

Issue 1585963004: Settings People Revamp: Add tests for ChromeOS Change Picture. (Closed)

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

Description

Settings People Revamp: Add tests for ChromeOS Change Picture. Adds a browsertest for ChromeOS Change Picture Settings subpage. Modelled after the bluetooth_page_browsertest_chromeos. BUG=563721 Committed: https://crrev.com/1be9999be9c68a87ba4e092f0ecac835cd0876fd Cr-Commit-Position: refs/heads/master@{#370748}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -5 lines) Patch
M chrome/browser/resources/settings/people_page/change_picture.html View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/people_page/change_picture.js View 1 2 3 2 chunks +15 lines, -1 line 1 comment Download
M chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (7 generated)
tommycli
dpapad: PTAL added some tests for the Change Picture
4 years, 11 months ago (2016-01-19 19:12:16 UTC) #2
dpapad
https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js File chrome/browser/resources/settings/people_page/change_picture.js (right): https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js#newcode5 chrome/browser/resources/settings/people_page/change_picture.js:5: var changePictureOptions = changePictureOptions || { Is there a ...
4 years, 11 months ago (2016-01-19 19:44:59 UTC) #3
tommycli
dpapad: Hi, thanks for the feedback, :D Tommy https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js File chrome/browser/resources/settings/people_page/change_picture.js (right): https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js#newcode5 chrome/browser/resources/settings/people_page/change_picture.js:5: var ...
4 years, 11 months ago (2016-01-20 00:30:27 UTC) #4
dpapad
lgtm https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js File chrome/browser/resources/settings/people_page/change_picture.js (right): https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js#newcode5 chrome/browser/resources/settings/people_page/change_picture.js:5: var changePictureOptions = changePictureOptions || { On 2016/01/20 ...
4 years, 11 months ago (2016-01-20 01:09:30 UTC) #5
tommycli
https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js File chrome/browser/resources/settings/people_page/change_picture.js (right): https://codereview.chromium.org/1585963004/diff/20001/chrome/browser/resources/settings/people_page/change_picture.js#newcode5 chrome/browser/resources/settings/people_page/change_picture.js:5: var changePictureOptions = changePictureOptions || { On 2016/01/20 01:09:29, ...
4 years, 11 months ago (2016-01-20 22:38:12 UTC) #6
tommycli
phajdan.jr: May I have a review for BUILD.gn? Thanks!
4 years, 11 months ago (2016-01-20 22:38:31 UTC) #8
Paweł Hajdan Jr.
chrome/test LGTM
4 years, 11 months ago (2016-01-21 15:46:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585963004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585963004/60001
4 years, 11 months ago (2016-01-21 18:22:38 UTC) #12
tommycli
phajdan.jr: thank you sir!
4 years, 11 months ago (2016-01-21 18:47:24 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-21 19:36:00 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/1be9999be9c68a87ba4e092f0ecac835cd0876fd Cr-Commit-Position: refs/heads/master@{#370748}
4 years, 11 months ago (2016-01-21 19:37:38 UTC) #16
Dan Beam
4 years, 9 months ago (2016-03-16 17:22:29 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1585963004/diff/60001/chrome/browser/resource...
File chrome/browser/resources/settings/people_page/change_picture.js (right):

https://codereview.chromium.org/1585963004/diff/60001/chrome/browser/resource...
chrome/browser/resources/settings/people_page/change_picture.js:14: });
why can't this just be

cr.exportPath('settings_test');

OR

cr.exportPath('settings_test').changePictureNotifyForTest = false;

the difference between cr.define() and cr.exportPath() is that cr.define() is
more useful when an inner scope is required for bookkeeping.  in a case as
simple as this, cr.exportPath() may be preferred.

Powered by Google App Engine
This is Rietveld 408576698