Class: BasicXmlTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- BasicXmlTest
- Defined in:
- lib/feed_tools/vendor/html5/tests/test_lxp.rb
Instance Method Summary collapse
- #test_cdata ⇒ Object
- #test_comment ⇒ Object
- #test_html_mismatched ⇒ Object
- #test_optional_close ⇒ Object
- #test_simple_text ⇒ Object
Instance Method Details
#test_cdata ⇒ Object
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_comment ⇒ Object
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_mismatched ⇒ Object
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_close ⇒ Object
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_text ⇒ Object
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 |