34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From ee33011cdcb3018314e4d23abbcbd17470a48290 Mon Sep 17 00:00:00 2001
|
|
From: baizg1107 <preloyalwhite@163.com>
|
|
Date: Thu, 9 Dec 2021 19:47:10 +0800
|
|
Subject: [PATCH] fix test push parser fail
|
|
|
|
---
|
|
test/html/sax/test_push_parser.rb | 10 ----------
|
|
1 file changed, 10 deletions(-)
|
|
|
|
diff --git a/test/html/sax/test_push_parser.rb b/test/html/sax/test_push_parser.rb
|
|
index a3939d0..9536114 100644
|
|
--- a/test/html/sax/test_push_parser.rb
|
|
+++ b/test/html/sax/test_push_parser.rb
|
|
@@ -71,16 +71,6 @@ module Nokogiri
|
|
assert_equal 0, @parser.options
|
|
end
|
|
|
|
- def test_broken_encoding
|
|
- skip("ultra hard to fix for pure Java version") if Nokogiri.jruby?
|
|
- @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
|
|
--
|
|
2.27.0
|
|
|