mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 8d1253647cfe3809ddf58a4ad7c9da5f26985d7e
This commit is contained in:
parent
553ff20468
commit
48c420fdb5
440 changed files with 6186 additions and 3542 deletions
11
tests/wpt/web-platform-tests/import-maps/static-import.py
Normal file
11
tests/wpt/web-platform-tests/import-maps/static-import.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
# This file needs to be a sibling of the test files (and not under resources/)
|
||||
# so that base URL resolution is the same between those test files and <script>s
|
||||
# pointing to this file.
|
||||
|
||||
from wptserve.utils import isomorphic_decode
|
||||
|
||||
def main(request, response):
|
||||
return (
|
||||
((b'Content-Type', b'text/javascript'),),
|
||||
u'import "{}";\n'.format(isomorphic_decode(request.GET.first(b'url')))
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue