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

Side by Side Diff: LayoutTests/storage/indexeddb/deleteIndex-bug110792-expected.txt

Issue 19107003: IndexedDB: Log exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Ensure IndexedDB's IDBObjectStore.deleteIndex() works if IDBIndex object has not been fetched - regression test for bug 110792. 1 Ensure IndexedDB's IDBObjectStore.deleteIndex() works if IDBIndex object has not been fetched - regression test for bug 110792.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "deleteIndex-bug110792.html" 8 dbname = "deleteIndex-bug110792.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname, 1) 10 indexedDB.open(dbname, 1)
11 11
12 onFirstUpgradeNeeded(): 12 onFirstUpgradeNeeded():
13 db = event.target.result 13 db = event.target.result
14 store = db.createObjectStore('store') 14 store = db.createObjectStore('store')
15 store.createIndex('index', 'keyPath') 15 store.createIndex('index', 'keyPath')
16 16
17 closeAndReOpen(): 17 closeAndReOpen():
18 db.close() 18 db.close()
19 19
20 indexedDB.open(dbname, 2) 20 indexedDB.open(dbname, 2)
21 21
22 onSecondUpgradeNeeded(): 22 onSecondUpgradeNeeded():
23 db = event.target.result 23 db = event.target.result
24 store = event.target.transaction.objectStore('store') 24 store = event.target.transaction.objectStore('store')
25 store.deleteIndex('index') 25 store.deleteIndex('index')
26 Expecting exception from store.index('index') 26 Expecting exception from store.index('index')
27 PASS Exception was thrown. 27 PASS Exception was thrown.
28 PASS code is DOMException.NOT_FOUND_ERR 28 PASS code is DOMException.NOT_FOUND_ERR
29 PASS ename is 'NotFoundError' 29 PASS ename is 'NotFoundError'
30 Exception message: The specified index was not found.
30 PASS successfullyParsed is true 31 PASS successfullyParsed is true
31 32
32 TEST COMPLETE 33 TEST COMPLETE
33 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698