| 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();
|
| });
|
| });
|
|
|