comparison js_return.t @ 1520:9521130f6f22

Tests: js TODO adjusted.
author Dmitry Volyntsev <xeioex@nginx.com>
date Tue, 15 Oct 2019 19:36:25 +0300
parents 9d8b100a6ce3
children 9bc1ca067449
comparison
equal deleted inserted replaced
1519:787d904bdfe0 1520:9521130f6f22
75 like(http_get('/?c=301&t=path'), qr/ 301 .*Location: path/s, 'return redirect'); 75 like(http_get('/?c=301&t=path'), qr/ 301 .*Location: path/s, 'return redirect');
76 like(http_get('/?c=404'), qr/404 Not.*html/s, 'return error page'); 76 like(http_get('/?c=404'), qr/404 Not.*html/s, 'return error page');
77 77
78 TODO: { 78 TODO: {
79 my ($v) = http_get('/njs') =~ /^([.0-9]+)$/m; 79 my ($v) = http_get('/njs') =~ /^([.0-9]+)$/m;
80 local $TODO = 'not yet' unless $v ge '0.2.1' or $Config{archname} !~ /aarch64/; 80 local $TODO = 'not yet' unless $Config{archname} !~ /aarch64/;
81 81
82 like(http_get('/?c=inv'), qr/ 500 /, 'return invalid'); 82 like(http_get('/?c=inv'), qr/ 500 /, 'return invalid');
83 83
84 } 84 }
85 85