Mercurial > hg > nginx-tests
changeset 388:3d4506565f43
Tests: more mp4 tests for exceeding start/end values.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 07 Apr 2014 20:25:40 +0400 |
parents | ff2e9afde90d |
children | c24d1c0b4c73 |
files | mp4.t |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mp4.t Mon Apr 07 20:25:39 2014 +0400 +++ b/mp4.t Mon Apr 07 20:25:40 2014 +0400 @@ -24,7 +24,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http mp4/)->has_daemon('ffprobe ffmpeg') - ->plan(12)->write_file_expand('nginx.conf', <<'EOF'); + ->plan(14)->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -64,7 +64,7 @@ is(durations($t, 7.1), '2.9 12.9', 'start float'); SKIP: { -skip 'no end argument support', 7 unless $t->has_version('1.5.13'); +skip 'no end argument support', 8 unless $t->has_version('1.5.13'); is(durations($t, 6, 9), '3.0 3.0', 'start end integer'); is(durations($t, 2.7, 5.6), '2.9 2.9', 'start end float'); @@ -81,6 +81,15 @@ unlike(http_head("/test.mp4?end=11"), qr!HTTP/1.1 500!, 'end beyond short track'); +unlike(http_head("/test.mp4?end=21"), qr!HTTP/1.1 500!, 'end beyond EOF'); + +} + +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.5.10'); + +unlike(http_head("/test.mp4?start=11"), qr!HTTP/1.1 500!, + 'start beyond short track'); }