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

Issue 12217015: History: Fix selecting multiple visits. (Closed)

Created:
7 years, 10 months ago by Sergiu
Modified:
7 years, 10 months ago
Reviewers:
Patrick Dubroy
CC:
chromium-reviews, arv (Not doing code reviews), pam+watch_chromium.org
Visibility:
Public.

Description

History: Fix selecting multiple visits. Initially the visist IDs for the checkboxes were set as the visits were retrieved but currently the visits can be displayed in a different order. Fix this by setting the ID when the visit is displayed, fixing multiple selection. Add a test to check that in the future. BUG=170690 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182470

Patch Set 1 #

Total comments: 2

Patch Set 2 : A test and minor fix. #

Total comments: 10

Patch Set 3 : Refactor #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : More updates #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -4 lines) Patch
M chrome/browser/resources/history/history.js View 1 2 3 4 5 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/test/data/webui/history_browsertest.js View 1 2 3 4 2 chunks +77 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Sergiu
Even if we decide to just iterate through the visits I'd like to have this ...
7 years, 10 months ago (2013-02-05 16:04:56 UTC) #1
Patrick Dubroy
Looks fine, but can you please add a test, at least for the regular history ...
7 years, 10 months ago (2013-02-05 18:01:00 UTC) #2
Patrick Dubroy
Also, can you change the first line of the description to begin with "History:"? On ...
7 years, 10 months ago (2013-02-05 18:02:44 UTC) #3
Sergiu
Added a test as well, take a look. https://codereview.chromium.org/12217015/diff/1/chrome/browser/resources/history/history.js File chrome/browser/resources/history/history.js (right): https://codereview.chromium.org/12217015/diff/1/chrome/browser/resources/history/history.js#newcode49 chrome/browser/resources/history/history.js:49: this.id_ ...
7 years, 10 months ago (2013-02-05 20:16:26 UTC) #4
Patrick Dubroy
lgtm, but please change the CL description to begin with "History:", and consider adding the ...
7 years, 10 months ago (2013-02-05 20:43:00 UTC) #5
Patrick Dubroy
https://codereview.chromium.org/12217015/diff/4004/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/12217015/diff/4004/chrome/test/data/webui/history_browsertest.js#newcode329 chrome/test/data/webui/history_browsertest.js:329: expectFalse(checkboxes[i].checked); You could also do this with: expectEqual(document.querySelectorAll('input[type=checkbox]:checked'), 0) ...
7 years, 10 months ago (2013-02-05 20:43:14 UTC) #6
Sergiu
I've refactored stuff around, see what you think. https://codereview.chromium.org/12217015/diff/4004/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/12217015/diff/4004/chrome/test/data/webui/history_browsertest.js#newcode329 chrome/test/data/webui/history_browsertest.js:329: expectFalse(checkboxes[i].checked); ...
7 years, 10 months ago (2013-02-06 10:52:34 UTC) #7
Patrick Dubroy
https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js#newcode346 chrome/test/data/webui/history_browsertest.js:346: '#results-display input[type=checkbox]:checked').length); All of the duplicated querySelectorAll stuff clutters ...
7 years, 10 months ago (2013-02-06 18:53:07 UTC) #8
Sergiu
https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js#newcode346 chrome/test/data/webui/history_browsertest.js:346: '#results-display input[type=checkbox]:checked').length); On 2013/02/06 18:53:07, dubroy wrote: > All ...
7 years, 10 months ago (2013-02-07 10:18:17 UTC) #9
Sergiu
https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/12217015/diff/13001/chrome/test/data/webui/history_browsertest.js#newcode346 chrome/test/data/webui/history_browsertest.js:346: '#results-display input[type=checkbox]:checked').length); On 2013/02/06 18:53:07, dubroy wrote: > All ...
7 years, 10 months ago (2013-02-07 10:18:18 UTC) #10
Sergiu
Ping on the latest changes on this one, I'll land if it's ok.
7 years, 10 months ago (2013-02-13 18:14:34 UTC) #11
Patrick Dubroy
LGTM. BTW, if I give an LGTM with comments, it means that I'm fine with ...
7 years, 10 months ago (2013-02-13 19:05:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergiu@chromium.org/12217015/17001
7 years, 10 months ago (2013-02-14 12:03:43 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 15:52:22 UTC) #14
Message was sent while issue was closed.
Change committed as 182470

Powered by Google App Engine
This is Rietveld 408576698