# HG changeset patch # User Dmitry Volyntsev # Date 1579191325 -10800 # Node ID 53ed2231403b6b9123f9df825a074199437adebf # Parent 0b97d431571f5ea916765ef39c57082592674306 Tests: js TODO adjusted. diff --git a/js_subrequests.t b/js_subrequests.t --- a/js_subrequests.t +++ b/js_subrequests.t @@ -432,15 +432,7 @@ is(get_json('/sr'), '[{"status":404,"uri is(get_json('/sr_args'), '{"h":"xxx"}', 'sr_args'); is(get_json('/sr_options_args'), '{"h":"xxx"}', 'sr_options_args'); is(get_json('/sr_options_method?m=POST'), '["POST"]', 'sr method POST'); - -TODO: { -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.3.3'; - is(get_json('/sr_options_method?m=PURGE'), '["PURGE"]', 'sr method PURGE'); - -} - is(get_json('/sr_options_body'), '["REQ-BODY"]', 'sr_options_body'); is(get_json('/sr_options_method_head'), '{"c":200,"s":0}', 'sr_options_method_head'); diff --git a/stream_js.t b/stream_js.t --- a/stream_js.t +++ b/stream_js.t @@ -367,10 +367,6 @@ is(stream('127.0.0.1:' . port(8082))->re is(stream('127.0.0.1:' . port(8083))->read(), '', 'stream js unknown function'); is(stream('127.0.0.1:' . port(8084))->read(), 'sess_unk=undefined', 's.unk'); -TODO: { -local $TODO = 'not yet' - unless get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.2.4'; - is(stream('127.0.0.1:' . port(8086))->io('0'), '0122345', 'async handlers order'); is(stream('127.0.0.1:' . port(8087))->io('#'), 'OK', 'js_access_undecided'); @@ -385,8 +381,6 @@ is(stream('127.0.0.1:' . port(8094))->io like(get('/p/return'), qr/foo/, 'js_filter_injected_header'); is(stream('127.0.0.1:' . port(8096))->io('x'), 'z', 'js_filter_search'); -} - stream('127.0.0.1:' . port(8097))->io('x'); stream('127.0.0.1:' . port(8098))->io('x'); stream('127.0.0.1:' . port(8099))->io('x'); diff --git a/stream_js_variables.t b/stream_js_variables.t --- a/stream_js_variables.t +++ b/stream_js_variables.t @@ -91,15 +91,9 @@ EOF ############################################################################### -TODO: { -local $TODO = 'not yet' - unless get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.2.8'; - is(stream('127.0.0.1:' . port(8081))->read(), 'test_var400', 'var set'); is(stream('127.0.0.1:' . port(8082))->read(), 'not_found', 'not found set'); -} - $t->stop(); ###############################################################################