DescriptionReplace 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 #
Messages
Total messages: 11 (6 generated)
|