mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision bc60e6f82132cfc9a5b688c566c7772024b3c15c
This commit is contained in:
parent
449881f566
commit
29156ca9e2
223 changed files with 7517 additions and 2093 deletions
|
@ -8,7 +8,7 @@
|
|||
template = '''<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Generated by wpt/upgrade-insecure-requests/support/generate.py -->
|
||||
<!-- Generated by wpt/upgrade-insecure-requests/support/generate.py -->%(additionalMeta)s
|
||||
<title>Upgrade Insecure Requests: %(name)s.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
@ -26,6 +26,12 @@ tests.forEach(test => testMap['%(name)s'](test));
|
|||
</html>
|
||||
'''
|
||||
|
||||
def getLong(file):
|
||||
testsThatNeedMoreTime = [ "worker-subresource-fetch-redirect-upgrade.https.html" ]
|
||||
if any(file in item for item in testsThatNeedMoreTime ):
|
||||
return '\n<meta name="timeout" content="long">'
|
||||
return ""
|
||||
|
||||
# resourceType is |ResourceType| in testharness-helper.sub.js.
|
||||
for name, resourceType in [
|
||||
('image', 'IMAGE'), ('iframe', 'FRAME'),
|
||||
|
@ -40,9 +46,11 @@ for name, resourceType in [
|
|||
if name == 'module-worker' or resourceType == 'WORKLET':
|
||||
types.append(('-import', 'generateModuleImportTests'))
|
||||
for typeName, generatorName in types:
|
||||
with open('%s%s-upgrade.https.html' % (name, typeName), 'w') as html_file:
|
||||
filename = '%s%s-upgrade.https.html' % (name, typeName)
|
||||
with open(filename, 'w') as html_file:
|
||||
html_file.write(template % {
|
||||
'name': name,
|
||||
'additionalMeta': getLong(filename),
|
||||
'resourceType': resourceType,
|
||||
'generatorName': generatorName,
|
||||
'sameOriginOnly': sameOriginOnly})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue