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

Side by Side Diff: LayoutTests/http/tests/serviceworker/cache-put-expected.txt

Issue 677533002: Update Cache.put() test to accept string as request (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review nit Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Service Worker: Cache.put 2 PASS Service Worker: Cache.put
3 PASS Cache.put called with simple Request and Response 3 PASS Cache.put called with simple Request and Response
4 PASS Cache.put called with Request and Response from fetch() 4 PASS Cache.put called with Request and Response from fetch()
5 FAIL Cache.put with Request containing a body assert_false: Cache.put should not consume Request body. expected false got true 5 FAIL Cache.put with Request containing a body assert_false: Cache.put should not consume Request body. expected false got true
6 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" 6 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"
7 PASS Cache.put with an empty response body 7 PASS Cache.put with an empty response body
8 PASS Cache.put with HTTP 500 response 8 PASS Cache.put with HTTP 500 response
9 FAIL Cache.put called twice with same Request and different Responses Entry alre ady exists. 9 FAIL Cache.put called twice with same Request and different Responses Entry alre ady exists.
10 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. 10 PASS Cache.put with an string request
11 PASS Cache.put with an invalid response 11 PASS Cache.put with an invalid response
12 PASS Cache.put with a non-HTTP/HTTPS request 12 PASS Cache.put with a non-HTTP/HTTPS request
13 FAIL Cache.put with a relative URL assert_equals: Cache.put should accept a rela tive URL as the request. :[object].url expected "" but got "http://127.0.0.1:800 0/serviceworker/resources/relative-url" 13 FAIL Cache.put with a relative URL assert_equals: Cache.put should accept a rela tive URL as the request. :[object].url expected "" but got "http://127.0.0.1:800 0/serviceworker/resources/relative-url"
14 FAIL Cache.put with a non-GET request assert_promise_rejects: Cache.put should t hrow a TypeError for non-GET requests. Promise did not reject. 14 FAIL Cache.put with a non-GET request assert_promise_rejects: Cache.put should t hrow a TypeError for non-GET requests. Promise did not reject.
15 PASS Cache.put with a non-GET request 15 PASS Cache.put with a non-GET request
16 PASS Cache.put with an empty response 16 PASS Cache.put with an empty response
17 Harness: the test ran to completion. 17 Harness: the test ran to completion.
18 18
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698