blob: 1a0f0bede966cdd8199112e05d33d6dd6abdf91f [file] [log] [blame]
Test that Audio() sets 'preload' attribute.
RUN(mediaElement = new Audio())
++ Test initial attribute value
EXPECTED (mediaElement.getAttribute('preload') == 'auto') OK
EXPECTED (mediaElement.preload == 'auto') OK
RUN(mediaElement.src = 'content/test.m4a')
RUN(mediaElement.load())
++ Test after 'canplaythrough' event
EXPECTED (mediaElement.getAttribute('preload') == 'auto') OK
EXPECTED (mediaElement.preload == 'auto') OK
END OF TEST