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

Issue 2845423002: Properly check the visibility of elements in browsertests (Closed)

Created:
3 years, 7 months ago by Nate Fischer
Modified:
3 years, 7 months ago
Reviewers:
Jialiu Lin
CC:
chromium-reviews, grt+watch_chromium.org, timvolodine, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly check the visibility of elements in browsertests No change in production logic. Visibility of elements must be checked by recursively checking the visibility of parent elements, since any element inside an invisible element will also be invisible. This issue does not present itself in the Desktop layout, because .hidden is defined differently (with display: none). Since the mobile layout defines it with opacity, we need to recursively check parents. It's not sufficient to check the opacity value itself, because CSS transitions may not have finished by the time we check. Instead, we simply check the CSS class and trust it to hide things properly. BUG=716542 Review-Url: https://codereview.chromium.org/2845423002 Cr-Commit-Position: refs/heads/master@{#468111} Committed: https://chromium.googlesource.com/chromium/src/+/3d74f72c743bef9d6fb48d06b7638fdf0cb7c5aa

Patch Set 1 #

Total comments: 2

Patch Set 2 : "don't" -> "do not" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 1 chunk +20 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
Nate Fischer
PTAL. Another cherry pick from crrev/2848733002. This also does not depend on the change in ...
3 years, 7 months ago (2017-04-28 17:24:17 UTC) #4
Jialiu Lin
LGTM Thanks! https://codereview.chromium.org/2845423002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/2845423002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode570 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:570: // Don't check opacity, since the css ...
3 years, 7 months ago (2017-04-28 18:14:08 UTC) #6
Nate Fischer
https://codereview.chromium.org/2845423002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/2845423002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode570 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:570: // Don't check opacity, since the css transition may ...
3 years, 7 months ago (2017-04-28 18:26:25 UTC) #9
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/2845423002/20001
3 years, 7 months ago (2017-04-28 18:28:31 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 20:26:28 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/3d74f72c743bef9d6fb48d06b763...

Powered by Google App Engine
This is Rietveld 408576698