8000 Update tests. · ezc/html5lib-python@9a10a4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a10a4c

Browse files
committed
Update tests.
Also add an assertion for symptom of html5lib#217 (without this the testsuite goes into an infinite loop; this doesn't fix the cause but it avoids the infinite loop happening!).
1 parent 383d1ee commit 9a10a4c

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.pytest.expect

43.4 KB
Binary file not shown.

html5lib/tests/testdata

Submodule testdata updated 94 files
  • tree-construction/tests2.dat
    +120
    -84
  • tree-construction/tests20.dat
    +61
  • tree-construction/tests21.dat
    +51
    -3
  • tree-construction/tests22.dat
    +36
    -3
  • tree-construction/tests23.dat
    +16
    -3
  • tree-construction/tests25.dat
    +15
    -2
  • tree-construction/tests26.dat
    +95
    -20
  • tree-construction/tests3.dat
    +22
    -22
  • tree-construction/tests4.dat
    -1
  • tree-construction/tests5.dat
    +37
    -18
  • tree-construction/tests6.dat
    +155
    -159
  • tree-construction/tests7.dat
    +56
    -29
  • tree-construction/tests8.dat
    +36
    -33
  • tree-construction/tests9.dat
    +82
    -67
  • tree-construction/tests_innerHTML_1.dat
    +150
  • tree-construction/tricky01.dat
    +75
  • tree-construction/webkit01.dat
    +128
    -1
  • tree-construction/webkit02.dat
    +222
  • validator/attributes.test
    -1.0k
  • validator/base-href-attribute.test
    -787
  • validator/base-target-attribute.test
    -35
  • validator/blockquote-cite-attribute.test
    -7
  • validator/classattribute.test
    -152
  • validator/contenteditableattribute.test
    -59
  • validator/contextmenuattribute.test
    -115
  • validator/dirattribute.test
    -59
  • validator/draggableattribute.test
    -63
  • validator/html-xmlns-attribute.test
    -23
  • validator/idattribute.test
    -115
  • validator/inputattributes.test
    -2.8k
  • validator/irrelevantattribute.test
    -63
  • validator/langattribute.test
    -5.6k
  • validator/li-value-attribute.test
    -7
  • validator/link-href-attribute.test
    -7
  • validator/link-hreflang-attribute.test
    -7
  • validator/link-rel-attribute.test
    -271
  • validator/ol-start-attribute.test
    -7
  • validator/starttags.test
    -375
  • validator/style-scoped-attribute.test
    -7
  • validator/tabindexattribute.test
    -79
  • html5lib/treewalkers/etree.py

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -129,6 +129,7 @@ def getParentNode(self, node):
    129129
    if not parents:
    130130
    return parent
    131131
    else:
    132+
    assert list(parents[-1]).count(parent) == 1
    132133
    return parent, list(parents[-1]).index(parent), parents, None
    133134

    134135
    return locals()

    0 commit comments

    Comments
     (0)
    0