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

Issue 2593273002: Replace TabStripTest.TabHitTestMaskWhenStacked with something more meaningful. (Closed)

Created:
4 years ago by Peter Kasting
Modified:
3 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace TabStripTest.TabHitTestMaskWhenStacked with something more meaningful. The old test checked the hit test results for individual tabs. This assumed that hitboxes for partly-occluded stacked tabs would themselves be partly occluded, and basically verified that this occlusion made sense. We changed this in r411197. Now, individual tab hitboxes are the full size of the tab, and instead tab occlusion is handled by functions like FindTabForEvent(), which check tabs in the correct order. The new test simply iterates across the tabstrip at three vertical positions, checking what every pixel hits, and making sure the order (in tab model indexes) of what's hit is: -1 0 1 2 3 -1 I dunno that this is a very robust test, but I don't think we really had anything else testing event handling for stacked tabs at all, so it seemed better than deleting the test entirely. BUG=575327 TEST=none Committed: https://crrev.com/a067fd9d9e552c2c12a786bd857aa21a4de147aa Cr-Commit-Position: refs/heads/master@{#441417}

Patch Set 1 #

Patch Set 2 : Resync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -116 lines) Patch
M chrome/browser/ui/views/tabs/tab.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_unittest.cc View 4 chunks +20 lines, -114 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Peter Kasting
4 years ago (2016-12-21 23:27:15 UTC) #2
sky
LGTM
3 years, 11 months ago (2017-01-03 22:04:02 UTC) #3
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/2593273002/20001
3 years, 11 months ago (2017-01-04 17:36:49 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 11 months ago (2017-01-04 18:42:16 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 18:44:29 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a067fd9d9e552c2c12a786bd857aa21a4de147aa
Cr-Commit-Position: refs/heads/master@{#441417}

Powered by Google App Engine
This is Rietveld 408576698