Initial Revision
[ohcount] / test / unit / html_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class HtmlTest < LingoTest
4
5
6         def test_css
7 #               html = " <style type=\"text/css\">\np {\n color: #444\n} \n </style>"
8 #               html_lb = Ohcount::LanguageBreakdown.new("html", " <style type=\"text/css\">\n </style>", "", 0)
9 #               css_lb = Ohcount::LanguageBreakdown.new("css", "p {\n color: #444\n} \n", "", 0)
10 #               parsed_lb = Ohcount::parse(html, "html")
11 #               assert_equal 2, parsed_lb.size
12 #               assert_equal html_lb, parsed_lb[0]
13 #               assert_equal css_lb, parsed_lb[1]
14         end
15
16
17         def test_comment
18 #               lb = [Ohcount::LanguageBreakdown.new("html", "", " <!-- comment -->", 0)]
19 #               assert_equal lb, Ohcount::parse(" <!-- comment -->", "html")
20         end
21
22                 def test_comprehensive
23                         verify_parse("html1.html")
24                 end
25 end