Video elements containing audio tracks with alternate groups. Test that media containing three audio tracks with no alternate group results in three AudioTracks RUN(video.src = findMediaFile("video", "../content/audio-tracks-no-alternate-group")) EVENT(canplaythrough) EXPECTED (video.audioTracks.length == '3') OK TRACK id: kind: language:en TRACK id: kind: language:fr TRACK id: kind: language:es Test that media containing two audio tracks in one alternate group and one track without an alternate group results in two AudioTracks RUN(video.src = findMediaFile("video", "../content/audio-tracks-some-in-alternate-group")) EVENT(canplaythrough) EXPECTED (video.audioTracks.length == '2'), OBSERVED '3' FAIL TRACK id: kind: language:en TRACK id: kind: language:fr TRACK id: kind: language:es Test that media containing six audio tracks, with three audio tracks each referring to a separate track as a fallback track, all in one alternate group, results in three AudioTracks RUN(video.src = findMediaFile("video", "../content/audio-tracks-alternate-group-with-fallback")) EVENT(canplaythrough) EXPECTED (video.audioTracks.length == '3'), OBSERVED '6' FAIL TRACK id: kind: language:en TRACK id: kind: language:en TRACK id: kind: language:fr TRACK id: kind: language:fr TRACK id: kind: language:es TRACK id: kind: language:es END OF TEST