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

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

Issue 2520093002: Make Cache Storage tests resilient to execution order (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
index 673cf50f01ca85146983862c9de6bb81967c6002..faf5f6d2fc55c8a367322f1241629e9629e8d418 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
+++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
@@ -204,8 +204,14 @@ promise_test(function(t) {
promise_test(function(t) {
var bad_name = 'unpaired\uD800';
jkarlin 2016/11/22 15:08:34 bad_name is very confusing. It makes me think that
jsbell 2016/11/22 18:02:39 Agreed, will do.
- var converted_name = 'unpaired\uFFFD'; // Don't create cache with this name.
- return self.caches.has(converted_name)
+ var converted_name = 'unpaired\uFFFD';
+ return Promise.all([
+ self.caches.delete(bad_name),
+ self.caches.delete(converted_name)
jkarlin 2016/11/22 15:08:34 How was this issue (not deleting the caches) not c
jsbell 2016/11/22 18:02:39 This test runs 3 times (as window, worker, and ser
jkarlin 2016/11/22 18:05:47 Acknowledged.
+ ])
+ .then(function() {
+ return self.caches.has(converted_name);
+ })
.then(function(cache_exists) {
assert_false(cache_exists,
'Test setup failure: cache should not exist');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698