From 914368530ba622ff0117cd34bec058fb0d862155 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 4 Feb 2021 19:41:06 +0000 Subject: Issue #439 - Remove web-platform tests from the tree. This removes a total of 23,936 files we would never use nor have the capacity to properly maintain or keep up-to-date. --- .../tests/fetch/api/request/request-cache.html | 626 --------------------- .../tests/fetch/api/request/request-clone.sub.html | 63 --- .../fetch/api/request/request-consume-empty.html | 103 ---- .../tests/fetch/api/request/request-consume.html | 158 ------ .../tests/fetch/api/request/request-disturbed.html | 77 --- .../tests/fetch/api/request/request-error.html | 110 ---- .../tests/fetch/api/request/request-headers.html | 173 ------ .../tests/fetch/api/request/request-idl.html | 86 --- .../fetch/api/request/request-init-001.sub.html | 92 --- .../tests/fetch/api/request/request-init-002.html | 71 --- .../fetch/api/request/request-init-003.sub.html | 84 --- .../tests/fetch/api/request/request-structure.html | 134 ----- .../tests/fetch/api/request/resources/cache.py | 62 -- 13 files changed, 1839 deletions(-) delete mode 100644 testing/web-platform/tests/fetch/api/request/request-cache.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-clone.sub.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-consume-empty.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-consume.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-disturbed.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-error.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-headers.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-idl.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-init-001.sub.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-init-002.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-init-003.sub.html delete mode 100644 testing/web-platform/tests/fetch/api/request/request-structure.html delete mode 100644 testing/web-platform/tests/fetch/api/request/resources/cache.py (limited to 'testing/web-platform/tests/fetch/api/request') diff --git a/testing/web-platform/tests/fetch/api/request/request-cache.html b/testing/web-platform/tests/fetch/api/request/request-cache.html deleted file mode 100644 index f2c442a54..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-cache.html +++ /dev/null @@ -1,626 +0,0 @@ - - - - - Request cache - - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-clone.sub.html b/testing/web-platform/tests/fetch/api/request/request-clone.sub.html deleted file mode 100644 index c690bb3dc..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-clone.sub.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - Request clone - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-consume-empty.html b/testing/web-platform/tests/fetch/api/request/request-consume-empty.html deleted file mode 100644 index a2bb3e2a9..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-consume-empty.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - Request consume empty bodies - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-consume.html b/testing/web-platform/tests/fetch/api/request/request-consume.html deleted file mode 100644 index 9ac70412a..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-consume.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - Request consume - - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-disturbed.html b/testing/web-platform/tests/fetch/api/request/request-disturbed.html deleted file mode 100644 index dbc218e50..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-disturbed.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - Request disturbed - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-error.html b/testing/web-platform/tests/fetch/api/request/request-error.html deleted file mode 100644 index c87429e76..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-error.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Request error - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-headers.html b/testing/web-platform/tests/fetch/api/request/request-headers.html deleted file mode 100644 index 1d54728b7..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-headers.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - Request Headers - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-idl.html b/testing/web-platform/tests/fetch/api/request/request-idl.html deleted file mode 100644 index 4f1590c75..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-idl.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - Request idl interface - - - - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-init-001.sub.html b/testing/web-platform/tests/fetch/api/request/request-init-001.sub.html deleted file mode 100644 index b41f6f0fe..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-init-001.sub.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Request init: simple cases - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-init-002.html b/testing/web-platform/tests/fetch/api/request/request-init-002.html deleted file mode 100644 index 5d92b09c5..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-init-002.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - Request init: headers and body - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-init-003.sub.html b/testing/web-platform/tests/fetch/api/request/request-init-003.sub.html deleted file mode 100644 index 1f95c5ae9..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-init-003.sub.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Request: init with request or url - - - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/request-structure.html b/testing/web-platform/tests/fetch/api/request/request-structure.html deleted file mode 100644 index 9494689c7..000000000 --- a/testing/web-platform/tests/fetch/api/request/request-structure.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Request structure - - - - - - - - - diff --git a/testing/web-platform/tests/fetch/api/request/resources/cache.py b/testing/web-platform/tests/fetch/api/request/resources/cache.py deleted file mode 100644 index 85265679a..000000000 --- a/testing/web-platform/tests/fetch/api/request/resources/cache.py +++ /dev/null @@ -1,62 +0,0 @@ -def main(request, response): - token = request.GET.first("token", None) - if "querystate" in request.GET: - from json import JSONEncoder - response.headers.set("Content-Type", "text/plain") - return JSONEncoder().encode(request.server.stash.take(token)) - content = request.GET.first("content", None) - tag = request.GET.first("tag", None) - date = request.GET.first("date", None) - expires = request.GET.first("expires", None) - vary = request.GET.first("vary", None) - cc = request.GET.first("cache_control", None) - redirect = request.GET.first("redirect", None) - inm = request.headers.get("If-None-Match", None) - ims = request.headers.get("If-Modified-Since", None) - pragma = request.headers.get("Pragma", None) - cache_control = request.headers.get("Cache-Control", None) - ignore = "ignore" in request.GET - - server_state = request.server.stash.take(token) - if not server_state: - server_state = [] - state = dict() - if not ignore: - if inm: - state["If-None-Match"] = inm - if ims: - state["If-Modified-Since"] = ims - if pragma: - state["Pragma"] = pragma - if cache_control: - state["Cache-Control"] = cache_control - server_state.append(state) - request.server.stash.put(token, server_state) - - if tag: - response.headers.set("ETag", '"%s"' % tag) - elif date: - response.headers.set("Last-Modified", date) - if expires: - response.headers.set("Expires", expires) - if vary: - response.headers.set("Vary", vary) - if cc: - response.headers.set("Cache-Control", cc) - - # The only-if-cached redirect tests wants CORS to be okay, the other tests - # are all same-origin anyways and don't care. - response.headers.set("Access-Control-Allow-Origin", "*"); - - if redirect: - response.headers.set("Location", redirect); - response.status = (302, "Redirect") - return "" - elif ((inm is not None and inm == tag) or - (ims is not None and ims == date)): - response.status = (304, "Not Modified") - return "" - else: - response.status = (200, "OK") - response.headers.set("Content-Type", "text/plain") - return content -- cgit v1.2.3