Skip to content

Commit 1262f61

Browse files
committed
Revert "chore: update WPT (#4172)"
This reverts commit dcf82a7.
1 parent d6deb77 commit 1262f61

29 files changed

Lines changed: 121 additions & 1083 deletions

test/fixtures/wpt/fetch/api/request/WEB_FEATURES.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/fixtures/wpt/fetch/http-cache/no-vary-search.tentative.any.js

Lines changed: 6 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
// META: script=http-cache.js
77
/*
88
NOTE for testing No-Vary-Search-Header:
9-
- If `params` is set to true, `expect=("dispatch" "uuid")` must be specified.
10-
Otherwise:
11-
- The same HTTP Cache will be used by other tests, which are supposed
12-
to be distinguished by uuid.
13-
- The test utility cannot get the server's states because UA will use the HTTP
14-
Cache instead of sending a new request to server to ask for the latest state.
15-
- Do not test not_cached cases and cached cases within one test. Test infra
16-
checks the number of requests and responses without considering if the
17-
previous responses should be served from cache or not.
9+
If `params` is set to true, `expect=("dispatch" "uuid")` must be specified.
10+
Otherwise:
11+
- The same HTTP Cache will be used by other tests, which are supposed
12+
to be distinguished by uuid.
13+
- The test utility cannot get the server's states because UA will use the HTTP
14+
Cache instead of sending a new request to server to ask for the latest state.
1815
*/
1916
var tests = [
2017
{
@@ -31,61 +28,6 @@ var tests = [
3128
expected_type: "cached"
3229
}
3330
]
34-
},
35-
{
36-
name: "Ground truth: When key-order is not set, URLs should be compared in an order-sensitive way.",
37-
requests: [
38-
{
39-
url_params: "a=1&b=2",
40-
response_headers: [
41-
["Cache-Control", "max-age=10000"],
42-
],
43-
},
44-
{
45-
url_params: "b=2&a=1",
46-
expected_type: "not_cached"
47-
}
48-
]
49-
},
50-
{
51-
name: "When key-order is set , URLs should be compared in an order-insensitive way. Matched cases:",
52-
requests: [
53-
{
54-
url_params: "a=1&b=2",
55-
response_headers: [
56-
["Cache-Control", "max-age=10000"],
57-
["No-Vary-Search", "key-order"],
58-
],
59-
},
60-
{
61-
url_params: "b=2&a=1",
62-
expected_type: "cached"
63-
}
64-
]
65-
},
66-
{
67-
name: "When key-order is set , URLs should be compared in an order-insensitive way. Not matched cases",
68-
requests: [
69-
{
70-
url_params: "a=1&b=2",
71-
response_headers: [
72-
["Cache-Control", "max-age=10000"],
73-
["No-Vary-Search", "key-order"],
74-
],
75-
},
76-
{
77-
url_params: "b=2",
78-
expected_type: "not_cached"
79-
},
80-
{
81-
url_params: "a=2&b=2",
82-
expected_type: "not_cached"
83-
},
84-
{
85-
url_params: "a=1&b=2&c=3",
86-
expected_type: "not_cached"
87-
}
88-
]
8931
}
9032
];
9133
run_tests(tests);

test/fixtures/wpt/fetch/http-cache/pragma-no-cache-with-cache-control.html

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/fixtures/wpt/fetch/http-cache/resources/cached_pragma_rand.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/fixtures/wpt/fetch/local-network-access/META.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/fixtures/wpt/fetch/local-network-access/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/fixtures/wpt/fetch/local-network-access/fetch.tentative.https.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

test/fixtures/wpt/fetch/local-network-access/resources/fetch-private.html

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)