ruby-changes:48081
From: mame <ko1@a...>
Date: Tue, 17 Oct 2017 16:41:09 +0900 (JST)
Subject: [ruby-changes:48081] mame:r60195 (trunk): Fix the leak in `TestRDocGeneratorDarkfish#test_generated_method_with_html_tag_yield`
mame 2017-10-17 16:41:04 +0900 (Tue, 17 Oct 2017) New Revision: 60195 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60195 Log: Fix the leak in `TestRDocGeneratorDarkfish#test_generated_method_with_html_tag_yield` Modified files: trunk/test/rdoc/test_rdoc_generator_darkfish.rb Index: test/rdoc/test_rdoc_generator_darkfish.rb =================================================================== --- test/rdoc/test_rdoc_generator_darkfish.rb (revision 60194) +++ test/rdoc/test_rdoc_generator_darkfish.rb (revision 60195) @@ -215,6 +215,7 @@ class TestRDocGeneratorDarkfish < RDoc:: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_darkfish.rb#L215 method_name_index = internal_file.index('<span class="method-name">method_with_html_tag_yield</span>') last_of_method_name_index = method_name_index + internal_file[method_name_index..-1].index('<div class="method-description">') - 1 method_name = internal_file[method_name_index..last_of_method_name_index] + f.close assert_includes method_name, '{ |%<<script>alert("atui")</script>>, yield_arg| ... }' end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/