OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>Setting preload=metadata after calling load() w/ preload=none</title> | |
3 <script src="media-file.js"></script> | |
4 <p>PASS if no crash in Debug.</p> | |
5 <script> | |
6 if (window.testRunner) { | |
7 testRunner.waitUntilDone(); | |
8 testRunner.dumpAsText(); | |
9 } | |
10 var video = document.createElement('video'); | |
11 video.preload = "none"; | |
12 document.addEventListener('DOMContentLoaded', function() { | |
philipj_slow
2015/12/02 13:41:14
Any particular reason to wait for DOMContentLoaded
| |
13 video.src = findMediaFile('video', 'content/test'); | |
14 video.load(); | |
philipj_slow
2015/12/02 13:41:14
Setting the src attribute should have implicitly d
fs
2015/12/02 14:50:49
It seems it is, yes.
| |
15 video.preload = "metadata"; | |
16 | |
17 if (window.testRunner) | |
18 testRunner.notifyDone(); | |
19 }); | |
20 document.body.appendChild(video); | |
philipj_slow
2015/12/02 13:41:14
Does it need to be in the document?
| |
21 </script> | |
OLD | NEW |