OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <title>autoplay-clears-autoplay-flag</title> | |
philipj_slow
2015/12/02 09:50:14
Please make the title human readable, perhaps "aut
liberato (no reviews please)
2015/12/02 15:35:11
done, and renamed test to autoplay-clears-autoplay
| |
3 <script src="../resources/testharness.js"></script> | |
4 <script src="../resources/testharnessreport.js"></script> | |
5 <script src="media-file.js"></script> | |
6 <div id="log"></div> | |
7 <script> | |
8 async_test(function(t) | |
9 { | |
10 var e = document.createElement('audio'); | |
philipj_slow
2015/12/02 09:50:14
You can call it `a` to `audio`, it was previously
liberato (no reviews please)
2015/12/02 15:35:11
i will hang this comment up on my wall. done.
| |
11 e.src = 'data:audio/wav;base64,UklGRjQAAABXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACA BAAZGF0YRAAAAAAAAAA//8CAP3/BAD7/wQA'; | |
12 e.autoplay = true; | |
13 e.addEventListener('ended', function() | |
14 { | |
15 e.currentTime = 0; | |
16 }); | |
17 e.addEventListener('seeked', t.step_func(function() | |
18 { | |
19 assert_true(e.paused); | |
20 assert_true(e.readyState == e.HAVE_ENOUGH_DATA); | |
21 t.done(); | |
22 })); | |
23 document.body.appendChild(e); | |
24 }, 'audio.autoplay-clears-autoplay-flag'); | |
philipj_slow
2015/12/02 09:50:14
When there's just one test in a file, with testhar
liberato (no reviews please)
2015/12/02 15:35:11
Done.
| |
25 </script> | |
OLD | NEW |