mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Mark failing tests
This commit is contained in:
1 file changed
+28
@@ -112,6 +112,8 @@ class HTMLParserTestCase(TestCaseBase):
|
||||
("pi", "processing instruction ?"),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_simple_html(self):
|
||||
self._run_check("""
|
||||
<!DOCTYPE html PUBLIC 'foo'>
|
||||
@@ -256,12 +258,16 @@ text
|
||||
("endtag", "p"),
|
||||
])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_get_starttag_text(self):
|
||||
s = """<foo:bar \n one="1"\ttwo=2 >"""
|
||||
self._run_check_extra(s, [
|
||||
("starttag", "foo:bar", [("one", "1"), ("two", "2")]),
|
||||
("starttag_text", s)])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_cdata_content(self):
|
||||
contents = [
|
||||
'<!-- not a comment --> ¬-an-entity-ref;',
|
||||
@@ -341,6 +347,8 @@ text
|
||||
('comment', '[if lte IE 7]>pretty?<![endif]')]
|
||||
self._run_check(html, expected)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_convert_charrefs(self):
|
||||
# default value for convert_charrefs is now True
|
||||
collector = lambda: EventCollectorCharrefs()
|
||||
@@ -414,6 +422,8 @@ text
|
||||
self._run_check("<a$b >", [('starttag', 'a$b', [])])
|
||||
self._run_check("<a$b />", [('startendtag', 'a$b', [])])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_slashes_in_starttag(self):
|
||||
self._run_check('<a foo="var"/>', [('startendtag', 'a', [('foo', 'var')])])
|
||||
html = ('<img width=902 height=250px '
|
||||
@@ -490,6 +500,8 @@ text
|
||||
('data', '"> confuses the parser')]
|
||||
self._run_check(html, expected)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_correct_detection_of_start_tags(self):
|
||||
# see #13273
|
||||
html = ('<div style="" ><b>The <a href="some_url">rain</a> '
|
||||
@@ -608,6 +620,8 @@ text
|
||||
|
||||
class AttributesTestCase(TestCaseBase):
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_attr_syntax(self):
|
||||
output = [
|
||||
("starttag", "a", [("b", "v"), ("c", "v"), ("d", "v"), ("e", None)])
|
||||
@@ -617,6 +631,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
self._run_check("""<a\nb\n=\n'v'\nc\n=\n"v"\nd\n=\nv\ne>""", output)
|
||||
self._run_check("""<a\tb\t=\t'v'\tc\t=\t"v"\td\t=\tv\te>""", output)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_attr_values(self):
|
||||
self._run_check("""<a b='xxx\n\txxx' c="yyy\t\nyyy" d='\txyz\n'>""",
|
||||
[("starttag", "a", [("b", "xxx\n\txxx"),
|
||||
@@ -632,6 +648,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
"<a href=mailto:xyz@example.com>",
|
||||
[("starttag", "a", [("href", "mailto:xyz@example.com")])])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_attr_nonascii(self):
|
||||
# see issue 7311
|
||||
self._run_check(
|
||||
@@ -652,6 +670,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
"<a b='&><"''>",
|
||||
[("starttag", "a", [("b", "&><\"'")])])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_attr_funky_names(self):
|
||||
self._run_check(
|
||||
"<a a.b='v' c:d=v e-f=v>",
|
||||
@@ -700,6 +720,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
]
|
||||
self._run_check(html, expected)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_malformed_adjacent_attributes(self):
|
||||
# see #12629
|
||||
self._run_check('<x><y z=""o"" /></x>',
|
||||
@@ -712,6 +734,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
('endtag', 'x')])
|
||||
|
||||
# see #755670 for the following 3 tests
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_adjacent_attributes(self):
|
||||
self._run_check('<a width="100%"cellspacing=0>',
|
||||
[("starttag", "a",
|
||||
@@ -737,6 +761,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
[("href", "http://www.example.org/\">;")]),
|
||||
("data", "spam"), ("endtag", "a")])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_with_unquoted_attributes(self):
|
||||
# see #12008
|
||||
html = ("<html><body bgcolor=d0ca90 text='181008'>"
|
||||
@@ -761,6 +787,8 @@ class AttributesTestCase(TestCaseBase):
|
||||
]
|
||||
self._run_check(html, expected)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_comma_between_attributes(self):
|
||||
# see bpo 41478
|
||||
# HTMLParser preserves duplicate attributes, leaving the task of
|
||||
|
||||
Reference in new issue
Block a user