Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/a02e2448d903564a3199edc570835c2eabdf12b7
Cr-Commit-Position: refs/heads/master@{#398133}
Description was changed from ========== Add dialog to edit and save credit cards. BUG=607348 ========== ...
4 years, 7 months ago
(2016-05-25 19:29:16 UTC)
#1
Description was changed from
==========
Add dialog to edit and save credit cards.
BUG=607348
==========
to
==========
Add dialog to edit and save credit cards.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
hcarmona
Patchset #1 (id:1) has been deleted
4 years, 7 months ago
(2016-05-25 23:05:03 UTC)
#2
Patchset #1 (id:1) has been deleted
hcarmona
Description was changed from ========== Add dialog to edit and save credit cards. BUG=607348 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation ...
4 years, 7 months ago
(2016-05-25 23:05:53 UTC)
#3
Description was changed from
==========
Add dialog to edit and save credit cards.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
to
==========
Add dialog to edit and save credit cards.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
Description was changed from ========== Add dialog to edit and save credit cards. BUG=607348 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation ...
4 years, 7 months ago
(2016-05-25 23:07:15 UTC)
#5
Description was changed from
==========
Add dialog to edit and save credit cards.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
to
==========
Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
hcarmona
PTAL, thanks!
4 years, 7 months ago
(2016-05-25 23:07:54 UTC)
#6
Just some sideline requests. https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html File chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html (right): https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html#newcode31 chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html:31: color: #737373; Please use a ...
4 years, 6 months ago
(2016-06-01 23:19:06 UTC)
#10
4 years, 6 months ago
(2016-06-03 13:51:15 UTC)
#13
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
File chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
(right):
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
chrome/test/data/webui/settings/settings_autofill_section_browsertest.js:39:
newTitle_: 'new-title',
On 2016/05/31 21:14:06, Hector Carmona wrote:
> On 2016/05/27 17:57:08, michaelpg wrote:
> > you shouldn't have to set this in a test
>
> Removed, but I had to change |browserPreload| because my element is
> dependent on |loadTimeData|. Is there any way to create a fake one for
> the test? The only test I could find that was using mocha and
> loatTimeData was loading chrome://md-settings
dbeam, want to weigh in? Question is how to make conditional i18n work inside a
test: stub out loadTimeData, load the full WebUI instead of just the element
under test, or make the UI take strings as variables instead of doing the i18n
itself?
Compare credit_card_edit_dialog.js versions 1 and 3.
Dan Beam
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js File chrome/test/data/webui/settings/settings_autofill_section_browsertest.js (right): https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js#newcode39 chrome/test/data/webui/settings/settings_autofill_section_browsertest.js:39: newTitle_: 'new-title', On 2016/06/03 13:51:14, michaelpg wrote: > On ...
4 years, 6 months ago
(2016-06-03 21:44:44 UTC)
#14
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
File chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
(right):
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
chrome/test/data/webui/settings/settings_autofill_section_browsertest.js:39:
newTitle_: 'new-title',
On 2016/06/03 13:51:14, michaelpg wrote:
> On 2016/05/31 21:14:06, Hector Carmona wrote:
> > On 2016/05/27 17:57:08, michaelpg wrote:
> > > you shouldn't have to set this in a test
> >
> > Removed, but I had to change |browserPreload| because my element is
> > dependent on |loadTimeData|. Is there any way to create a fake one for
> > the test? The only test I could find that was using mocha and
> > loatTimeData was loading chrome://md-settings
>
> dbeam, want to weigh in? Question is how to make conditional i18n work inside
a
> test: stub out loadTimeData, load the full WebUI instead of just the element
> under test, or make the UI take strings as variables instead of doing the i18n
> itself?
>
> Compare credit_card_edit_dialog.js versions 1 and 3.
I'm confused: why can't the element just do:
<link rel=import href=chrome://resources/js/load_time_data.html>
<link rel=import href=/strings.html>
if it depend on using loadTimeData?
hcarmona
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js File chrome/test/data/webui/settings/settings_autofill_section_browsertest.js (right): https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js#newcode39 chrome/test/data/webui/settings/settings_autofill_section_browsertest.js:39: newTitle_: 'new-title', On 2016/06/03 21:44:43, Dan Beam wrote: > ...
4 years, 6 months ago
(2016-06-04 00:36:48 UTC)
#15
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
File chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
(right):
https://codereview.chromium.org/2015463003/diff/20001/chrome/test/data/webui/...
chrome/test/data/webui/settings/settings_autofill_section_browsertest.js:39:
newTitle_: 'new-title',
On 2016/06/03 21:44:43, Dan Beam wrote:
> On 2016/06/03 13:51:14, michaelpg wrote:
> > On 2016/05/31 21:14:06, Hector Carmona wrote:
> > > On 2016/05/27 17:57:08, michaelpg wrote:
> > > > you shouldn't have to set this in a test
> > >
> > > Removed, but I had to change |browserPreload| because my element is
> > > dependent on |loadTimeData|. Is there any way to create a fake one for
> > > the test? The only test I could find that was using mocha and
> > > loatTimeData was loading chrome://md-settings
> >
> > dbeam, want to weigh in? Question is how to make conditional i18n work
inside
> a
> > test: stub out loadTimeData, load the full WebUI instead of just the element
> > under test, or make the UI take strings as variables instead of doing the
i18n
> > itself?
> >
> > Compare credit_card_edit_dialog.js versions 1 and 3.
>
> I'm confused: why can't the element just do:
>
> <link rel=import href=chrome://resources/js/load_time_data.html>
> <link rel=import href=/strings.html>
>
> if it depend on using loadTimeData?
Thanks guys, this helped me find a solution:
Included load_time_data.js in the test.
Added strings I care about to test (/strings.html doesn't exist)
https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resource...
File
chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html
(right):
https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html:31:
color: #737373;
On 2016/06/01 23:19:06, dschuyler wrote:
> Please use a var(--some-color); here.
Done.
https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resource...
File
chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js
(right):
https://codereview.chromium.org/2015463003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js:26:
* @type {string}
On 2016/06/01 23:19:06, dschuyler wrote:
> This @type is redundant since properties
> get their type from polymer and it's already
> a string.
>
> (The {!Array<string>}} below is still good
> because it adds information about what is
> in the array).
Good to know. Fixed.
Dan Beam
https://codereview.chromium.org/2015463003/diff/100001/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js File chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js (right): https://codereview.chromium.org/2015463003/diff/100001/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js#newcode32 chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js:32: * @type {!Array<string>}} typo, why do these need to ...
4 years, 6 months ago
(2016-06-04 01:00:26 UTC)
#16
not thrilled with the amount of string manip here either, but overall lgtm https://codereview.chromium.org/2015463003/diff/120001/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js File ...
4 years, 6 months ago
(2016-06-06 17:00:47 UTC)
#18
Description was changed from ========== Add dialog to edit and save credit cards. Tests included ...
4 years, 6 months ago
(2016-06-06 21:37:17 UTC)
#23
Message was sent while issue was closed.
Description was changed from
==========
Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
to
==========
Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 6 months ago
(2016-06-06 21:37:18 UTC)
#24
Message was sent while issue was closed.
Committed patchset #6 (id:140001)
commit-bot: I haz the power
Description was changed from ========== Add dialog to edit and save credit cards. Tests included ...
4 years, 6 months ago
(2016-06-06 21:40:06 UTC)
#25
Message was sent while issue was closed.
Description was changed from
==========
Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
to
==========
Add dialog to edit and save credit cards.
Tests included for dialog.
Screenshots in bug.
BUG=607348
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/a02e2448d903564a3199edc570835c2eabdf12b7
Cr-Commit-Position: refs/heads/master@{#398133}
==========
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a02e2448d903564a3199edc570835c2eabdf12b7 Cr-Commit-Position: refs/heads/master@{#398133}
4 years, 6 months ago
(2016-06-06 21:40:07 UTC)
#26
Issue 2015463003: Add dialog to edit and save credit cards.
(Closed)
Created 4 years, 7 months ago by hcarmona
Modified 4 years, 6 months ago
Reviewers: michaelpg, Dan Beam
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 63