1 Test IndexedDB cursor.update required arguments
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "cursor-update-value-argument-required.html"
7 indexedDB.deleteDatabase(dbname)
9 db.createObjectStore('autoIncrement', { autoIncrement: true });
10 request = objectStore.openCursor();
11 keys = [1, -1, 0, 10, 2000, 'q', 'z', 'two', 'b', 'a'];
13 request = objectStore.add('foo', keys[i]);
14 request = objectStore.add('foo', keys[i]);
15 request = objectStore.add('foo', keys[i]);
16 request = objectStore.add('foo', keys[i]);
17 request = objectStore.add('foo', keys[i]);
18 request = objectStore.add('foo', keys[i]);
19 request = objectStore.add('foo', keys[i]);
20 request = objectStore.add('foo', keys[i]);
21 request = objectStore.add('foo', keys[i]);
22 request = objectStore.add('foo', keys[i]);
23 request = objectStore.openCursor();
24 cursor = event.target.result;
25 PASS cursor.update(); threw exception TypeError: Failed to execute 'update' on 'IDBCursor': 1 argument required, but only 0 present..
26 PASS successfullyParsed is true