Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-default.html

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Request cache - default</title>
6 <meta name="help" href="https://fetch.spec.whatwg.org/#request">
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <script src="/common/utils.js"></script>
10 <script src="/common/get-host-info.sub.js"></script>
11 <script src="request-cache.js"></script>
12 </head>
13 <body>
14 <script>
15 var tests = [
16 {
17 name: 'RequestCache "default" mode checks the cache for previously cache d content and goes to the network for stale responses',
18 state: "stale",
19 request_cache: ["default", "default"],
20 expected_validation_headers: [false, true],
21 expected_no_cache_headers: [false, false],
22 },
23 {
24 name: 'RequestCache "default" mode checks the cache for previously cache d content and avoids going to the network if a fresh response exists',
25 state: "fresh",
26 request_cache: ["default", "default"],
27 expected_validation_headers: [false],
28 expected_no_cache_headers: [false],
29 },
30 {
31 name: 'Responses with the "Cache-Control: no-store" header are not store d in the cache',
32 state: "stale",
33 cache_control: "no-store",
34 request_cache: ["default", "default"],
35 expected_validation_headers: [false, false],
36 expected_no_cache_headers: [false, false],
37 },
38 {
39 name: 'Responses with the "Cache-Control: no-store" header are not store d in the cache',
40 state: "fresh",
41 cache_control: "no-store",
42 request_cache: ["default", "default"],
43 expected_validation_headers: [false, false],
44 expected_no_cache_headers: [false, false],
45 },
46 ];
47 run_tests(tests);
48 </script>
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698