mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 22:28:59 +02:00
Automatic update from web-platform-tests Add <meta name=timeout content=long> to WPT in SlowTests This is the 2nd step in the process of banning external/wpt from SlowTests. After cleaning up the wtp entries we're marking them as slow by using wpt idioms, i.e.: 1) Add <meta name="timeout" content="long"> to .html files 2) Add // META: timeout=long to .js files Bug: 765026 Change-Id: Iaf051104f419524916e19324996cc36ee37d5426 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1497005 Commit-Queue: Sergio Villar <svillar@igalia.com> Reviewed-by: Andy Paicu <andypaicu@chromium.org> Reviewed-by: Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#643402} -- wpt-commits: 7287608f90f6b9530635d10086fd2ab386faab38 wpt-pr: 15630
181 lines
8.2 KiB
HTML
181 lines
8.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Request cache - default with conditional requests</title>
|
|
<meta name="timeout" content="long">
|
|
<meta name="help" href="https://fetch.spec.whatwg.org/#request">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/utils.js"></script>
|
|
<script src="/common/get-host-info.sub.js"></script>
|
|
<script src="request-cache.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
var tests = [
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Modified-Since header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Modified-Since": now.toGMTString()}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Modified-Since header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Modified-Since": now.toGMTString()}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Modified-Since": now.toGMTString()}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Modified-Since": now.toGMTString()}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-None-Match header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-None-Match": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-None-Match header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-None-Match": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-None-Match": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-None-Match": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Unmodified-Since header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Unmodified-Since": now.toGMTString()}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Unmodified-Since header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Unmodified-Since": now.toGMTString()}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Unmodified-Since": now.toGMTString()}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Unmodified-Since": now.toGMTString()}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Match header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Match": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Match header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Match": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Match header is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Match": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Match header is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Match": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Range header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Range": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Range header (following a request without additional headers) is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{}, {"If-Range": '"foo"'}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [false, true],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Range header is treated similarly to "no-store"',
|
|
state: "stale",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Range": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
{
|
|
name: 'RequestCache "default" mode with an If-Range header is treated similarly to "no-store"',
|
|
state: "fresh",
|
|
request_cache: ["default", "default"],
|
|
request_headers: [{"If-Range": '"foo"'}, {}],
|
|
expected_validation_headers: [false, false],
|
|
expected_no_cache_headers: [true, false],
|
|
},
|
|
];
|
|
run_tests(tests);
|
|
</script>
|
|
</body>
|
|
</html>
|