[breadcrumb] Minor unittest fix: improve elider-limit test
In self-review of CL:2143024, I mentioned it was more accurate to test the elider-limit (hidden vs not-hidden) using the <bread-crumb> custom element's |parts| getter. So do that: the elider button should only be shown (not-hidden) if the breadcrumb path has more than 4 components (aka its .parts > 4) and it matches the attached comment exactly. Tbr: adanilo Bug: 1061388 Change-Id: If03446e6e99944a22a50bd8096d4c4608a2d1f25 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2158428 Commit-Queue: Alex Danilo <adanilo@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Auto-Submit: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#761169}
Showing
Please register or sign in to comment