4c27b9d1 by brandonocasey

fixing some more linebreak on parens issues

1 parent 0de2141b
...@@ -112,8 +112,7 @@ QUnit.test('uses timeline values for the expired duration of live playlists', fu ...@@ -112,8 +112,7 @@ QUnit.test('uses timeline values for the expired duration of live playlists', fu
112 QUnit.equal(duration, 120.5 + 9, 'used segment end time'); 112 QUnit.equal(duration, 120.5 + 9, 'used segment end time');
113 }); 113 });
114 114
115 QUnit.test( 115 QUnit.test('looks outside the queried interval for live playlist timeline values',
116 'looks outside the queried interval for live playlist timeline values',
117 function() { 116 function() {
118 let playlist = { 117 let playlist = {
119 mediaSequence: 12, 118 mediaSequence: 12,
...@@ -211,8 +210,7 @@ QUnit.test('uses timeline intervals when segments have them', function() { ...@@ -211,8 +210,7 @@ QUnit.test('uses timeline intervals when segments have them', function() {
211 QUnit.equal(duration, 30.1, 'used the timeline-based interval'); 210 QUnit.equal(duration, 30.1, 'used the timeline-based interval');
212 }); 211 });
213 212
214 QUnit.test( 213 QUnit.test('counts the time between segments as part of the earlier segment\'s duration',
215 'counts the time between segments as part of the earlier segment\'s duration',
216 function() { 214 function() {
217 let duration = Playlist.duration({ 215 let duration = Playlist.duration({
218 mediaSequence: 0, 216 mediaSequence: 0,
...@@ -302,8 +300,7 @@ QUnit.test('master playlists have empty seekable ranges', function() { ...@@ -302,8 +300,7 @@ QUnit.test('master playlists have empty seekable ranges', function() {
302 QUnit.equal(seekable.length, 0, 'no seekable ranges from a master playlist'); 300 QUnit.equal(seekable.length, 0, 'no seekable ranges from a master playlist');
303 }); 301 });
304 302
305 QUnit.test( 303 QUnit.test('seekable end is three target durations from the actual end of live playlists',
306 'seekable end is three target durations from the actual end of live playlists',
307 function() { 304 function() {
308 let seekable = Playlist.seekable({ 305 let seekable = Playlist.seekable({
309 mediaSequence: 0, 306 mediaSequence: 0,
...@@ -347,11 +344,9 @@ QUnit.test('only considers available segments', function() { ...@@ -347,11 +344,9 @@ QUnit.test('only considers available segments', function() {
347 344
348 QUnit.equal(seekable.length, 1, 'there are seekable ranges'); 345 QUnit.equal(seekable.length, 1, 'there are seekable ranges');
349 QUnit.equal(seekable.start(0), 0, 'starts at the earliest available segment'); 346 QUnit.equal(seekable.start(0), 0, 'starts at the earliest available segment');
350 QUnit.equal( 347 QUnit.equal(seekable.end(0),
351 seekable.end(0), 348 10,
352 10, 349 'ends three target durations from the last available segment');
353 'ends three target durations from the last available segment'
354 );
355 }); 350 });
356 351
357 QUnit.test('seekable end accounts for non-standard target durations', function() { 352 QUnit.test('seekable end accounts for non-standard target durations', function() {
...@@ -377,9 +372,7 @@ QUnit.test('seekable end accounts for non-standard target durations', function() ...@@ -377,9 +372,7 @@ QUnit.test('seekable end accounts for non-standard target durations', function()
377 }); 372 });
378 373
379 QUnit.equal(seekable.start(0), 0, 'starts at the earliest available segment'); 374 QUnit.equal(seekable.start(0), 0, 'starts at the earliest available segment');
380 QUnit.equal( 375 QUnit.equal(seekable.end(0),
381 seekable.end(0), 376 9 - (2 + 2 + 1),
382 9 - (2 + 2 + 1), 377 'allows seeking no further than three segments from the end');
383 'allows seeking no further than three segments from the end'
384 );
385 }); 378 });
......