test/xml/test_document_fragment.rb in nokogiri-maglev--1.5.3 vs test/xml/test_document_fragment.rb in nokogiri-maglev--1.5.4.20120815005250
- old
+ new
@@ -174,9 +174,14 @@
assert node.respond_to?(:awesome!), node.class
end
assert fragment.children.respond_to?(:awesome!), fragment.children.class
end
+ def test_add_node_to_doc_fragment_segfault
+ frag = Nokogiri::XML::DocumentFragment.new(@xml, '<p>hello world</p>')
+ Nokogiri::XML::Comment.new(frag,'moo')
+ end
+
if Nokogiri.uses_libxml?
def test_for_libxml_in_context_fragment_parsing_bug_workaround
10.times do
begin
fragment = Nokogiri::XML.fragment("<div></div>")