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

Issue 2780833004: Improve TableView unit tests and fix bugs that were uncovered. (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve TableView unit tests and fix bugs that were uncovered. Switch to using a Widget and an EventGenerator, which simulates the sequence of events more accurately than directly calling event handlers. Change the implementation so we never change row selection due to focus changes. BUG=none Review-Url: https://codereview.chromium.org/2780833004 Cr-Commit-Position: refs/heads/master@{#461775} Committed: https://chromium.googlesource.com/chromium/src/+/3e70c6e83884c8c84864e20b89c367df6562c711

Patch Set 1 #

Patch Set 2 : docs #

Total comments: 1

Patch Set 3 : don't change selection on focus #

Patch Set 4 : fix TapOnRow for desktop linux #

Total comments: 1

Patch Set 5 : frameless #

Patch Set 6 : disable for now on mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -68 lines) Patch
M ui/views/controls/table/table_view.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/controls/table/table_view_unittest.cc View 1 2 3 4 5 13 chunks +50 lines, -65 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
Evan Stade
3 years, 8 months ago (2017-03-30 00:56:45 UTC) #2
sky
https://codereview.chromium.org/2780833004/diff/20001/ui/views/controls/table/table_view.cc File ui/views/controls/table/table_view.cc (right): https://codereview.chromium.org/2780833004/diff/20001/ui/views/controls/table/table_view.cc#newcode630 ui/views/controls/table/table_view.cc:630: base::ThreadTaskRunnerHandle::Get()->PostTask( We shouldn't need to delay this. The press ...
3 years, 8 months ago (2017-03-30 03:25:49 UTC) #4
sky
On 2017/03/30 03:25:49, sky wrote: > https://codereview.chromium.org/2780833004/diff/20001/ui/views/controls/table/table_view.cc > File ui/views/controls/table/table_view.cc (right): > > https://codereview.chromium.org/2780833004/diff/20001/ui/views/controls/table/table_view.cc#newcode630 > ...
3 years, 8 months ago (2017-03-30 03:42:11 UTC) #5
Evan Stade
On 2017/03/30 03:42:11, sky wrote: > Either way, I think we shouldn't change the selection ...
3 years, 8 months ago (2017-03-30 15:58:35 UTC) #7
sky
LGTM
3 years, 8 months ago (2017-03-30 20:12:47 UTC) #8
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/2780833004/40001
3 years, 8 months ago (2017-03-31 00:05:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/420632)
3 years, 8 months ago (2017-03-31 00:46:25 UTC) #12
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/2780833004/60001
3 years, 8 months ago (2017-04-03 16:09:33 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/420490)
3 years, 8 months ago (2017-04-03 17:11:24 UTC) #17
Evan Stade
+tapted, any advice on mac failures? For the SelectOnTap one, I think we can just ...
3 years, 8 months ago (2017-04-03 18:22:23 UTC) #19
tapted
https://codereview.chromium.org/2780833004/diff/60001/ui/views/controls/table/table_view_unittest.cc File ui/views/controls/table/table_view_unittest.cc (right): https://codereview.chromium.org/2780833004/diff/60001/ui/views/controls/table/table_view_unittest.cc#newcode209 ui/views/controls/table/table_view_unittest.cc:209: params.bounds = gfx::Rect(0, 0, 650, 650); Offsetting the (x,y) ...
3 years, 8 months ago (2017-04-04 00:07:36 UTC) #20
tapted
On 2017/04/04 00:07:36, tapted wrote: > https://codereview.chromium.org/2780833004/diff/60001/ui/views/controls/table/table_view_unittest.cc > File ui/views/controls/table/table_view_unittest.cc (right): > > https://codereview.chromium.org/2780833004/diff/60001/ui/views/controls/table/table_view_unittest.cc#newcode209 > ...
3 years, 8 months ago (2017-04-04 07:58:48 UTC) #25
Evan Stade
On 2017/04/04 07:58:48, tapted wrote: > On 2017/04/04 00:07:36, tapted wrote: > > > https://codereview.chromium.org/2780833004/diff/60001/ui/views/controls/table/table_view_unittest.cc ...
3 years, 8 months ago (2017-04-04 17:08:54 UTC) #28
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/2780833004/100001
3 years, 8 months ago (2017-04-04 17:09:54 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 18:25:06 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/3e70c6e83884c8c84864e20b89c3...

Powered by Google App Engine
This is Rietveld 408576698