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

Unified Diff: LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore.html

Issue 291243003: IndexedDB: Test updates for store/index deletion race (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Enable tests Created 6 years, 7 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/storage/indexeddb/createObjectStore-put-deleteObjectStore.html
diff --git a/LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm b/LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore.html
similarity index 56%
copy from LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm
copy to LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore.html
index 7b480315aeb9196199127d6a011296442f41ec5c..462b72254c13f4e7a0cfb80eb414404e6f3e1c64 100644
--- a/LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm
+++ b/LayoutTests/storage/indexeddb/createObjectStore-put-deleteObjectStore.html
@@ -1,9 +1,9 @@
<!DOCTYPE html>
-<title>IndexedDB: Deleting an object store with a new index should complete</title>
+<title>IndexedDB: Regression test - create store/put/delete store should not crash</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
-var t = async_test('Deleting an object store with a new index should complete');
+var t = async_test('Create store/put/delete store should not crash');
t.step(function() {
var dbName = 'db' + location.pathname;
var deleteRequest = indexedDB.deleteDatabase(dbName);
@@ -13,15 +13,11 @@ t.step(function() {
var db = openRequest.result;
var store = db.createObjectStore('store');
store.put('value', 'key');
- store.createIndex('index', 'keyPath');
- assert_array_equals(db.objectStoreNames, ['store'], 'One store should be present.');
- assert_array_equals(store.indexNames, ['index'], 'One index should be present.');
db.deleteObjectStore('store');
- assert_array_equals(db.objectStoreNames, [], 'No stores should be present.');
});
openRequest.onsuccess = t.step_func(function(e) {
var db = openRequest.result;
- assert_array_equals(db.objectStoreNames, [], 'No stores should be present.');
+ assert_array_equals(db.objectStoreNames, []);
t.done();
});
});

Powered by Google App Engine
This is Rietveld 408576698