Skip to content

Commit

Permalink
test: remove low-value HTML::SAX::PushParser encoding test
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 14, 2021
1 parent 9fcb7d2 commit 9751d85
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/html/sax/test_push_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,6 @@ def test_chevron
def test_default_options
assert_equal(0, @parser.options)
end

def test_broken_encoding
skip_unless_libxml2("ultra hard to fix for pure Java version")
@parser.options |= XML::ParseOptions::RECOVER
# This is ISO_8859-1:
@parser.<< "<?xml version='1.0' encoding='UTF-8'?><r>Gau\337</r>"
@parser.finish
assert(@parser.document.errors.size >= 1)
assert_equal("Gau\337", @parser.document.data.join)
assert_equal([["r"], ["body"], ["html"]], @parser.document.end_elements)
end
end
end
end
Expand Down

0 comments on commit 9751d85

Please sign in to comment.