Class: OpmlTest

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_malformedObject



84
85
86
87
88
89
90
91
92
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 84

def test_malformed
  assert_xml_equal(
    '<opml version="1.0">' +
    '<body><outline text="Odds & Ends"/></body>' +
    '</opml>',
    '<opml version="1.0">' +
    '<body><outline text="Odds &amp; Ends"/></body>' +
    '</opml>')
end

#test_mixedCaseAttributeObject



77
78
79
80
81
82
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 77

def test_mixedCaseAttribute
  assert_xml_equal(
    '<opml version="1.0">' +
    '<body><outline isComment="true"/></body>' +
    '</opml>')
end

#test_mixedCaseElementObject



70
71
72
73
74
75
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 70

def test_mixedCaseElement
  assert_xml_equal(
    '<opml version="1.0">' +
    '<head><ownerName>Dave Winer</ownerName></head>' +
    '</opml>')
end