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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-multiple-deletes.html

Issue 2084053004: IndexedDB: Defer delete calls when there is a running upgrade (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, made delete lists contain unique_ptrs Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-delete-versionchange.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-multiple-deletes.html
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-multiple-deletes.html b/third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-multiple-deletes.html
new file mode 100644
index 0000000000000000000000000000000000000000..734555923b7d085c103821ea9e3953031bff4148
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-multiple-deletes.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<title>IndexedDB: ordering of deletes made during open's upgradeneeded and success</title>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+<script src='resources/testharness-helpers.js'></script>
+<script>
+
+let saw;
+indexeddb_test(
+ (t, db) => {
+ saw = expect(t, ['delete1', 'delete2']);
+ let r = indexedDB.deleteDatabase(db.name);
+ r.onerror = t.unreached_func('delete should succeed');
+ r.onsuccess = t.step_func(e => saw('delete1'));
+ },
+ (t, db) => {
+ let r = indexedDB.deleteDatabase(db.name);
+ r.onerror = t.unreached_func('delete should succeed');
+ r.onsuccess = t.step_func(e => saw('delete2'));
+
+ db.close();
+ },
+ 'Deletes are processed in order');
+
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/indexeddb/upgrade-delete-versionchange.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698