Cache API and IDB space usages should be initialized on first quota check
[WebKit-https.git] / LayoutTests / http / tests / IndexedDB / storage-limit-1.https-expected.txt
1 This test makes sure that storage of indexedDB and Cache API do not grow unboundedly.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
7
8 indexedDB.deleteDatabase(dbname)
9 indexedDB.open(dbname)
10 db = event.target.result
11 store = db.createObjectStore('store')
12 db = event.target.result
13 store = db.transaction('store', 'readwrite').objectStore('store')
14 request = store.add(new Uint8Array(300 * 1024), 'key')
15 PASS 'error' in request is true
16 PASS request.error.code is DOMException.QUOTA_EXCEEDED_ERR
17 PASS request.error.name is "QuotaExceededError"
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21