Mercurial > hg > nginx-tests
comparison body_chunked.t @ 242:8f280348d76f
Tests: add has_version() method and use it as appropriate.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 26 Nov 2012 03:47:31 +0400 |
parents | 462d89f5732a |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
241:a01a53bcbf11 | 242:8f280348d76f |
---|---|
81 $t->run(); | 81 $t->run(); |
82 | 82 |
83 ############################################################################### | 83 ############################################################################### |
84 | 84 |
85 TODO: { | 85 TODO: { |
86 local $TODO = 'not yet'; | 86 local $TODO = 'not yet' unless $t->has_version('1.3.9'); |
87 | 87 |
88 like(http_get_body('/', '0123456789'), | 88 like(http_get_body('/', '0123456789'), |
89 qr/X-Body: 0123456789\x0d?$/ms, 'body'); | 89 qr/X-Body: 0123456789\x0d?$/ms, 'body'); |
90 | 90 |
91 like(http_get_body('/', '0123456789' x 128), | 91 like(http_get_body('/', '0123456789' x 128), |