[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / media / audio-controls-do-not-fade-out.html
1 <body>
2 <p>
3     This tests that audio controls do not fade out when the audio is playing.
4 </p>
5 <p id="result">
6     FAIL: Test did not run.
7 </p>
8 <audio id="audio" controls autoplay onplaying="playing()" src="content/silence.wav"></audio><br>
9 <script>
10     if (window.layoutTestController) {
11         layoutTestController.waitUntilDone();
12         layoutTestController.dumpAsText();
13     }
14
15     function playing() {
16         setTimeout(function() {
17             var controls = internals.shadowRoot(document.getElementById("audio")).firstChild.firstChild;
18             var opacity = getComputedStyle(controls).opacity;
19             document.getElementById("result").innerText = opacity < 1 ? "FAIL" : "PASS";
20             layoutTestController.notifyDone();
21         }, 250)
22     }
23 </script>
24 </body>