Commit 5b5a48e5 authored by nolan.robin.cao's avatar nolan.robin.cao Committed by Commit bot

Add layout tests for Cache.matchAll() w/o parameters

Add a layout test case for Cache.matchAll() without parameters.

BUG=578708

Review URL: https://codereview.chromium.org/1706863002

Cr-Commit-Position: refs/heads/master@{#376082}
parent f66a78b0
......@@ -94,6 +94,29 @@ prepopulated_cache_test(simple_entries, function(cache, entries) {
});
}, 'Cache.matchAll with string fragment "http" as query');
prepopulated_cache_test(simple_entries, function(cache, entries) {
return cache.matchAll()
.then(function(result) {
assert_response_array_equivalent(
result,
[
entries.a.response,
entries.b.response,
entries.a_with_query.response,
entries.A.response,
entries.a_https.response,
entries.a_org.response,
entries.cat.response,
entries.catmandu.response,
entries.cat_num_lives.response,
entries.cat_in_the_hat.response,
entries.non_2xx_response.response,
entries.error_response.response
],
'Cache.matchAll without parameters should match all entries.');
});
}, 'Cache.matchAll without parameters');
prepopulated_cache_test(vary_entries, function(cache, entries) {
return cache.matchAll('http://example.com/c')
.then(function(result) {
......
......@@ -8,6 +8,7 @@ PASS Cache.matchAll with ignoreSearch option (request with no search parameters)
PASS Cache.matchAll with ignoreSearch option (request with search parameters)
PASS Cache.matchAll with URL containing fragment
PASS Cache.matchAll with string fragment "http" as query
PASS Cache.matchAll without parameters
FAIL Cache.matchAll with responses containing "Vary" header assert_equals: Cache.matchAll should match the entire header if a vary header is present in both the query and cached requests. expected 1 but got 0
FAIL Cache.matchAll with "ignoreVary" parameter assert_equals: Cache.matchAll should honor "ignoreVary" parameter. expected 3 but got 1
Harness: the test ran to completion.
......
......@@ -8,6 +8,7 @@ PASS Cache.matchAll with ignoreSearch option (request with no search parameters)
PASS Cache.matchAll with ignoreSearch option (request with search parameters)
PASS Cache.matchAll with URL containing fragment
PASS Cache.matchAll with string fragment "http" as query
PASS Cache.matchAll without parameters
FAIL Cache.matchAll with responses containing "Vary" header assert_equals: Cache.matchAll should match the entire header if a vary header is present in both the query and cached requests. expected 1 but got 0
FAIL Cache.matchAll with "ignoreVary" parameter assert_equals: Cache.matchAll should honor "ignoreVary" parameter. expected 3 but got 1
Harness: the test ran to completion.
......
......@@ -8,6 +8,7 @@ PASS Cache.matchAll with ignoreSearch option (request with no search parameters)
PASS Cache.matchAll with ignoreSearch option (request with search parameters)
PASS Cache.matchAll with URL containing fragment
PASS Cache.matchAll with string fragment "http" as query
PASS Cache.matchAll without parameters
FAIL Cache.matchAll with responses containing "Vary" header assert_equals: Cache.matchAll should match the entire header if a vary header is present in both the query and cached requests. expected 1 but got 0
FAIL Cache.matchAll with "ignoreVary" parameter assert_equals: Cache.matchAll should honor "ignoreVary" parameter. expected 3 but got 1
Harness: the test ran to completion.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment