@@ -492,7 +492,7 @@ function getPageURLComponents() {
492492 } ;
493493}
494494
495- describe ( `testing hls.js playback in the browser on " ${ browserDescription } " ` , function ( ) {
495+ describe ( `Testing hls.js playback in ${ browserConfig . name } ${ browserConfig . version } ${ browserConfig . platform ? browserConfig . platform : '' } ` , function ( ) {
496496 const failedUrls = { } ;
497497
498498 before ( async function ( ) {
@@ -696,46 +696,49 @@ ${data.logs}
696696 ) {
697697 return ;
698698 }
699- it (
700- `should receive video loadeddata event for ${ stream . description } ` ,
701- testLoadedData . bind ( null , url , config )
702- ) ;
703699
704- if ( stream . startSeek && ! HlsjsLightBuild ) {
700+ describe ( ` ${ index + 1 } . [ ${ name } ]: ${ stream . description } ( ${ stream . url } )` , function ( ) {
705701 it (
706- `seek back to start and play for ${ stream . description } ` ,
707- testSeekBackToStart . bind ( null , url , config )
702+ `should receive video loadeddata event ` ,
703+ testLoadedData . bind ( null , url , config )
708704 ) ;
709- }
710705
711- if ( stream . abr ) {
712- it (
713- `should "smooth switch" to highest level and still play after 2s for ${ stream . description } `,
714- testSmoothSwitch . bind ( null , url , config )
715- ) ;
716- }
706+ if ( stream . startSeek && ! HlsjsLightBuild ) {
707+ it (
708+ `seek back to start and play`,
709+ testSeekBackToStart . bind ( null , url , config )
710+ ) ;
711+ }
717712
718- if ( stream . live ) {
719- it (
720- `should seek near the end and receive video seeked event for ${ stream . description } ` ,
721- testSeekOnLive . bind ( null , url , config )
722- ) ;
723- } else if ( ! HlsjsLightBuild ) {
724- it (
725- `should buffer up to maxBufferLength or video.duration for ${ stream . description } ` ,
726- testIdleBufferLength . bind ( null , url , config )
727- ) ;
728- it (
729- `should play ${ stream . description } ` ,
730- testIsPlayingVOD . bind ( null , url , config )
731- ) ;
713+ if ( stream . abr ) {
714+ it (
715+ `should "smooth switch" to highest level and still play after 2s` ,
716+ testSmoothSwitch . bind ( null , url , config )
717+ ) ;
718+ }
732719
733- it (
734- `should seek 3s from end and receive video ended event for ${ stream . description } with 2 or less buffered ranges` ,
735- testSeekOnVOD . bind ( null , url , config )
736- ) ;
737- // TODO: Seeking to or past VOD duration should result in the video ending
738- // it(`should seek on end and receive video ended event for ${stream.description}`, testSeekEndVOD.bind(null, url));
739- }
720+ if ( stream . live ) {
721+ it (
722+ `should seek near the end and receive video seeked event` ,
723+ testSeekOnLive . bind ( null , url , config )
724+ ) ;
725+ } else if ( ! HlsjsLightBuild ) {
726+ it (
727+ `should buffer up to maxBufferLength or video.duration` ,
728+ testIdleBufferLength . bind ( null , url , config )
729+ ) ;
730+ it (
731+ `should play ${ stream . description } ` ,
732+ testIsPlayingVOD . bind ( null , url , config )
733+ ) ;
734+
735+ it (
736+ `should seek 3s from end and receive video ended event with 2 or less buffered ranges` ,
737+ testSeekOnVOD . bind ( null , url , config )
738+ ) ;
739+ // TODO: Seeking to or past VOD duration should result in the video ending
740+ // it(`should seek on end and receive video ended event`, testSeekEndVOD.bind(null, url));
741+ }
742+ } ) ;
740743 } ) ;
741744} ) ;
0 commit comments