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

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

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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;
7
8 dbname = "deleteIndex-bug110792.html" 6 dbname = "deleteIndex-bug110792.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname, 1) 8 indexedDB.open(dbname, 1)
11 9
12 onFirstUpgradeNeeded(): 10 onFirstUpgradeNeeded():
13 db = event.target.result 11 db = event.target.result
14 store = db.createObjectStore('store') 12 store = db.createObjectStore('store')
15 store.createIndex('index', 'keyPath') 13 store.createIndex('index', 'keyPath')
16 14
17 closeAndReOpen(): 15 closeAndReOpen():
18 db.close() 16 db.close()
19 17
20 indexedDB.open(dbname, 2) 18 indexedDB.open(dbname, 2)
21 19
22 onSecondUpgradeNeeded(): 20 onSecondUpgradeNeeded():
23 db = event.target.result 21 db = event.target.result
24 store = event.target.transaction.objectStore('store') 22 store = event.target.transaction.objectStore('store')
25 store.deleteIndex('index') 23 store.deleteIndex('index')
26 Expecting exception from store.index('index') 24 Expecting exception from store.index('index')
27 PASS Exception was thrown. 25 PASS Exception was thrown.
28 PASS code is DOMException.NOT_FOUND_ERR 26 PASS code is DOMException.NOT_FOUND_ERR
29 PASS ename is 'NotFoundError' 27 PASS ename is 'NotFoundError'
30 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found. 28 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.
31 PASS successfullyParsed is true 29 PASS successfullyParsed is true
32 30
33 TEST COMPLETE 31 TEST COMPLETE
34 32
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/delete-range-expected.txt ('k') | LayoutTests/storage/indexeddb/deleteIndex-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698