Update web-platform-tests to revision fd0429f0b45f975b25d85256dac33762134952c5

This commit is contained in:
WPT Sync Bot 2019-04-15 21:58:05 -04:00
parent 0ba7da4431
commit c8202ddbe1
50 changed files with 1210 additions and 191 deletions

View file

@ -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"