| 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 // FIXME: Change this to use explicit_timeout instead once /resources/testha
rness.js | 6 // FIXME: Change this to use explicit_timeout instead once /resources/testha
rness.js |
| 7 // is updated to a more recent version. | 7 // is updated to a more recent version. |
| 8 setup({ timeout: 120000 }); | 8 setup({ timeout: 120000 }); |
| 9 | 9 |
| 10 var SEGMENT_INFO_LIST = [ | 10 var SEGMENT_INFO_LIST = [ |
| 11 { | 11 { |
| 12 url: '/media/resources/media-source/webm/test.webm', | 12 url: '/media/resources/media-source/webm/test.webm', |
| 13 type: 'video/webm; codecs="vp8, vorbis"', | 13 type: 'video/webm; codecs="vp8, vorbis"', |
| 14 duration: 6.042, | 14 // FIXME: Get the init segment duration fixed to match duration afte
r append. |
| 15 // See http://crbug.com/354284. |
| 16 durationInInitSegment: 6.042, |
| 17 duration: 6.051, |
| 18 // Supports jagged-ended stream end timestamps with some less than d
uration: |
| 19 bufferedRangeEndBeforeEndOfStream: 6.042, |
| 15 init: { offset: 0, size: 4357 }, | 20 init: { offset: 0, size: 4357 }, |
| 16 media: [ | 21 media: [ |
| 17 { offset: 4357, size: 11830, timecode: 0 }, | 22 { offset: 4357, size: 11830, timecode: 0 }, |
| 18 { offset: 16187, size: 12588, timecode: 0.385 }, | 23 { offset: 16187, size: 12588, timecode: 0.385 }, |
| 19 { offset: 28775, size: 14588, timecode: 0.779 }, | 24 { offset: 28775, size: 14588, timecode: 0.779 }, |
| 20 { offset: 43363, size: 13023, timecode: 1.174 }, | 25 { offset: 43363, size: 13023, timecode: 1.174 }, |
| 21 { offset: 56386, size: 13127, timecode: 1.592 }, | 26 { offset: 56386, size: 13127, timecode: 1.592 }, |
| 22 { offset: 69513, size: 14456, timecode: 1.987 }, | 27 { offset: 69513, size: 14456, timecode: 1.987 }, |
| 23 { offset: 83969, size: 13458, timecode: 2.381 }, | 28 { offset: 83969, size: 13458, timecode: 2.381 }, |
| 24 { offset: 97427, size: 14566, timecode: 2.776 }, | 29 { offset: 97427, size: 14566, timecode: 2.776 }, |
| 25 { offset: 111993, size: 13201, timecode: 3.171 }, | 30 { offset: 111993, size: 13201, timecode: 3.171 }, |
| 26 { offset: 125194, size: 14061, timecode: 3.566 }, | 31 { offset: 125194, size: 14061, timecode: 3.566 }, |
| 27 { offset: 139255, size: 15353, timecode: 3.96 }, | 32 { offset: 139255, size: 15353, timecode: 3.96 }, |
| 28 { offset: 154608, size: 13618, timecode: 4.378 }, | 33 { offset: 154608, size: 13618, timecode: 4.378 }, |
| 29 { offset: 168226, size: 15094, timecode: 4.773 }, | 34 { offset: 168226, size: 15094, timecode: 4.773 }, |
| 30 { offset: 183320, size: 13069, timecode: 5.168 }, | 35 { offset: 183320, size: 13069, timecode: 5.168 }, |
| 31 { offset: 196389, size: 13788, timecode: 5.563 }, | 36 { offset: 196389, size: 13788, timecode: 5.563 }, |
| 32 { offset: 210177, size: 9009, timecode: 5.957 }, | 37 { offset: 210177, size: 9009, timecode: 5.957 }, |
| 33 ], | 38 ], |
| 34 }, | 39 }, |
| 35 { | 40 { |
| 36 url: '/media/resources/media-source/mp4/test.mp4', | 41 url: '/media/resources/media-source/mp4/test.mp4', |
| 37 type: 'video/mp4; codecs="mp4a.40.2, avc1.4D401E"', | 42 type: 'video/mp4; codecs="mp4a.40.2, avc1.4D401E"', |
| 38 duration: 6.0368, | 43 durationInInitSegment: 6.0368, |
| 44 duration: 6.0424, |
| 45 bufferedRangeEndBeforeEndOfStream: 6.0368, |
| 39 init: { offset: 0, size: 1178 }, | 46 init: { offset: 0, size: 1178 }, |
| 40 media: [ | 47 media: [ |
| 41 { offset: 1246, size: 23828, timecode: 0 }, | 48 { offset: 1246, size: 23828, timecode: 0 }, |
| 42 { offset: 25142, size: 25394, timecode: 0.797 }, | 49 { offset: 25142, size: 25394, timecode: 0.797 }, |
| 43 { offset: 50604, size: 24761, timecode: 1.594 }, | 50 { offset: 50604, size: 24761, timecode: 1.594 }, |
| 44 { offset: 75433, size: 25138, timecode: 2.390 }, | 51 { offset: 75433, size: 25138, timecode: 2.390 }, |
| 45 { offset: 100639, size: 22935, timecode: 3.187 }, | 52 { offset: 100639, size: 22935, timecode: 3.187 }, |
| 46 { offset: 123642, size: 24995, timecode: 3.984}, | 53 { offset: 123642, size: 24995, timecode: 3.984}, |
| 47 { offset: 148637, size: 24968, timecode: 4.781 }, | 54 { offset: 148637, size: 24968, timecode: 4.781 }, |
| 48 { offset: 173689, size: 19068, timecode: 5.578 }, | 55 { offset: 173689, size: 19068, timecode: 5.578 }, |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return s + " }"; | 388 return s + " }"; |
| 382 } | 389 } |
| 383 | 390 |
| 384 window['assertBufferedEquals'] = function(obj, expected, description) | 391 window['assertBufferedEquals'] = function(obj, expected, description) |
| 385 { | 392 { |
| 386 var actual = timeRangesToString(obj.buffered); | 393 var actual = timeRangesToString(obj.buffered); |
| 387 assert_equals(actual, expected, description); | 394 assert_equals(actual, expected, description); |
| 388 }; | 395 }; |
| 389 | 396 |
| 390 })(window); | 397 })(window); |
| OLD | NEW |