comparison range_charset.t @ 397:847ea345becb

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 05 May 2014 11:46:01 +0400
parents 1e6e216b06c2
children d5bf5942a8b2
comparison
equal deleted inserted replaced
396:5eb0df61f371 397:847ea345becb
85 http_get('/t1.html'); 85 http_get('/t1.html');
86 $t1 = http_get_range('/t1.html', 'Range: bytes=0-9, 10-19'); 86 $t1 = http_get_range('/t1.html', 'Range: bytes=0-9, 10-19');
87 like($t1, qr/206/, 'charset - 206 partial reply'); 87 like($t1, qr/206/, 'charset - 206 partial reply');
88 like($t1, qr/Content-Type: multipart\/byteranges; boundary=\w+\x0d\x0a/, 88 like($t1, qr/Content-Type: multipart\/byteranges; boundary=\w+\x0d\x0a/,
89 'charset - content type'); 89 'charset - content type');
90
91 TODO: {
92 local $TODO = 'not yet' unless $t->has_version('1.5.11');
93
94 like($t1, qr/Content-Type: text\/html; charset=B(?!; charset)/, 90 like($t1, qr/Content-Type: text\/html; charset=B(?!; charset)/,
95 'charset - charset attribute'); 91 'charset - charset attribute');
96 }
97
98 like($t1, qr/X000XXXXXX/m, 'charset - content 0-9'); 92 like($t1, qr/X000XXXXXX/m, 'charset - content 0-9');
99 like($t1, qr/X001XXXXXX\x0d?$/m, 'charset - content 10-19'); 93 like($t1, qr/X001XXXXXX\x0d?$/m, 'charset - content 10-19');
100 94
101 http_get('/t2.html'); 95 http_get('/t2.html');
102 $t1 = http_get_range('/t2.html', 'Range: bytes=0-9, 10-19'); 96 $t1 = http_get_range('/t2.html', 'Range: bytes=0-9, 10-19');