mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
Update web-platform-tests to revision fd0429f0b45f975b25d85256dac33762134952c5
This commit is contained in:
parent
0ba7da4431
commit
c8202ddbe1
50 changed files with 1210 additions and 191 deletions
|
@ -54,6 +54,14 @@ def main(request, response):
|
|||
if key.startswith("serviceworker"):
|
||||
response.headers.set("Content-Type", "application/javascript")
|
||||
|
||||
## Add a valid image Content-Type ##
|
||||
if key.startswith("image"):
|
||||
response.headers.set("Content-Type", "image/png")
|
||||
file = open(os.path.join(request.doc_root, "media", "1x1-green.png"), "r")
|
||||
image = file.read()
|
||||
file.close()
|
||||
return image
|
||||
|
||||
## Return a valid .vtt content for the <track> tag ##
|
||||
if key.startswith("track"):
|
||||
return "WEBVTT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue