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

Side by Side Diff: LayoutTests/media/video-controls-visible-exiting-fullscreen.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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test rendering of video control after exiting fullscreen</title> 3 <title>Test rendering of video control after exiting fullscreen</title>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <script src=media-controls.js></script> 5 <script src=media-controls.js></script>
6 <script src=video-test.js></script> 6 <script src=video-test.js></script>
7 <script src=../fullscreen/full-screen-test.js></script> 7 <script src=../fullscreen/full-screen-test.js></script>
8 <script> 8 <script>
9 var panel; 9 var panel;
10 var playButtonCoordinates; 10 var playButtonCoordinates;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (opacity < 1) 44 if (opacity < 1)
45 failTest("Media control is not opaque."); 45 failTest("Media control is not opaque.");
46 else 46 else
47 runWithKeyDown(function(){ video.webkitRequestFullscreen(); }); 47 runWithKeyDown(function(){ video.webkitRequestFullscreen(); });
48 } 48 }
49 49
50 function onfullscreenchange() 50 function onfullscreenchange()
51 { 51 {
52 switch (count) { 52 switch (count) {
53 case 0: 53 case 0:
54 runAfterControlsHidden(continueTest, video); 54 runAfterHideMediaControlsTimerFired(continueTest, video);
55 break; 55 break;
56 case 1: 56 case 1:
57 consoleWrite(""); 57 consoleWrite("");
58 consoleWrite("** The controls should be shown after exiting the fullscreen"); 58 consoleWrite("** The controls should be shown after exiting the fullscreen");
59 var opacity = getComputedStyle(panel).opacity; 59 var opacity = getComputedStyle(panel).opacity;
60 if (opacity < 1) 60 if (opacity < 1)
61 failTest("Media control is not opaque."); 61 failTest("Media control is not opaque.");
62 else 62 else
63 endTest(); 63 endTest();
64 } 64 }
65 count++; 65 count++;
66 } 66 }
67 67
68 function continueTest() 68 function continueTest()
69 { 69 {
70 consoleWrite(""); 70 consoleWrite("");
71 run("document.webkitExitFullscreen()"); 71 run("document.webkitExitFullscreen()");
72 } 72 }
73 73
74 </script> 74 </script>
75 </head> 75 </head>
76 <body onload="init()"> 76 <body onload="init()">
77 Tests that video controls are shwon after exiting fullscreen<br> 77 Tests that video controls are shwon after exiting fullscreen<br>
78 <video controls></video> 78 <video controls></video>
79 </body> 79 </body>
80 </html> 80 </html>
81 81
OLDNEW
« no previous file with comments | « LayoutTests/media/video-controls-show-on-focus.html ('k') | Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698