summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_core.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 02:20:55 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 02:20:55 +0000
commitaeca9656813575c0ffd696115a607a43eb776012 (patch)
tree096a269f55df566e627e11a7a27bad4ecf977032 /test/cgi/test_cgi_core.rb
parent4336caf20422cdaeb99e519e20ff9214667e594d (diff)
* lib/cgi/html5.rb: Add html5 tag maker.
* lib/cgi/core.rb: ditto. [Feature #6637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_core.rb')
-rw-r--r--test/cgi/test_cgi_core.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index dab22d3114d..171ff7b8bc1 100644
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -353,6 +353,14 @@ class CGICoreTest < Test::Unit::TestCase
cgi = CGI.new('html4Fr')
expected = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
assert_equal(expected, cgi.doctype)
+ ## html5
+ cgi = CGI.new('html5')
+ expected = '<!DOCTYPE HTML>'
+ assert_equal(expected, cgi.doctype)
+ # cgi.header not broken
+ expected = "Content-Type: text/html\r\n\r\n"
+ actual = cgi.header
+ assert_equal(expected, actual)
end