mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 0a28ecf697d96db228f8382db0e41f1c54314dad
This commit is contained in:
parent
1ff56aa84f
commit
52045cb370
106 changed files with 1208 additions and 778 deletions
|
@ -0,0 +1,13 @@
|
|||
import os, sys
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import subresource
|
||||
|
||||
def generate_payload(server_data):
|
||||
return subresource.get_template("script.js.template") % server_data
|
||||
|
||||
def main(request, response):
|
||||
subresource.respond(request,
|
||||
response,
|
||||
payload_generator = generate_payload,
|
||||
content_type = "application/javascript")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue