From 6837f3dc54ac4afd89c185e520c250ef2eb42c4e Mon Sep 17 00:00:00 2001 From: xibbar Date: Sun, 4 Nov 2012 11:48:05 +0000 Subject: Sun Nov 4 20:41:28 2012 Takeyuki FUJIOKA * lib/cgi.rb, lib/cgi/*/rb: rename CGI#header to CGI#http_header, add and update HTML5 tag generater. [Bug #7110] Patch provided by Marcus Stollsteimer, thank you ! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_tag_helper.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/cgi/test_cgi_tag_helper.rb') diff --git a/test/cgi/test_cgi_tag_helper.rb b/test/cgi/test_cgi_tag_helper.rb index 29306578b0..51d1d58bd3 100644 --- a/test/cgi/test_cgi_tag_helper.rb +++ b/test/cgi/test_cgi_tag_helper.rb @@ -338,4 +338,17 @@ class CGITagHelperTest < Test::Unit::TestCase end =end + def test_cgi_tag_helper_html5 + @environ = { + 'REQUEST_METHOD' => 'GET', + } + ENV.update(@environ) + ## html5 + cgi = CGI.new('html5') + assert_equal('
',cgi.header) + assert_equal('
',cgi.footer) + assert_equal('
',cgi.article) + assert_equal('
',cgi.section) + end + end -- cgit v1.2.3