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

Side by Side Diff: LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt

Issue 1158973007: IndexedDB: Rely on bindings for enum validation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 6 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 Test IndexedDB's objectStore.openCursor + the cursor it produces in depth. 1 Test IndexedDB's objectStore.openCursor + the cursor it produces in depth.
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; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "objectstore-cursor.html" 8 dbname = "objectstore-cursor.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 objectStore = db.createObjectStore('someObjectStore') 11 objectStore = db.createObjectStore('someObjectStore')
12 12
13 Verify that specifying an invalid direction raises an exception: 13 Verify that specifying an invalid direction raises an exception:
14 Expecting TypeError exception from objectStore.openCursor(0, 'invalid-direction' ) 14 Expecting TypeError exception from objectStore.openCursor(0, 'invalid-direction' )
15 PASS Exception was thrown. 15 PASS Exception was thrown.
16 PASS objectStore.openCursor(0, 'invalid-direction') threw TypeError: Failed to e xecute 'openCursor' on 'IDBObjectStore': The direction provided ('invalid-direct ion') is not one of 'next', 'nextunique', 'prev', or 'prevunique'. 16 PASS objectStore.openCursor(0, 'invalid-direction') threw TypeError: Failed to e xecute 'openCursor' on 'IDBObjectStore': The provided value 'invalid-direction' is not a valid enum value of type IDBCursorDirection.
17 17
18 objectStore.add('', testData[nextToAdd]) 18 objectStore.add('', testData[nextToAdd])
19 objectStore.add('', testData[nextToAdd]) 19 objectStore.add('', testData[nextToAdd])
20 objectStore.add('', testData[nextToAdd]) 20 objectStore.add('', testData[nextToAdd])
21 objectStore.add('', testData[nextToAdd]) 21 objectStore.add('', testData[nextToAdd])
22 objectStore.add('', testData[nextToAdd]) 22 objectStore.add('', testData[nextToAdd])
23 objectStore.add('', testData[nextToAdd]) 23 objectStore.add('', testData[nextToAdd])
24 objectStore.add('', testData[nextToAdd]) 24 objectStore.add('', testData[nextToAdd])
25 Scheduling tests... 25 Scheduling tests...
26 Running tests... 26 Running tests...
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 PASS event.target.result.key is testData[4] 743 PASS event.target.result.key is testData[4]
744 PASS event.target.result.key is testData[3] 744 PASS event.target.result.key is testData[3]
745 PASS event.target.result.key is testData[2] 745 PASS event.target.result.key is testData[2]
746 PASS event.target.result.key is testData[1] 746 PASS event.target.result.key is testData[1]
747 PASS event.target.result.key is testData[0] 747 PASS event.target.result.key is testData[0]
748 PASS event.target.result is null 748 PASS event.target.result is null
749 PASS successfullyParsed is true 749 PASS successfullyParsed is true
750 750
751 TEST COMPLETE 751 TEST COMPLETE
752 752
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/exceptions-expected.txt ('k') | Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698