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

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

Issue 1295633003: Cache Storage: replace assert_object_equals w/ assert_response_equals (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback and rebased 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-storage-match.js
diff --git a/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js b/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
index a1801727b5db69554faf14cbad01f74ce1b2f267..c42d1147c40136bc34469ff8b960c66d9c1bbb7d 100644
--- a/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
+++ b/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
@@ -30,8 +30,8 @@ cache_test(function(cache) {
return self.caches.match(transaction.request);
})
.then(function(response) {
- assert_object_equals_fixed(response, transaction.response,
- 'The response should not have changed.');
+ assert_response_equals(response, transaction.response,
+ 'The response should not have changed.');
});
}, 'CacheStorageMatch with no cache name provided');
@@ -49,8 +49,8 @@ cache_test(function(cache) {
return self.caches.match(transaction.request);
})
.then(function(response) {
- assert_object_equals_fixed(response, transaction.response,
- 'The response should not have changed.');
+ assert_response_equals(response, transaction.response,
+ 'The response should not have changed.');
});
}, 'CacheStorageMatch from one of many caches');
@@ -70,8 +70,8 @@ promise_test(function(test) {
return self.caches.match(transaction.request, {cacheName: 'x'});
})
.then(function(response) {
- assert_object_equals_fixed(response, transaction.response,
- 'The response should not have changed.');
+ assert_response_equals(response, transaction.response,
+ 'The response should not have changed.');
})
.then(function() {
return self.caches.match(transaction.request, {cacheName: 'y'});
@@ -89,8 +89,8 @@ cache_test(function(cache) {
return self.caches.match(transaction.request);
})
.then(function(response) {
- assert_object_equals_fixed(response, transaction.response,
- 'The response should not have changed.');
+ assert_response_equals(response, transaction.response,
+ 'The response should not have changed.');
});
}, 'CacheStorageMatch a string request');
« no previous file with comments | « LayoutTests/http/tests/cachestorage/script-tests/cache-put.js ('k') | LayoutTests/http/tests/resources/testharness-helpers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698