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

Side by Side Diff: LayoutTests/media/audio-controls-do-not-fade-out.html

Issue 441193003: Hide video controls after touch when hideMediaControlsTimerFired fires. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: /s/TODO/FIXME Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/media/media-controls.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script src="video-test.js"></script> 1 <script src="video-test.js"></script>
2 <script src="media-controls.js"></script> 2 <script src="media-controls.js"></script>
3 <body> 3 <body>
4 <p> 4 <p>
5 This tests that audio controls do not fade out when the audio is playing. 5 This tests that audio controls do not fade out when the audio is playing.
6 </p> 6 </p>
7 <audio id="audio" controls autoplay src="content/test.oga"></audio> 7 <audio id="audio" controls autoplay src="content/test.oga"></audio>
8 <script> 8 <script>
9 var controls; 9 var controls;
10 10
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 } 14 }
15 15
16 var audio = document.getElementById("audio"); 16 var audio = document.getElementById("audio");
17 audio.addEventListener("playing", function() 17 audio.addEventListener("playing", function()
18 { 18 {
19 runAfterControlsHidden(function() 19 runAfterHideMediaControlsTimerFired(function()
20 { 20 {
21 controls = mediaControlsButton(audio, "panel"); 21 controls = mediaControlsButton(audio, "panel");
22 testExpected("getComputedStyle(controls).opacity", 1); 22 testExpected("getComputedStyle(controls).opacity", 1);
23 23
24 consoleWrite(""); 24 consoleWrite("");
25 endTest(); 25 endTest();
26 }, audio); 26 }, audio);
27 }); 27 });
28 </script> 28 </script>
29 </body> 29 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/media-controls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698