# File lib/feed_tools/vendor/html5/tests/test_encoding.rb, line 13 def test_chardet #TODO: can we get rid of this? file = File.open(File.join(TESTDATA_DIR, 'encoding', 'chardet', 'test_big5.txt'), 'r') stream = HTML5::HTMLInputStream.new(file, :chardet => true) assert_equal 'big5', stream.char_encoding.downcase rescue LoadError puts "chardet not found, skipping chardet tests" end
Generated with the Darkfish Rdoc Generator 2.