comparison range_if_range.t @ 317:a9621dbbd0d4

Tests: remove TODOs with 1.3.x version checks.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 23 Jul 2013 20:25:05 +0400
parents 6a0d934950bc
children d5bf5942a8b2
comparison
equal deleted inserted replaced
316:f36c3532a117 317:a9621dbbd0d4
76 like($t1, qr/206/, 'if-range'); 76 like($t1, qr/206/, 'if-range');
77 77
78 # If-Range + add_header Last-Modified "" 78 # If-Range + add_header Last-Modified ""
79 79
80 $t1 = http_get_range('/t2.html', "Range: bytes=0-9\nIf-Range: wrong"); 80 $t1 = http_get_range('/t2.html', "Range: bytes=0-9\nIf-Range: wrong");
81
82 TODO: {
83 local $TODO = 'not yet' unless $t->has_version('1.3.3');
84
85 like($t1, qr/200 OK/, 'if-range notime'); 81 like($t1, qr/200 OK/, 'if-range notime');
86
87 }
88
89 unlike($t1, qr/Last-Modified: /, 'if-range notime - no last modified'); 82 unlike($t1, qr/Last-Modified: /, 'if-range notime - no last modified');
90 83
91 # If-Range + add_header Last-Modified "Mon, 28 Sep 1970 06:00:00 GMT" 84 # If-Range + add_header Last-Modified "Mon, 28 Sep 1970 06:00:00 GMT"
92 85
93 $t1 = http_get_range('/t3.html', "Range: bytes=0-9\nIf-Range: wrong"); 86 $t1 = http_get_range('/t3.html', "Range: bytes=0-9\nIf-Range: wrong");
94
95 TODO: {
96 local $TODO = 'not yet' unless $t->has_version('1.3.3');
97
98 like($t1, qr/200 OK/, 'if-range time wrong'); 87 like($t1, qr/200 OK/, 'if-range time wrong');
99
100 }
101
102 like($t1, qr/Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT/, 88 like($t1, qr/Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT/,
103 'if-range time wrong - last modified'); 89 'if-range time wrong - last modified');
104 90
105 $t1 = http_get_range('/t3.html', 91 $t1 = http_get_range('/t3.html',
106 "Range: bytes=0-9\nIf-Range: Mon, 28 Sep 1970 06:00:00 GMT"); 92 "Range: bytes=0-9\nIf-Range: Mon, 28 Sep 1970 06:00:00 GMT");