Index: LayoutTests/http/tests/serviceworker/cache-put-expected.txt |
diff --git a/LayoutTests/http/tests/serviceworker/cache-put-expected.txt b/LayoutTests/http/tests/serviceworker/cache-put-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1c8e6f2490c0b85d8cc06a0f6874baa9ebc16333 |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/cache-put-expected.txt |
@@ -0,0 +1,14 @@ |
+This is a testharness.js-based test. |
+PASS Service Worker: Cache.put |
+FAIL Cache.put result on success assert_equals: Cache.put should resolve with undefined on success. expected (undefined) undefined but got (object) object "[object Response]" |
+PASS Cache.put with a valid request and response |
+FAIL Cache.put with request containing a body assert_false: Cache.put should not consume Request body. expected false got true |
+FAIL Cache.put with a response containing an empty URL assert_equals: Cache.put should update the cache with new request and response. :[object].url expected "" but got "https://example.com/foo" |
+FAIL Cache.put with an existing request Entry already exists. |
+FAIL Cache.put with an invalid request assert_promise_rejects: Cache.put should only accept a Request object as the request. Promise did not reject. |
+FAIL Cache.put with a non-HTTP/HTTPS request assert_promise_rejects: Cache.put should reject non-HTTP/HTTPS requests with a TypeError. Promise did not reject. |
+FAIL Cache.put with a relative URL assert_equals: Cache.put should accept a relative URL as the request. :[object].url expected "" but got "http://127.0.0.1:8000/serviceworker/resources/relative-url" |
+FAIL Cache.put with a non-GET request assert_promise_rejects: Cache.put should throw a TypeError for non-GET requests. Promise did not reject. |
+FAIL Cache.put with a non-GET request assert_promise_rejects: Cache.put should throw a TypeError for non-GET requests. Promise did not reject. |
+Harness: the test ran to completion. |
+ |