1 require File.dirname(__FILE__) + '/../test_helper'
3 class Ohcount::HtmlTest < Ohcount::Test
5 verify_parse("html1.html")
8 def test_comment_entities
9 assert_equal('<!--comment-->', entities_array(" <!--comment-->", 'html', :comment).first)
10 assert_equal('/*comment*/', entities_array("<style type='text/css'>\n/*comment*/\n</style>", 'html', :comment).first)
11 assert_equal('//comment', entities_array("<script type='text/javascript'>\n//comment\n</script>", 'html', :comment).first)
12 assert_equal('/*comment*/', entities_array("<script type='text/javascript'>\n/*comment*/\n</script>", 'html', :comment).first)