| Index: LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm
|
| diff --git a/LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm b/LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a6f5999efee0e912360cd12842c2b8a2cc21e9d1
|
| --- /dev/null
|
| +++ b/LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<title>IndexedDB: Deleting an object store with a new index should complete</title>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +var t = async_test('deleteDatabase success event type, existing DB');
|
| +t.step(function() {
|
| + var dbName = 'db' + location.pathname;
|
| + var openRequest = indexedDB.open(dbName);
|
| + openRequest.onupgradeneeded = t.step_func(function(e) {
|
| + 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.');
|
| + t.done();
|
| + });
|
| +});
|
| +</script>
|
|
|