Merge pull request #10 from dlapalomento/hotfix/manifest-test
Fix the tests. Only manifests with the X-STREAM_INF tag should be consid...
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -258,7 +258,7 @@ | ... | @@ -258,7 +258,7 @@ |
258 | equal(data.hasValidM3UTag, true, 'data has valid EXTM3U'); | 258 | equal(data.hasValidM3UTag, true, 'data has valid EXTM3U'); |
259 | equal(data.targetDuration, 10, 'data has correct TARGET DURATION'); | 259 | equal(data.targetDuration, 10, 'data has correct TARGET DURATION'); |
260 | equal(data.allowCache, "NO", 'acceptable ALLOW CACHE'); | 260 | equal(data.allowCache, "NO", 'acceptable ALLOW CACHE'); |
261 | equal(data.isPlaylist, true, 'data is parsed as a PLAYLIST as expected'); | 261 | equal(data.isPlaylist, false, 'data is parsed as a PLAYLIST as expected'); |
262 | equal(data.playlistType, "VOD", 'acceptable PLAYLIST TYPE'); | 262 | equal(data.playlistType, "VOD", 'acceptable PLAYLIST TYPE'); |
263 | equal(data.mediaItems.length, 16, 'acceptable mediaItem count'); | 263 | equal(data.mediaItems.length, 16, 'acceptable mediaItem count'); |
264 | equal(data.mediaSequence, 0, 'MEDIA SEQUENCE is correct'); | 264 | equal(data.mediaSequence, 0, 'MEDIA SEQUENCE is correct'); |
... | @@ -277,6 +277,7 @@ | ... | @@ -277,6 +277,7 @@ |
277 | 277 | ||
278 | ok(data); | 278 | ok(data); |
279 | equal(data.playlistItems.length, 4, 'Has correct rendition count'); | 279 | equal(data.playlistItems.length, 4, 'Has correct rendition count'); |
280 | equal(data.isPlaylist, true, 'data is parsed as a PLAYLIST as expected'); | ||
280 | equal(data.playlistItems[0].bandwidth, 240000, 'First rendition index bandwidth is correct'); | 281 | equal(data.playlistItems[0].bandwidth, 240000, 'First rendition index bandwidth is correct'); |
281 | equal(data.playlistItems[0]["program-id"], 1, 'First rendition index program-id is correct'); | 282 | equal(data.playlistItems[0]["program-id"], 1, 'First rendition index program-id is correct'); |
282 | equal(data.playlistItems[0].resolution.width, 396, 'First rendition index resolution width is correct'); | 283 | equal(data.playlistItems[0].resolution.width, 396, 'First rendition index resolution width is correct'); | ... | ... |
-
Please register or sign in to post a comment