B2G/gecko/content/media/test/manifest.js
// Returns true if two nsTimeRanges are equal, false otherwise
Returns true if two nsTimeRanges are equal, false otherwise
Returns true if two nsTimeRanges are equal false otherwise
function range_equals(r1, r2) {
  if (r1.length != r2.length) {
    return false;
  }
  for (var i = 0; i < r1.length; i++) {
    if (r1.start(i) != r2.start(i) || r1.end(i) != r2.end(i)) {
      return false;
    }
  }
  return true;
}
function range_equals ( r1 , r2 ) { if ( r1 . length != r2 . length ) { return false ; } for ( var i = 0 ; i < r1 . length ; i ++ ) { if ( r1 . start ( i ) != r2 . start ( i ) || r1 . end ( i ) != r2 . end ( i ) ) { return false ; } } return true ; }
Returns true if two nsTimeRanges are equal, false otherwise
Returns true if two nsTimeRanges are equal false otherwise