Chromium Code Reviews

Issue 302603003: Cleanup tests related to controls hiding/fading in/out (Closed)

Created:
6 years, 7 months ago by fs
Modified:
6 years, 6 months ago
Reviewers:
acolwell GONE FROM CHROMIUM, philipj_slow
CC:
blink-reviews, feature-media-reviews_chromium.org, eric.carlson_apple.com
Visibility:
Public.

Description

Cleanup tests related to controls hiding/fading in/out Add a helper function runAfterControlsHidden() that computes a reasonable timeout for when the controls should be invisible. Add controlsFade{In,Out}DurationMs to avoid having to redefine them in every test that needs them. Convert tests to use the helper and the variables, and also perform some opportunity simplifications to lookups of the panel shadow element. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175365

Patch Set 1 #

Total comments: 12

Patch Set 2 : Tweaks. #

Unified diffs Side-by-side diffs Stats (+81 lines, -57 lines)
M LayoutTests/media/audio-controls-do-not-fade-out.html View 1 chunk +14 lines, -12 lines 0 comments
M LayoutTests/media/audio-controls-do-not-fade-out-expected.txt View 1 chunk +2 lines, -2 lines 0 comments
M LayoutTests/media/media-controls.js View 2 chunks +26 lines, -0 lines 0 comments
M LayoutTests/media/video-controls-focus-movement-on-hide.html View 1 chunk +8 lines, -11 lines 0 comments
M LayoutTests/media/video-controls-hide-on-move-outside-controls.html View 2 chunks +9 lines, -10 lines 0 comments
M LayoutTests/media/video-controls-show-on-focus.html View 1 chunk +14 lines, -16 lines 0 comments
M LayoutTests/media/video-controls-toggling.html View 2 chunks +2 lines, -3 lines 0 comments
M LayoutTests/media/video-controls-visible-exiting-fullscreen.html View 3 chunks +2 lines, -3 lines 0 comments
M Source/core/html/shadow/MediaControlElements.cpp View 1 chunk +2 lines, -0 lines 0 comments
M Source/core/html/shadow/MediaControls.cpp View 1 chunk +2 lines, -0 lines 0 comments

Messages

Total messages: 8 (0 generated)
fs
Followup to https://codereview.chromium.org/297783004/ . @philipj: Feel free to comment early, otherwise this is pending for ...
6 years, 7 months ago (2014-05-26 13:21:17 UTC) #1
philipj_slow
LGTM % nits https://codereview.chromium.org/302603003/diff/1/LayoutTests/media/audio-controls-do-not-fade-out.html File LayoutTests/media/audio-controls-do-not-fade-out.html (right): https://codereview.chromium.org/302603003/diff/1/LayoutTests/media/audio-controls-do-not-fade-out.html#newcode23 LayoutTests/media/audio-controls-do-not-fade-out.html:23: document.getElementById("result").innerText = opacity < 1 ? ...
6 years, 7 months ago (2014-05-26 13:38:47 UTC) #2
fs
https://codereview.chromium.org/302603003/diff/1/LayoutTests/media/audio-controls-do-not-fade-out.html File LayoutTests/media/audio-controls-do-not-fade-out.html (right): https://codereview.chromium.org/302603003/diff/1/LayoutTests/media/audio-controls-do-not-fade-out.html#newcode23 LayoutTests/media/audio-controls-do-not-fade-out.html:23: document.getElementById("result").innerText = opacity < 1 ? "FAIL" : "PASS"; ...
6 years, 7 months ago (2014-05-26 15:02:09 UTC) #3
philipj_slow
LGTM. If you have further changes depending on this I think it's OK to land ...
6 years, 7 months ago (2014-05-27 07:54:03 UTC) #4
acolwell GONE FROM CHROMIUM
lgtm
6 years, 6 months ago (2014-06-02 21:29:50 UTC) #5
fs
The CQ bit was checked by fs@opera.com
6 years, 6 months ago (2014-06-03 13:13:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/302603003/10001
6 years, 6 months ago (2014-06-03 13:14:04 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 13:26:30 UTC) #8
Message was sent while issue was closed.
Change committed as 175365

Powered by Google App Engine