comparison charset_gzip_static.t @ 403:22f6aa0d1139

Tests: added version checks to charset_gzip_static.t TODOs.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 20 May 2014 14:53:05 +0400
parents 25c9cd16ae04
children a8bfad2a3f84
comparison
equal deleted inserted replaced
402:25c9cd16ae04 403:22f6aa0d1139
121 like(http_gzip_request('/t1.html'), qr!text/html; charset=.*gzip!ms, 'gzip'); 121 like(http_gzip_request('/t1.html'), qr!text/html; charset=.*gzip!ms, 'gzip');
122 122
123 like(http_get('/t2.html'), qr!text/html; charset=A.*Y{99}!ms, 'recode plain'); 123 like(http_get('/t2.html'), qr!text/html; charset=A.*Y{99}!ms, 'recode plain');
124 124
125 TODO: { 125 TODO: {
126 local $TODO = 'not yet'; 126 local $TODO = 'not yet' unless $t->has_version('1.7.1');
127 127
128 like(http_gzip_request('/t2.html'), qr!text/html\x0d.*gzip!ms, 'recode gzip'); 128 like(http_gzip_request('/t2.html'), qr!text/html\x0d.*gzip!ms, 'recode gzip');
129 http_gzip_like(http_gzip_request('/t2.html'), qr!X{99}!, 'recode content'); 129 http_gzip_like(http_gzip_request('/t2.html'), qr!X{99}!, 'recode content');
130 130
131 } 131 }
134 like(http_gzip_request('/t.html'), qr!text/html\x0d.*gzip!ms, 'nocharset gzip'); 134 like(http_gzip_request('/t.html'), qr!text/html\x0d.*gzip!ms, 'nocharset gzip');
135 135
136 like(http_get('/p/t.html'), qr!text/html; charset=!, 'proxy plain'); 136 like(http_get('/p/t.html'), qr!text/html; charset=!, 'proxy plain');
137 137
138 TODO: { 138 TODO: {
139 local $TODO = 'not yet'; 139 local $TODO = 'not yet' unless $t->has_version('1.7.1');
140 140
141 like(http_gzip_request('/p/t.html'), qr!text/html; charset=.*gzip!ms, 141 like(http_gzip_request('/p/t.html'), qr!text/html; charset=.*gzip!ms,
142 'proxy gzip'); 142 'proxy gzip');
143 143
144 } 144 }
151 151
152 like(http_get('/p.aa/t.html'), qr!text/html; charset=A!ms, 152 like(http_get('/p.aa/t.html'), qr!text/html; charset=A!ms,
153 'proxy nullrecode plain'); 153 'proxy nullrecode plain');
154 154
155 TODO: { 155 TODO: {
156 local $TODO = 'not yet'; 156 local $TODO = 'not yet' unless $t->has_version('1.7.1');
157 157
158 like(http_gzip_request('/p.aa/t.html'), qr!text/html; charset=A.*gzip!ms, 158 like(http_gzip_request('/p.aa/t.html'), qr!text/html; charset=A.*gzip!ms,
159 'proxy nullrecode gzip'); 159 'proxy nullrecode gzip');
160 160
161 } 161 }