Index: third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-no-cache.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-no-cache.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-no-cache.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d30ed16269686ae7163853a795d529fb4d869b41 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-cache-no-cache.html |
@@ -0,0 +1,36 @@ |
+<!doctype html> |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <title>Request cache : no-cache</title> |
+ <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 "no-cache" mode revalidates stale responses found in the cache', |
+ state: "stale", |
+ request_cache: ["default", "no-cache"], |
+ expected_validation_headers: [false, true], |
+ expected_no_cache_headers: [false, false], |
+ expected_max_age_headers: [false, true], |
+ }, |
+ { |
+ name: 'RequestCache "no-cache" mode revalidates fresh responses found in the cache', |
+ state: "fresh", |
+ request_cache: ["default", "no-cache"], |
+ expected_validation_headers: [false, true], |
+ expected_no_cache_headers: [false, false], |
+ expected_max_age_headers: [false, true], |
+ }, |
+ ]; |
+ run_tests(tests); |
+ </script> |
+ </body> |
+</html> |