|
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
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+81 lines, -57 lines) |
Patch |
|
M |
LayoutTests/media/audio-controls-do-not-fade-out.html
|
View
|
1
|
1 chunk |
+14 lines, -12 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/audio-controls-do-not-fade-out-expected.txt
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/media-controls.js
|
View
|
1
|
2 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/video-controls-focus-movement-on-hide.html
|
View
|
|
1 chunk |
+8 lines, -11 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/video-controls-hide-on-move-outside-controls.html
|
View
|
|
2 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/video-controls-show-on-focus.html
|
View
|
1
|
1 chunk |
+14 lines, -16 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/video-controls-toggling.html
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
LayoutTests/media/video-controls-visible-exiting-fullscreen.html
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/html/shadow/MediaControlElements.cpp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/shadow/MediaControls.cpp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|