Skip to content

Commit 9751d85

Browse files
committed
test: remove low-value HTML::SAX::PushParser encoding test
1 parent 9fcb7d2 commit 9751d85

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/html/sax/test_push_parser.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ def test_chevron
7070
def test_default_options
7171
assert_equal(0, @parser.options)
7272
end
73-
74-
def test_broken_encoding
75-
skip_unless_libxml2("ultra hard to fix for pure Java version")
76-
@parser.options |= XML::ParseOptions::RECOVER
77-
# This is ISO_8859-1:
78-
@parser.<< "<?xml version='1.0' encoding='UTF-8'?><r>Gau\337</r>"
79-
@parser.finish
80-
assert(@parser.document.errors.size >= 1)
81-
assert_equal("Gau\337", @parser.document.data.join)
82-
assert_equal([["r"], ["body"], ["html"]], @parser.document.end_elements)
83-
end
8473
end
8574
end
8675
end

0 commit comments

Comments
 (0)