require "helper"
module Nokogiri
module HTML
class TestDocument < Nokogiri::TestCase
def setup
super
@html = Nokogiri::HTML.parse(File.read(HTML_FILE))
end
def test_nil_css
# Behavior is undefined but shouldn't break
assert @html.css(nil)
assert @html.xpath(nil)
end
def test_does_not_fail_with_illformatted_html
doc = Nokogiri::HTML('"