Mercurial > hg > nginx-tests
comparison js_variables.t @ 1520:9521130f6f22
Tests: js TODO adjusted.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Tue, 15 Oct 2019 19:36:25 +0300 |
parents | 4281225b0c52 |
children | bc0990ea2e5b |
comparison
equal
deleted
inserted
replaced
1519:787d904bdfe0 | 1520:9521130f6f22 |
---|---|
92 | 92 |
93 $t->try_run('no njs')->plan(3); | 93 $t->try_run('no njs')->plan(3); |
94 | 94 |
95 ############################################################################### | 95 ############################################################################### |
96 | 96 |
97 TODO: { | |
98 local $TODO = 'not yet' | |
99 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.2.8'; | |
100 | |
101 like(http_get('/var_set?a=bar'), qr/test_varbar/, 'var set'); | 97 like(http_get('/var_set?a=bar'), qr/test_varbar/, 'var set'); |
102 like(http_get('/content_set?a=bar'), qr/bar/, 'content set'); | 98 like(http_get('/content_set?a=bar'), qr/bar/, 'content set'); |
103 like(http_get('/not_found_set'), qr/variable not found/, 'not found exception'); | 99 like(http_get('/not_found_set'), qr/variable not found/, 'not found exception'); |
104 | 100 |
105 } | |
106 | |
107 ############################################################################### | 101 ############################################################################### |