haikuwebkit/LayoutTests/storage/indexeddb/objectStore-required-argume...

23 lines
1011 B
Plaintext

Test IndexedDB object store required arguments
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore('foo');
PASS objectStore.put(); threw exception TypeError: Not enough arguments.
PASS objectStore.add(); threw exception TypeError: Not enough arguments.
PASS objectStore.delete(); threw exception TypeError: Not enough arguments.
PASS objectStore.get(); threw exception TypeError: Not enough arguments.
PASS objectStore.createIndex(); threw exception TypeError: Not enough arguments.
PASS objectStore.createIndex('foo'); threw exception TypeError: Not enough arguments.
PASS objectStore.index(); threw exception TypeError: Not enough arguments.
PASS objectStore.deleteIndex(); threw exception TypeError: Not enough arguments.
PASS successfullyParsed is true
TEST COMPLETE