From d8c7331672be4d8756e7c55e36048fbf5adc84fb Mon Sep 17 00:00:00 2001 From: jforbes Date: Wed, 27 May 2015 13:38:10 -0400 Subject: [PATCH] Added test for whitespace in playlist --- test/manifest/whiteSpace.js | 25 +++++++++++++++++++++++++ test/manifest/whiteSpace.m3u8 | 14 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 test/manifest/whiteSpace.js create mode 100644 test/manifest/whiteSpace.m3u8 diff --git a/test/manifest/whiteSpace.js b/test/manifest/whiteSpace.js new file mode 100644 index 000000000..68dd2ea56 --- /dev/null +++ b/test/manifest/whiteSpace.js @@ -0,0 +1,25 @@ +{ + "allowCache": true, + "mediaSequence": 0, + "playlistType": "VOD", + "segments": [ + { + "duration": 10, + "uri": "http://example.com/00001.ts" + }, + { + "duration": 10, + "uri": "https://example.com/00002.ts" + }, + { + "duration": 10, + "uri": "//example.com/00003.ts" + }, + { + "duration": 10, + "uri": "http://example.com/00004.ts" + } + ], + "targetDuration": 10, + "endList": true +} \ No newline at end of file diff --git a/test/manifest/whiteSpace.m3u8 b/test/manifest/whiteSpace.m3u8 new file mode 100644 index 000000000..ca51362de --- /dev/null +++ b/test/manifest/whiteSpace.m3u8 @@ -0,0 +1,14 @@ +#EXTM3U +#EXT-X-PLAYLIST-TYPE:VOD +#EXT-X-TARGETDURATION:10 + +#EXTINF:10, +http://example.com/00001.ts +#EXTINF:10, + https://example.com/00002.ts +#EXTINF:10, + //example.com/00003.ts +#EXTINF:10, + http://example.com/00004.ts +#ZEN-TOTAL-DURATION:57.9911 +#EXT-X-ENDLIST