OLD | NEW |
1 (function(window) { | 1 (function(window) { |
2 // Set the testharness.js timeout to 120 seconds so that it is higher than | 2 // Set the testharness.js timeout to 120 seconds so that it is higher than |
3 // the LayoutTest timeout. This prevents testharness.js from prematurely | 3 // the LayoutTest timeout. This prevents testharness.js from prematurely |
4 // terminating tests and allows the LayoutTest runner to control when to | 4 // terminating tests and allows the LayoutTest runner to control when to |
5 // timeout the test. | 5 // timeout the test. |
6 setup({ explicit_timeout: 120000 }); | 6 setup({ explicit_timeout: 120000 }); |
7 | 7 |
8 var SEGMENT_INFO_LIST = [ | 8 var SEGMENT_INFO_LIST = [ |
9 { | 9 { |
10 url: '/media/resources/media-source/webm/test.webm', | 10 url: '/media/resources/media-source/webm/test.webm', |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 return s + " }"; | 393 return s + " }"; |
394 } | 394 } |
395 | 395 |
396 window['assertBufferedEquals'] = function(obj, expected, description) | 396 window['assertBufferedEquals'] = function(obj, expected, description) |
397 { | 397 { |
398 var actual = timeRangesToString(obj.buffered); | 398 var actual = timeRangesToString(obj.buffered); |
399 assert_equals(actual, expected, description); | 399 assert_equals(actual, expected, description); |
400 }; | 400 }; |
401 | 401 |
| 402 window['assertSeekableEquals'] = function(obj, expected, description) |
| 403 { |
| 404 var actual = timeRangesToString(obj.seekable); |
| 405 assert_equals(actual, expected, description); |
| 406 }; |
| 407 |
402 })(window); | 408 })(window); |
OLD | NEW |