require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper"))
class TestBuilder < Nokogiri::TestCase
####
# Modified
def test_escaping_text
doc = Nokogiri.Hpricot() { b "" }
assert_equal "<a\"b>", doc.to_html.chomp
assert_equal %{<a\"b>}, doc.at("text()").to_s
end
####
# Modified
def test_no_escaping_text
doc = Nokogiri.Hpricot() { div.test.me! { text "" } }
assert_equal %{<a"b>
},
doc.to_html.chomp
assert_equal %{<a\"b>}, doc.at("text()").to_s
end
####
# Modified
def test_latin1_entities
doc = Nokogiri.Hpricot() { b "\200\225" }
assert_equal "", doc.to_html.chomp
end
end