Class: BasicXhtml5Test

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_title_body_mismatched_closeObject



26
27
28
29
30
31
32
33
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 26

def test_title_body_mismatched_close
  assert_xhtml_equal(
    '<title>Xhtml</title><b><i>content</b></i>',
    '<html xmlns="http://www.w3.org/1999/xhtml">' +
    '<head><title>Xhtml</title></head>' + 
    '<body><b><i>content</i></b></body>' +
    '</html>')
end

#test_title_body_named_charrefObject



35
36
37
38
39
40
41
42
# File 'lib/feed_tools/vendor/html5/tests/test_lxp.rb', line 35

def test_title_body_named_charref
  assert_xhtml_equal(
    '<title>ntilde</title>A &ntilde B',
    '<html xmlns="http://www.w3.org/1999/xhtml">' +
    '<head><title>ntilde</title></head>' + 
    '<body>A '+ [0xF1].pack('U') + ' B</body>' +
    '</html>')
end