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

Side by Side Diff: LayoutTests/storage/indexeddb/createIndex-deleteObjectStore.htm

Issue 235883002: IndexedDB: Make sure indexing completes if object store is deleted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/createIndex-deleteObjectStore-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>IndexedDB: Deleting an object store with a new index should complete</tit le>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 var t = async_test('deleteDatabase success event type, existing DB');
7 t.step(function() {
8 var dbName = 'db' + location.pathname;
9 var openRequest = indexedDB.open(dbName);
10 openRequest.onupgradeneeded = t.step_func(function(e) {
11 var db = openRequest.result;
12 var store = db.createObjectStore('store');
13 store.put('value', 'key');
14 store.createIndex('index', 'keyPath');
15 assert_array_equals(db.objectStoreNames, ['store'], 'One store should be present.');
16 assert_array_equals(store.indexNames, ['index'], 'One index should be pr esent.');
17 db.deleteObjectStore('store');
18 assert_array_equals(db.objectStoreNames, [], 'No stores should be presen t.');
19 });
20 openRequest.onsuccess = t.step_func(function(e) {
21 var db = openRequest.result;
22 assert_array_equals(db.objectStoreNames, [], 'No stores should be presen t.');
23 t.done();
24 });
25 });
26 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/createIndex-deleteObjectStore-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698