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

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

Issue 675693002: An API returning a Promise should not throw an exceptions [overload version] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Service Worker: Cache.add and Cache.addAll 2 PASS Service Worker: Cache.add and Cache.addAll
3 FAIL Cache.add called with no arguments Failed to execute 'add' on 'Cache': 1 ar gument required, but only 0 present.(stack: TypeError: Failed to execute 'add' o n 'Cache': 1 argument required, but only 0 present. 3 PASS Cache.add called with no arguments
4 at TypeError (native)
5 at http://127.0.0.1:8000/serviceworker/resources/cache-add-worker.js:6:13)
6 FAIL Cache.add called with relative URL specified as a string Cache is not imple mented 4 FAIL Cache.add called with relative URL specified as a string Cache is not imple mented
7 FAIL Cache.add called with non-HTTP/HTTPS URL assert_throws: Cache.add should th row a NetworkError for non-HTTP/HTTPS URLs. function "function () { throw e; }" threw object "NotSupportedError: Cache is not implemented" that is not a DOMExce ption NetworkError: property "code" is equal to 9, expected 19 5 FAIL Cache.add called with non-HTTP/HTTPS URL assert_throws: Cache.add should th row a NetworkError for non-HTTP/HTTPS URLs. function "function () { throw e; }" threw object "NotSupportedError: Cache is not implemented" that is not a DOMExce ption NetworkError: property "code" is equal to 9, expected 19
8 FAIL Cache.add called with Request object Cache is not implemented 6 FAIL Cache.add called with Request object Cache is not implemented
9 FAIL Cache.add called with Request object with a used body assert_throws: Cache. add with a Request object with a used body should reject with a TypeError. funct ion "function () { throw e; }" threw object "NotFoundError: Entry was not found. " ("NotFoundError") expected object "TypeError" ("TypeError") 7 FAIL Cache.add called with Request object with a used body assert_throws: Cache. add with a Request object with a used body should reject with a TypeError. funct ion "function () { throw e; }" threw object "NotFoundError: Entry was not found. " ("NotFoundError") expected object "TypeError" ("TypeError")
10 FAIL Cache.add called twice with the same Request object Cache is not implemente d 8 FAIL Cache.add called twice with the same Request object Cache is not implemente d
11 FAIL Cache.add with request that results in a status of 404 Cache is not impleme nted 9 FAIL Cache.add with request that results in a status of 404 Cache is not impleme nted
12 FAIL Cache.add with request that results in a status of 500 Cache is not impleme nted 10 FAIL Cache.add with request that results in a status of 500 Cache is not impleme nted
13 PASS Cache.addAll with no arguments 11 PASS Cache.addAll with no arguments
14 PASS Cache.addAll with a mix of valid and undefined arguments 12 PASS Cache.addAll with a mix of valid and undefined arguments
15 FAIL Cache.addAll with string URL arguments Cache is not implemented 13 FAIL Cache.addAll with string URL arguments Cache is not implemented
16 FAIL Cache.addAll with Request arguments Cache is not implemented 14 FAIL Cache.addAll with Request arguments Cache is not implemented
17 FAIL Cache.addAll with a mix of succeeding and failing requests Cache is not imp lemented 15 FAIL Cache.addAll with a mix of succeeding and failing requests Cache is not imp lemented
18 FAIL Cache.addAll called with the same Request object specified twice assert_thr ows: Cache.addAll should throw TypeError if the same request is added twice. fun ction "function () { throw e; }" threw object "NotSupportedError: Cache is not i mplemented" ("NotSupportedError") expected object "TypeError" ("TypeError") 16 FAIL Cache.addAll called with the same Request object specified twice assert_thr ows: Cache.addAll should throw TypeError if the same request is added twice. fun ction "function () { throw e; }" threw object "NotSupportedError: Cache is not i mplemented" ("NotSupportedError") expected object "TypeError" ("TypeError")
19 Harness: the test ran to completion. 17 Harness: the test ran to completion.
20 18
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698