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

Side by Side Diff: LayoutTests/storage/indexeddb/index-basics-expected.txt

Issue 1047993002: bindings: Add validation for enum Sequence or Array (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 the basics of IndexedDB's IDBIndex. 1 Test the basics of IndexedDB's IDBIndex.
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 = "index-basics.html" 8 dbname = "index-basics.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 indexObject.getKey('does not exist') 63 indexObject.getKey('does not exist')
64 PASS event.target.result is undefined 64 PASS event.target.result is undefined
65 indexObject.get('does not exist') 65 indexObject.get('does not exist')
66 PASS event.target.result is undefined 66 PASS event.target.result is undefined
67 indexObject4.getKey('value2') 67 indexObject4.getKey('value2')
68 PASS event.target.result is "key2" 68 PASS event.target.result is "key2"
69 69
70 Verify that specifying an invalid direction raises an exception: 70 Verify that specifying an invalid direction raises an exception:
71 Expecting TypeError exception from indexObject.openKeyCursor(0, 'invalid-directi on') 71 Expecting TypeError exception from indexObject.openKeyCursor(0, 'invalid-directi on')
72 PASS Exception was thrown. 72 PASS Exception was thrown.
73 PASS indexObject.openKeyCursor(0, 'invalid-direction') threw TypeError: Failed t o execute 'openKeyCursor' on 'IDBIndex': parameter 2 ('invalid-direction') is no t a valid enum value. 73 PASS indexObject.openKeyCursor(0, 'invalid-direction') threw TypeError: Failed t o execute 'openKeyCursor' on 'IDBIndex': The provided value 'invalid-direction' is not a valid enum value.
74 74
75 indexObject.openKeyCursor() 75 indexObject.openKeyCursor()
76 PASS event.target.source is indexObject 76 PASS event.target.source is indexObject
77 PASS event.target.result is non-null. 77 PASS event.target.result is non-null.
78 PASS event.target.result.key is "value" 78 PASS event.target.result.key is "value"
79 PASS event.target.result.primaryKey is "key" 79 PASS event.target.result.primaryKey is "key"
80 event.target.result.continue() 80 event.target.result.continue()
81 PASS event.target.result is non-null. 81 PASS event.target.result is non-null.
82 PASS event.target.result.key is "value2" 82 PASS event.target.result.key is "value2"
83 PASS event.target.result.primaryKey is "key2" 83 PASS event.target.result.primaryKey is "key2"
84 event.target.result.continue() 84 event.target.result.continue()
85 PASS event.target.result is non-null. 85 PASS event.target.result is non-null.
86 PASS event.target.result.key is "value3" 86 PASS event.target.result.key is "value3"
87 PASS event.target.result.primaryKey is "key3" 87 PASS event.target.result.primaryKey is "key3"
88 event.target.result.continue() 88 event.target.result.continue()
89 PASS event.target.result is non-null. 89 PASS event.target.result is non-null.
90 PASS event.target.result.key is "value4" 90 PASS event.target.result.key is "value4"
91 PASS event.target.result.primaryKey is "key4" 91 PASS event.target.result.primaryKey is "key4"
92 event.target.result.continue() 92 event.target.result.continue()
93 PASS event.target.result is null 93 PASS event.target.result is null
94 94
95 Verify that specifying an invalid direction raises an exception: 95 Verify that specifying an invalid direction raises an exception:
96 Expecting TypeError exception from indexObject.openCursor(0, 'invalid-direction' ) 96 Expecting TypeError exception from indexObject.openCursor(0, 'invalid-direction' )
97 PASS Exception was thrown. 97 PASS Exception was thrown.
98 PASS indexObject.openCursor(0, 'invalid-direction') threw TypeError: Failed to e xecute 'openCursor' on 'IDBIndex': parameter 2 ('invalid-direction') is not a va lid enum value. 98 PASS indexObject.openCursor(0, 'invalid-direction') threw TypeError: Failed to e xecute 'openCursor' on 'IDBIndex': The provided value 'invalid-direction' is not a valid enum value.
99 99
100 indexObject.openCursor() 100 indexObject.openCursor()
101 PASS event.target.source is indexObject 101 PASS event.target.source is indexObject
102 PASS event.target.result is non-null. 102 PASS event.target.result is non-null.
103 PASS event.target.result.key is "value" 103 PASS event.target.result.key is "value"
104 PASS event.target.result.value.x is "value" 104 PASS event.target.result.value.x is "value"
105 PASS event.target.result.value.y is "zzz" 105 PASS event.target.result.value.y is "zzz"
106 event.target.result.continue() 106 event.target.result.continue()
107 PASS event.target.result is non-null. 107 PASS event.target.result is non-null.
108 PASS event.target.result.key is "value2" 108 PASS event.target.result.key is "value2"
(...skipping 26 matching lines...) Expand all
135 Passing an invalid key into indexObject.getKey({}). 135 Passing an invalid key into indexObject.getKey({}).
136 Expecting exception from indexObject.getKey({}) 136 Expecting exception from indexObject.getKey({})
137 PASS Exception was thrown. 137 PASS Exception was thrown.
138 PASS code is 0 138 PASS code is 0
139 PASS ename is 'DataError' 139 PASS ename is 'DataError'
140 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no t a valid key. 140 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no t a valid key.
141 PASS successfullyParsed is true 141 PASS successfullyParsed is true
142 142
143 TEST COMPLETE 143 TEST COMPLETE
144 144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698