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

Unified Diff: LayoutTests/http/tests/cachestorage/script-tests/cache-match.js

Issue 1262773003: CacheStorage: Update test expectations for Cache.matchAll() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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/cachestorage/script-tests/cache-match.js
diff --git a/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js b/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js
index 69f219c49216dea100c52fa86edbd2af64ed9e48..b5e5a8c04630e0085d7ea06829a3567b4e5159bb 100644
--- a/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js
+++ b/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js
@@ -145,8 +145,8 @@ prepopulated_cache_test(simple_entries, function(cache, entries) {
prepopulated_cache_test(simple_entries, function(cache, entries) {
return cache.matchAll(entries.a.request.url)
.then(function(result) {
- assert_array_objects_equals(result, [entries.a.response],
- 'Cache.matchAll should match by URL.');
+ assert_array_equivalent(result, [entries.a.response],
+ 'Cache.matchAll should match by URL.');
});
}, 'Cache.matchAll with URL');
@@ -161,9 +161,8 @@ prepopulated_cache_test(simple_entries, function(cache, entries) {
prepopulated_cache_test(simple_entries, function(cache, entries) {
return cache.matchAll(entries.a.request)
.then(function(result) {
- assert_array_objects_equals(
- result, [entries.a.response],
- 'Cache.matchAll should match by Request.');
+ assert_array_equivalent(result, [entries.a.response],
+ 'Cache.matchAll should match by Request.');
});
}, 'Cache.matchAll with Request');
@@ -178,9 +177,8 @@ prepopulated_cache_test(simple_entries, function(cache, entries) {
prepopulated_cache_test(simple_entries, function(cache, entries) {
return cache.matchAll(new Request(entries.a.request.url))
.then(function(result) {
- assert_array_objects_equals(
- result, [entries.a.response],
- 'Cache.matchAll should match by Request.');
+ assert_array_equivalent(result, [entries.a.response],
+ 'Cache.matchAll should match by Request.');
});
}, 'Cache.matchAll with new Request');
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/cachestorage/serviceworker/cache-match-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698