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

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

Issue 425413002: [ServiceWorker] Tests for Cache (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CacheStorage.{create => open} Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
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..f6dcb6af0be2eb6bca5b42309f83f9a41643eb11
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/cache-put-expected.txt
@@ -0,0 +1,11 @@
+This is a testharness.js-based test.
+PASS Service Worker: Cache.put
+FAIL Cache.put with a valid request Entry was not found.
+FAIL Cache.put with an existing request Entry was not found.
+PASS Cache.put with a request string
+PASS Cache.put with a request string
+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 an empty response assert_throws: Cache.put should throw a TypeError for an empty response. function "function () { throw e; }" threw object "NotFoundError: Entry was not found." ("NotFoundError") expected object "TypeError" ("TypeError")
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698