fune/testing/web-platform/tests/import-maps/static-import.py
Domenic Denicola f3ddfa10e3 Bug 1676381 [wpt PR 26239] - Import maps: rearrange and update WPTs, a=testonly
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
2020-11-11 16:39:15 +00:00

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')))
)