diff mp4.t @ 387:ff2e9afde90d

Tests: adjusted mp4 test for end value beyond track duration.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 07 Apr 2014 20:25:39 +0400
parents 1d67bc8fa680
children 3d4506565f43
line wrap: on
line diff
--- a/mp4.t
+++ b/mp4.t
@@ -77,9 +77,10 @@ is(durations($t, undef, 5.6), '5.6 5.6',
 like(http_head('/test.mp4?start=1&end=1'), qr/200 OK/, 'zero range');
 like(http_head('/test.mp4?start=1&end=0'), qr/200 OK/, 'negative range');
 
-# start/end values exceeding file duration
+# start/end values exceeding track/file duration
 
-like(http_head("/test.mp4?end=11"), qr!HTTP/1.1 500!, 'end beyond EOF');
+unlike(http_head("/test.mp4?end=11"), qr!HTTP/1.1 500!,
+	'end beyond short track');
 
 }