forked from mirrors/gecko-dev
Automatic update from web-platform-tests Import maps: rearrange and update WPTs * Flips the pass condition for worker interaction. A module worker does not impact the import map of the outer page, since its constructor takes a URL, not a specifier that needs resolution. * Removes leftover built-in module support and @std references. * Removes .tentative filename suffixes. * Renames "common" to "data-driven". * Renames parsing.tentative.https.html to parsing-internal.https.html so that all internal tests to have -internal in the name. We should move them out of WPT (or convert them to not require internals), eventually, but for now making the difference clear is good. * Moves "core" tests up to the top level. * Removes references to future fetch-based import maps and Chromium implementation limitations. * Adds OWNERS and META.yml Bug: 1026809 Change-Id: I1807468a813ebee416cd8e05a272dbae6ea157bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491616 Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Domenic Denicola <domenic@chromium.org> Cr-Commit-Position: refs/heads/master@{#825559} -- wpt-commits: bb36180aa7a284259079575ba2a175a6a4f5d8d2 wpt-pr: 26239
11 lines
409 B
Python
11 lines
409 B
Python
# 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')))
|
|
)
|