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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-reload.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 - reload</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 "reload" mode does not check the cache for previousl y cached content and goes to the network regardless',
18 state: "stale",
19 request_cache: ["default", "reload"],
20 expected_validation_headers: [false, false],
21 expected_no_cache_headers: [false, true],
22 },
23 {
24 name: 'RequestCache "reload" mode does not check the cache for previousl y cached content and goes to the network regardless',
25 state: "fresh",
26 request_cache: ["default", "reload"],
27 expected_validation_headers: [false, false],
28 expected_no_cache_headers: [false, true],
29 },
30 {
31 name: 'RequestCache "reload" mode does store the response in the cache',
32 state: "stale",
33 request_cache: ["reload", "default"],
34 expected_validation_headers: [false, true],
35 expected_no_cache_headers: [true, false],
36 },
37 {
38 name: 'RequestCache "reload" mode does store the response in the cache',
39 state: "fresh",
40 request_cache: ["reload", "default"],
41 expected_validation_headers: [false],
42 expected_no_cache_headers: [true],
43 },
44 {
45 name: 'RequestCache "reload" mode does store the response in the cache e ven if a previous response is already stored',
46 state: "stale",
47 request_cache: ["default", "reload", "default"],
48 expected_validation_headers: [false, false, true],
49 expected_no_cache_headers: [false, true, false],
50 },
51 {
52 name: 'RequestCache "reload" mode does store the response in the cache e ven if a previous response is already stored',
53 state: "fresh",
54 request_cache: ["default", "reload", "default"],
55 expected_validation_headers: [false, false],
56 expected_no_cache_headers: [false, true],
57 },
58 ];
59 run_tests(tests);
60 </script>
61 </body>
62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698