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

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

Issue 7005009: Merge 84611 - <rdar://problem/9322486> REGRESSION (r83397): Default controls fade out when playin... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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 | « LayoutTests/ChangeLog ('k') | LayoutTests/media/audio-controls-do-not-fade-out-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <p> 2 <p>
3 This tests that audio controls do not fade out when the audio is playing. 3 This tests that audio controls do not fade out when the audio is playing.
4 </p> 4 </p>
5 <p id="result"> 5 <p id="result">
6 FAIL: Test did not run. 6 FAIL: Test did not run.
7 </p> 7 </p>
8 <audio id="audio" controls autoplay onplaying="playing()" src="content/silence.w av"></audio><br> 8 <audio id="audio" controls autoplay onplaying="playing()" src="content/silence.w av"></audio><br>
9 <script> 9 <script>
10 if (window.layoutTestController) { 10 if (window.layoutTestController) {
11 layoutTestController.waitUntilDone(); 11 layoutTestController.waitUntilDone();
12 layoutTestController.dumpAsText(); 12 layoutTestController.dumpAsText();
13 } 13 }
14 14
15 function playing() { 15 function playing() {
16 setTimeout(function() { 16 setTimeout(function() {
17 var controls = layoutTestController.shadowRoot(document.getElementBy Id("audio")).firstChild.firstChild; 17 var controls = layoutTestController.shadowRoot(document.getElementBy Id("audio")).firstChild.firstChild;
18 var opacity = getComputedStyle(controls).opacity; 18 var opacity = getComputedStyle(controls).opacity;
19 document.getElementById("result").innerText = opacity < 1 ? "FAIL" : "PASS"; 19 document.getElementById("result").innerText = opacity < 1 ? "FAIL" : "PASS";
20 layoutTestController.notifyDone(); 20 layoutTestController.notifyDone();
21 }, 250) 21 }, 250)
22 } 22 }
23 </script> 23 </script>
24 </body> 24 </body>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/media/audio-controls-do-not-fade-out-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698