diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/cgi/test_cgi_core.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb index dab22d3114..171ff7b8bc 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 |