mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Update web-platform-tests to revision 78f764c05c229883e87ad135c7153051a66e2851
This commit is contained in:
parent
55347aa39f
commit
bf84a079f9
1983 changed files with 58006 additions and 31437 deletions
|
@ -198,7 +198,7 @@
|
|||
("empty", "", None),
|
||||
("onlyspace", " ", None),
|
||||
("space", " 100", 100),
|
||||
("whitespace", "\n\t\f100", 100),
|
||||
("whitespace", "\r\n\t\f100", 100),
|
||||
("plus", "+100", 100),
|
||||
("minus", "-100", None),
|
||||
("octal", "0100", 100),
|
||||
|
@ -235,11 +235,13 @@
|
|||
for name, string, exp in cases:
|
||||
code = ""
|
||||
code, testing, expected = gen(name, string, exp, code)
|
||||
# We need to replace \r with 
 because \r\n gets converted to \n in the HTML parser.
|
||||
htmlString = string.replace('\r', '
')
|
||||
tests.append( {
|
||||
"name": "size.attributes.parse.%s" % name,
|
||||
"desc": "Parsing of non-negative integers",
|
||||
"testing": testing,
|
||||
"canvas": 'width="%s" height="%s"' % (string, string),
|
||||
"canvas": 'width="%s" height="%s"' % (htmlString, htmlString),
|
||||
"code": code,
|
||||
"expected": expected
|
||||
} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue