Mercurial > hg > nginx-tests
comparison range.t @ 179:2fc8a41e3307
Tests: unsatisfiable ranges are fixed in 1.1.2, remove TODO.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 01 Nov 2011 21:31:23 +0300 |
parents | c5696c97c735 |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
178:168e63df025b | 179:2fc8a41e3307 |
---|---|
101 'multipart - content type'); | 101 'multipart - content type'); |
102 like($t1, qr/X000XXXXXX/m, 'multipart - content 0-9'); | 102 like($t1, qr/X000XXXXXX/m, 'multipart - content 0-9'); |
103 like($t1, qr/^X099XXXXXX\x0d?$/m, 'multipart - content -10 aka 990-999'); | 103 like($t1, qr/^X099XXXXXX\x0d?$/m, 'multipart - content -10 aka 990-999'); |
104 like($t1, qr/X001XXXXXX\x0d?$/m, 'multipart - content 10-19'); | 104 like($t1, qr/X001XXXXXX\x0d?$/m, 'multipart - content 10-19'); |
105 | 105 |
106 TODO: { | |
107 local $TODO = 'not yet'; | |
108 | |
109 $t1 = http_get_range('/t1.html', 'Range: bytes=0-9, -10, 100000-, 10-19'); | 106 $t1 = http_get_range('/t1.html', 'Range: bytes=0-9, -10, 100000-, 10-19'); |
110 like($t1, qr/206/, 'multipart big - 206 partial reply'); | 107 like($t1, qr/206/, 'multipart big - 206 partial reply'); |
111 like($t1, qr/Content-Type: multipart\/byteranges; boundary=/, | 108 like($t1, qr/Content-Type: multipart\/byteranges; boundary=/, |
112 'multipart big - content type'); | 109 'multipart big - content type'); |
113 like($t1, qr/X000XXXXXX/m, 'multipart big - content 0-9'); | 110 like($t1, qr/X000XXXXXX/m, 'multipart big - content 0-9'); |
114 like($t1, qr/^X099XXXXXX\x0d?$/m, 'multipart big - content -10 aka 990-999'); | 111 like($t1, qr/^X099XXXXXX\x0d?$/m, 'multipart big - content -10 aka 990-999'); |
115 like($t1, qr/X001XXXXXX\x0d?$/m, 'multipart big - content 10-19'); | 112 like($t1, qr/X001XXXXXX\x0d?$/m, 'multipart big - content 10-19'); |
116 | |
117 } | |
118 | 113 |
119 like(http_get_range('/t1.html', 'Range: bytes=100000-'), qr/416/, | 114 like(http_get_range('/t1.html', 'Range: bytes=100000-'), qr/416/, |
120 'not satisfiable'); | 115 'not satisfiable'); |
121 | 116 |
122 ############################################################################### | 117 ############################################################################### |