Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / deleteIndex-bug110792-expected.txt
blobc188786fd922bec72a2264834874fbe15416d5b6
1 Ensure IndexedDB's IDBObjectStore.deleteIndex() works if IDBIndex object has not been fetched - regression test for bug 110792.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "deleteIndex-bug110792.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname, 1)
10 onFirstUpgradeNeeded():
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.createIndex('index', 'keyPath')
15 closeAndReOpen():
16 db.close()
18 indexedDB.open(dbname, 2)
20 onSecondUpgradeNeeded():
21 db = event.target.result
22 store = event.target.transaction.objectStore('store')
23 store.deleteIndex('index')
24 Expecting exception from store.index('index')
25 PASS Exception was thrown.
26 PASS code is DOMException.NOT_FOUND_ERR
27 PASS ename is 'NotFoundError'
28 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.
29 PASS successfullyParsed is true
31 TEST COMPLETE