tests/test_xpath_selector_unit/test: Failed successfully

pull/2351/head
Constantin Hong 8 months ago
parent 55b2c6c63e
commit 93a9585fc6

@ -224,9 +224,7 @@ DOM_violation_two_html_root_element = """<!DOCTYPE html>
("//html/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"), ("//html/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),
("//body/p[1]", "First paragraph."), ("//body/p[1]", "First paragraph."),
("//body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"), ("//body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),
("/html[2]/body/p[1]", "First paragraph."),
("/html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"), ("/html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),
("//html[2]/body/p[1]", "First paragraph."),
("//html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"), ("//html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),
]) ])
def test_broken_DOM_01(html_content, xpath, answer): def test_broken_DOM_01(html_content, xpath, answer):

Loading…
Cancel
Save