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

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

Issue 425413002: [ServiceWorker] Tests for Cache (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updates tests to comply with spec changes 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-add-expected.txt
diff --git a/LayoutTests/http/tests/serviceworker/cache-add-expected.txt b/LayoutTests/http/tests/serviceworker/cache-add-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..773bd0b0d153d531099f2b1a322b12369bdeccd4
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/cache-add-expected.txt
@@ -0,0 +1,20 @@
+This is a testharness.js-based test.
+PASS Service Worker: Cache.add and Cache.addAll
+FAIL Cache.add with no arguments Failed to execute 'add' on 'Cache': 1 argument required, but only 0 present.(stack: TypeError: Failed to execute 'add' on 'Cache': 1 argument required, but only 0 present.
jsbell 2014/10/23 00:15:31 Weird - is it actually *throwing* instead of rejec
asanka 2014/10/23 06:12:39 Acknowledged.
asanka 2014/10/23 06:12:39 Acknowledged.
+ at TypeError (native)
+ at http://127.0.0.1:8000/serviceworker/resources/cache-add-worker.js:6:13)
+FAIL Cache.add with successful request Cache is not implemented
+FAIL Cache.add with non-HTTP/HTTPS URL assert_throws: Cache.add with non-HTTP/HTTPS URL should throw a NetworkError. function "function () { throw e; }" threw object "NotSupportedError: Cache is not implemented" that is not a DOMException NetworkError: property "code" is equal to 9, expected 19
+FAIL Cache.add with Request object Cache is not implemented
+FAIL Cache.add with a used Request object assert_throws: Cache.add with a Request object with a used body should reject with a TypeError. function "function () { throw e; }" threw object "NotFoundError: Entry was not found." ("NotFoundError") expected object "TypeError" ("TypeError")
jsbell 2014/10/23 00:15:31 Any idea why this is NotFoundError instead of NotS
asanka 2014/10/23 06:12:39 Couldn't dig into this one yet.
+FAIL Cache.add called twice with same Request Cache is not implemented
+FAIL Cache.add with resource that results in a status of 404 Cache is not implemented
+FAIL Cache.add with resource that results in a status of 500 Cache is not implemented
+PASS Cache.addAll with no arguments
+PASS Cache.addAll with undefined arguments
+FAIL Cache.addAll with ScalarValueString arguments Cache is not implemented
+FAIL Cache.addAll with Request arguments Cache is not implemented
+FAIL Cache.addAll with failing request Cache is not implemented
+FAIL Cache.addAll with the same Request twice assert_throws: Cache.addAll should throw TypeError if the same request is added twice. function "function () { throw e; }" threw object "NotSupportedError: Cache is not implemented" ("NotSupportedError") expected object "TypeError" ("TypeError")
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698