3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
8 function canplaythrough()
10 consoleWrite("++ Test after 'canplaythrough' event");
11 testExpected("mediaElement.getAttribute('preload')", "auto");
12 testExpected("mediaElement.preload", "auto");
18 run("mediaElement = new Audio()");
21 consoleWrite("++ Test initial attribute value");
22 testExpected("mediaElement.getAttribute('preload')", "auto");
23 testExpected("mediaElement.preload", "auto");
26 mediaElement.addEventListener("canplaythrough", canplaythrough);
27 run("mediaElement.src = '" + findMediaFile("audio", "content/test") + "'");
28 run("mediaElement.load()");
36 <body onload="start()">
37 <p>Test that Audio() sets 'preload' attribute.</p>