dom/browser-element/mochitest/priority/file_Audio.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/browser-element/mochitest/priority/file_Audio.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<html>
     1.5 +<body>
     1.6 +
     1.7 +<script>
     1.8 +addEventListener('load', function() {
     1.9 +  setTimeout(function() {
    1.10 +    var a = document.getElementById('audio');
    1.11 +    a.onplay = function() {
    1.12 +      alert('onplay');
    1.13 +    };
    1.14 +    a.play();
    1.15 +  }, 0);
    1.16 +});
    1.17 +</script>
    1.18 +
    1.19 +<audio id='audio' loop src='silence.ogg'>
    1.20 +
    1.21 +</body>
    1.22 +</html>

mercurial