Class: BasicXmlTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/feed_tools/vendor/html5/tests/test_lxp.rb

Instance Method Summary collapse

Instance Method Details

#test_cdataObject



51
52
53
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 51

def test_cdata
  assert_xml_equal("<x><![CDATA[foo]]></x>","<x>foo</x>")
end

#test_commentObject



47
48
49
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 47

def test_comment
  assert_xml_equal("<x><!-- foo --></x>")
end

#test_html_mismatchedObject



63
64
65
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 63

def test_html_mismatched
  assert_xml_equal("<b><i>foo</b></i>","<b><i>foo</i></b>")
end

#test_optional_closeObject



59
60
61
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 59

def test_optional_close
  assert_xml_equal("<p>foo","<p>foo</p>")
end

#test_simple_textObject



55
56
57
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 55

def test_simple_text
  assert_xml_equal("<p>foo</p>","<p>foo</p>")
end