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

Unified Diff: third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html

Issue 2704013002: Media Controls: cache the minimum width in order to reduce incorrect width usage. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/buttons-after-reset-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html
diff --git a/third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html b/third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html
new file mode 100644
index 0000000000000000000000000000000000000000..a08cd65a9dd8602f9879e7e53a8eabdfcdc1ec15
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<title>Test that resetting the controls after load is a no-op.</title>
+<script src="../media-file.js"></script>
+<video controls width=400>
+ <track kind=subtitles src=fake-en-sub.vtt srclang=en label=English>
+ <track kind=subtitles src=fake-fr-sub.vtt srclang=fr label=French>
+</video>
+<script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ var video = document.querySelector('video');
+ video.src = findMediaFile('video', '../content/test');
+ video.addEventListener('loadedmetadata', () => {
Zhiqiang Zhang (Slow) 2017/02/18 15:04:37 Can you explain why hide and show the controls and
mlamouri (slow - plz ping) 2017/02/19 10:33:57 Without the fix, when we do hide/show, we end up w
+ video.controls = false;
+ testRunner.layoutAndPaintAsyncThen(() => {
+ video.controls = true;
+
+ testRunner.layoutAndPaintAsyncThen(() => {
+ testRunner.notifyDone();
+ });
+ });
+ });
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/buttons-after-reset-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698