blob: 8f925fbaa5fc424f3580f88aa57800e7b4004614 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=../../media-resources/video-test.js></script>
<script src=../../media-resources/media-controls.js></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function start() {
video = document.getElementById('video');
waitForEvent('canplaythrough', canplaythrough);
video.src = "../resources/hls/audio-tracks.m3u8";
}
function canplaythrough() {
testExpected("video.audioTracks.length", 3);
testExpected("video.audioTracks[0].enabled", true);
testExpected("video.audioTracks[1].enabled", false);
testExpected("video.audioTracks[2].enabled", false);
endTest();
}
</script>
</head>
<body onload="start()">
<video id="video"></video>
</body>
</html>