OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 /* restrict to just the play button, so the slider doesn't mismatch */ |
| 4 audio { |
| 5 width: 40px; |
| 6 height: 40px; |
| 7 } |
| 8 </style> |
| 9 <script src="../resources/run-after-layout-and-paint.js"></script> |
| 10 <script src=media-file.js></script> |
| 11 <script> |
| 12 |
| 13 testRunner.waitUntilDone(); |
| 14 |
| 15 function test() { |
| 16 var src = findMediaFile("audio", "content/empty"); |
| 17 document.getElementById("audio1").src = src; |
| 18 |
| 19 runAfterLayoutAndPaint(function() { |
| 20 testRunner.notifyDone(); |
| 21 }); |
| 22 } |
| 23 </script> |
| 24 |
| 25 <body onload="test()"> |
| 26 <audio controls></audio> |
| 27 <audio id="audio1" controls></audio> |
| 28 <p>Test that network state transitions paint audio controls properly.</p> |
| 29 </body> |
| 30 |
OLD | NEW |