mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8
This commit is contained in:
parent
8e52f8a523
commit
f3533538ea
2144 changed files with 21364 additions and 11001 deletions
|
@ -4,6 +4,7 @@
|
|||
# This tool creates .html test files for the WPT harness from corresponding .test
|
||||
# files that it finds in the tree for this test collection.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import re
|
||||
import time
|
||||
|
@ -40,7 +41,7 @@ for curdir, subdirList, fileList in os.walk(DEFDIR, topdown=True):
|
|||
try:
|
||||
testJSON = json.load(open(theFile, "r"))
|
||||
except ValueError as e:
|
||||
print "parse of " + theFile + " failed: " + e[0]
|
||||
print("parse of " + theFile + " failed: " + e[0])
|
||||
else:
|
||||
theFile = re.sub("\.\./", "", theFile)
|
||||
defList.append(theFile)
|
||||
|
@ -65,7 +66,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True):
|
|||
try:
|
||||
testJSON = json.load(open(theFile, "r"))
|
||||
except ValueError as e:
|
||||
print "parse of " + theFile + " failed: " + e[0]
|
||||
print("parse of " + theFile + " failed: " + e[0])
|
||||
else:
|
||||
try:
|
||||
testType = testJSON['testType']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue