OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <title>autoplay with preload set to none.</title> | 2 <title>autoplay with preload set to none.</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <script src="media-file.js"></script> | 5 <script src="media-file.js"></script> |
6 <div id="log"></div> | |
7 <script> | 6 <script> |
8 function autoplay_test(tagName, src) | 7 function autoplay_test(tagName, src) |
9 { | 8 { |
10 async_test(function(t) | 9 async_test(function(t) |
11 { | 10 { |
12 var e = document.createElement(tagName); | 11 var e = document.createElement(tagName); |
13 e.src = src; | 12 e.src = src; |
14 e.preload = "none"; | 13 e.preload = "none"; |
15 e.autoplay = true; | 14 e.autoplay = true; |
16 var actual_events = []; | 15 var actual_events = []; |
(...skipping 10 matching lines...) Expand all Loading... |
27 t.done(); | 26 t.done(); |
28 } | 27 } |
29 })); | 28 })); |
30 }); | 29 }); |
31 }, tagName + '.autoplay with preload="none"'); | 30 }, tagName + '.autoplay with preload="none"'); |
32 } | 31 } |
33 | 32 |
34 autoplay_test('audio', findMediaFile('audio', 'content/test')); | 33 autoplay_test('audio', findMediaFile('audio', 'content/test')); |
35 autoplay_test('video', findMediaFile('video', 'content/test')); | 34 autoplay_test('video', findMediaFile('video', 'content/test')); |
36 </script> | 35 </script> |
OLD | NEW |