Changeset 117702 in webkit
- Timestamp:
- May 19, 2012, 4:36:46 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 108 edited
-
ChangeLog (modified) (1 diff)
-
storage/indexeddb/basics-expected.txt (modified) (2 diffs)
-
storage/indexeddb/basics-workers-expected.txt (modified) (2 diffs)
-
storage/indexeddb/create-object-store-options-expected.txt (modified) (1 diff)
-
storage/indexeddb/createObjectStore-null-name-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-added-bug-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-continue-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-continue-validity-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-delete-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-inconsistency-expected.txt (modified) (5 diffs)
-
storage/indexeddb/cursor-index-delete-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-key-order-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-primary-key-order-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-skip-deleted-expected.txt (modified) (1 diff)
-
storage/indexeddb/cursor-update-expected.txt (modified) (2 diffs)
-
storage/indexeddb/data-corruption-expected.txt (modified) (2 diffs)
-
storage/indexeddb/database-basics-expected.txt (modified) (2 diffs)
-
storage/indexeddb/duplicates-expected.txt (modified) (4 diffs)
-
storage/indexeddb/error-causes-abort-by-default-expected.txt (modified) (1 diff)
-
storage/indexeddb/exception-in-event-aborts-expected.txt (modified) (1 diff)
-
storage/indexeddb/factory-basics-expected.txt (modified) (1 diff)
-
storage/indexeddb/factory-cmp-expected.txt (modified) (2 diffs)
-
storage/indexeddb/factory-deletedatabase-expected.txt (modified) (1 diff)
-
storage/indexeddb/get-keyrange-expected.txt (modified) (1 diff)
-
storage/indexeddb/index-basics-expected.txt (modified) (2 diffs)
-
storage/indexeddb/index-basics-workers-expected.txt (modified) (2 diffs)
-
storage/indexeddb/index-count-expected.txt (modified) (3 diffs)
-
storage/indexeddb/index-cursor-expected.txt (modified) (1 diff)
-
storage/indexeddb/index-multientry-expected.txt (modified) (4 diffs)
-
storage/indexeddb/index-population-expected.txt (modified) (1 diff)
-
storage/indexeddb/index-unique-expected.txt (modified) (1 diff)
-
storage/indexeddb/key-type-array-expected.txt (modified) (1 diff)
-
storage/indexeddb/keyrange-expected.txt (modified) (1 diff)
-
storage/indexeddb/legacy-constants-expected.txt (modified) (1 diff)
-
storage/indexeddb/mutating-cursor-expected.txt (modified) (1 diff)
-
storage/indexeddb/objectstore-autoincrement-expected.txt (modified) (3 diffs)
-
storage/indexeddb/objectstore-basics-expected.txt (modified) (3 diffs)
-
storage/indexeddb/objectstore-basics-workers-expected.txt (modified) (3 diffs)
-
storage/indexeddb/objectstore-clear-expected.txt (modified) (1 diff)
-
storage/indexeddb/objectstore-count-expected.txt (modified) (3 diffs)
-
storage/indexeddb/objectstore-cursor-expected.txt (modified) (1 diff)
-
storage/indexeddb/objectstore-removeobjectstore-expected.txt (modified) (2 diffs)
-
storage/indexeddb/open-cursor-expected.txt (modified) (3 diffs)
-
storage/indexeddb/opencursor-key-expected.txt (modified) (3 diffs)
-
storage/indexeddb/prefetch-bugfix-108071-expected.txt (modified) (1 diff)
-
storage/indexeddb/queued-commands-expected.txt (modified) (1 diff)
-
storage/indexeddb/request-event-propagation-expected.txt (modified) (1 diff)
-
storage/indexeddb/resources/basics.js (modified) (2 diffs)
-
storage/indexeddb/resources/create-object-store-options.js (modified) (1 diff)
-
storage/indexeddb/resources/createObjectStore-null-name.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-added-bug.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-continue-validity.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-continue.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-delete.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-inconsistency.js (modified) (2 diffs)
-
storage/indexeddb/resources/cursor-index-delete.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-key-order.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-primary-key-order.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-skip-deleted.js (modified) (1 diff)
-
storage/indexeddb/resources/cursor-update.js (modified) (7 diffs)
-
storage/indexeddb/resources/data-corruption.js (modified) (2 diffs)
-
storage/indexeddb/resources/database-basics.js (modified) (2 diffs)
-
storage/indexeddb/resources/database-quota.js (modified) (1 diff)
-
storage/indexeddb/resources/duplicates.js (modified) (7 diffs)
-
storage/indexeddb/resources/error-causes-abort-by-default.js (modified) (1 diff)
-
storage/indexeddb/resources/exception-in-event-aborts.js (modified) (1 diff)
-
storage/indexeddb/resources/factory-basics.js (modified) (1 diff)
-
storage/indexeddb/resources/factory-cmp.js (modified) (3 diffs)
-
storage/indexeddb/resources/factory-deletedatabase.js (modified) (1 diff)
-
storage/indexeddb/resources/get-keyrange.js (modified) (1 diff)
-
storage/indexeddb/resources/index-basics.js (modified) (9 diffs)
-
storage/indexeddb/resources/index-count.js (modified) (6 diffs)
-
storage/indexeddb/resources/index-cursor.js (modified) (1 diff)
-
storage/indexeddb/resources/index-multientry.js (modified) (4 diffs)
-
storage/indexeddb/resources/index-population.js (modified) (1 diff)
-
storage/indexeddb/resources/index-unique.js (modified) (3 diffs)
-
storage/indexeddb/resources/key-type-array.js (modified) (1 diff)
-
storage/indexeddb/resources/keyrange.js (modified) (1 diff)
-
storage/indexeddb/resources/legacy-constants.js (modified) (9 diffs)
-
storage/indexeddb/resources/mutating-cursor.js (modified) (1 diff)
-
storage/indexeddb/resources/objectstore-autoincrement.js (modified) (3 diffs)
-
storage/indexeddb/resources/objectstore-basics.js (modified) (7 diffs)
-
storage/indexeddb/resources/objectstore-clear.js (modified) (1 diff)
-
storage/indexeddb/resources/objectstore-count.js (modified) (6 diffs)
-
storage/indexeddb/resources/objectstore-cursor.js (modified) (1 diff)
-
storage/indexeddb/resources/objectstore-removeobjectstore.js (modified) (2 diffs)
-
storage/indexeddb/resources/open-cursor.js (modified) (3 diffs)
-
storage/indexeddb/resources/opencursor-key.js (modified) (5 diffs)
-
storage/indexeddb/resources/prefetch-bugfix-108071.js (modified) (1 diff)
-
storage/indexeddb/resources/queued-commands.js (modified) (1 diff)
-
storage/indexeddb/resources/request-event-propagation.js (modified) (1 diff)
-
storage/indexeddb/resources/setVersion-null.js (modified) (1 diff)
-
storage/indexeddb/resources/shared.js (modified) (2 diffs)
-
storage/indexeddb/resources/transaction-abort.js (modified) (1 diff)
-
storage/indexeddb/resources/transaction-and-objectstore-calls.js (modified) (2 diffs)
-
storage/indexeddb/resources/transaction-basics.js (modified) (7 diffs)
-
storage/indexeddb/resources/transaction-event-propagation.js (modified) (1 diff)
-
storage/indexeddb/resources/transaction-rollback.js (modified) (2 diffs)
-
storage/indexeddb/resources/two-version-changes.js (modified) (1 diff)
-
storage/indexeddb/resources/values-odd-types.js (modified) (1 diff)
-
storage/indexeddb/setVersion-null-expected.txt (modified) (1 diff)
-
storage/indexeddb/transaction-abort-expected.txt (modified) (1 diff)
-
storage/indexeddb/transaction-and-objectstore-calls-expected.txt (modified) (1 diff)
-
storage/indexeddb/transaction-basics-expected.txt (modified) (7 diffs)
-
storage/indexeddb/transaction-event-propagation-expected.txt (modified) (1 diff)
-
storage/indexeddb/transaction-rollback-expected.txt (modified) (2 diffs)
-
storage/indexeddb/two-version-changes-expected.txt (modified) (1 diff)
-
storage/indexeddb/values-odd-types-expected.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117701 r117702 1 2012-05-19 Joshua Bell <jsbell@chromium.org> 2 3 IndexedDB layout tests should make better use of test library functions 4 https://bugs.webkit.org/show_bug.cgi?id=86932 5 6 Reviewed by Ojan Vafai. 7 8 Use functions like shouldBeEqualToString, shouldBeNull, evalAndExpectException 9 and so forth where possible. 10 11 * storage/indexeddb/basics-expected.txt: 12 * storage/indexeddb/basics-workers-expected.txt: 13 * storage/indexeddb/create-object-store-options-expected.txt: 14 * storage/indexeddb/createObjectStore-null-name-expected.txt: 15 * storage/indexeddb/cursor-added-bug-expected.txt: 16 * storage/indexeddb/cursor-continue-expected.txt: 17 * storage/indexeddb/cursor-continue-validity-expected.txt: 18 * storage/indexeddb/cursor-delete-expected.txt: 19 * storage/indexeddb/cursor-inconsistency-expected.txt: 20 * storage/indexeddb/cursor-index-delete-expected.txt: 21 * storage/indexeddb/cursor-key-order-expected.txt: 22 * storage/indexeddb/cursor-primary-key-order-expected.txt: 23 * storage/indexeddb/cursor-skip-deleted-expected.txt: 24 * storage/indexeddb/cursor-update-expected.txt: 25 * storage/indexeddb/data-corruption-expected.txt: 26 * storage/indexeddb/database-basics-expected.txt: 27 * storage/indexeddb/duplicates-expected.txt: 28 * storage/indexeddb/error-causes-abort-by-default-expected.txt: 29 * storage/indexeddb/exception-in-event-aborts-expected.txt: 30 * storage/indexeddb/factory-basics-expected.txt: 31 * storage/indexeddb/factory-cmp-expected.txt: 32 * storage/indexeddb/factory-deletedatabase-expected.txt: 33 * storage/indexeddb/get-keyrange-expected.txt: 34 * storage/indexeddb/index-basics-expected.txt: 35 * storage/indexeddb/index-basics-workers-expected.txt: 36 * storage/indexeddb/index-count-expected.txt: 37 * storage/indexeddb/index-cursor-expected.txt: 38 * storage/indexeddb/index-multientry-expected.txt: 39 * storage/indexeddb/index-population-expected.txt: 40 * storage/indexeddb/index-unique-expected.txt: 41 * storage/indexeddb/key-type-array-expected.txt: 42 * storage/indexeddb/keyrange-expected.txt: 43 * storage/indexeddb/legacy-constants-expected.txt: 44 * storage/indexeddb/mutating-cursor-expected.txt: 45 * storage/indexeddb/objectstore-autoincrement-expected.txt: 46 * storage/indexeddb/objectstore-basics-expected.txt: 47 * storage/indexeddb/objectstore-basics-workers-expected.txt: 48 * storage/indexeddb/objectstore-clear-expected.txt: 49 * storage/indexeddb/objectstore-count-expected.txt: 50 * storage/indexeddb/objectstore-cursor-expected.txt: 51 * storage/indexeddb/objectstore-removeobjectstore-expected.txt: 52 * storage/indexeddb/open-cursor-expected.txt: 53 * storage/indexeddb/opencursor-key-expected.txt: 54 * storage/indexeddb/prefetch-bugfix-108071-expected.txt: 55 * storage/indexeddb/queued-commands-expected.txt: 56 * storage/indexeddb/request-event-propagation-expected.txt: 57 * storage/indexeddb/resources/basics.js: 58 (test): 59 (openCallback): 60 * storage/indexeddb/resources/create-object-store-options.js: 61 (setVersionComplete): 62 * storage/indexeddb/resources/createObjectStore-null-name.js: 63 (createAndPopulateObjectStore): 64 * storage/indexeddb/resources/cursor-added-bug.js: 65 (setVersionSuccess): 66 * storage/indexeddb/resources/cursor-continue-validity.js: 67 (deleteExisting): 68 * storage/indexeddb/resources/cursor-continue.js: 69 (deleteExisting): 70 * storage/indexeddb/resources/cursor-delete.js: 71 (setVersionSuccess): 72 * storage/indexeddb/resources/cursor-inconsistency.js: 73 (setVersionSuccess): 74 (checkCursor): 75 * storage/indexeddb/resources/cursor-index-delete.js: 76 (setVersionSuccess): 77 * storage/indexeddb/resources/cursor-key-order.js: 78 (checkStore.curreq.onsuccess.getreq.onsuccess): 79 (checkStore.curreq.onsuccess): 80 (checkStore): 81 * storage/indexeddb/resources/cursor-primary-key-order.js: 82 (checkStore.cursorRequest.onsuccess): 83 (checkStore): 84 * storage/indexeddb/resources/cursor-skip-deleted.js: 85 (setVersionSuccess): 86 * storage/indexeddb/resources/cursor-update.js: 87 (setVersionSuccess): 88 (basicUpdateCursor.request.onsuccess): 89 (basicUpdateCursor): 90 (autoIncrementUpdateCursor.request.onsuccess): 91 (autoIncrementUpdateCursor): 92 (keyPathUpdateCursor.request.onsuccess): 93 (keyPathUpdateCursor): 94 (keyCursor): 95 * storage/indexeddb/resources/data-corruption.js: 96 (setVersionSuccess): 97 (doCheck): 98 * storage/indexeddb/resources/database-basics.js: 99 (setVersionSuccess): 100 (createAnotherObjectStore): 101 * storage/indexeddb/resources/database-quota.js: 102 (setVersionSuccess): 103 * storage/indexeddb/resources/duplicates.js: 104 (deleteExisting): 105 (cursor1Continue): 106 (cursor1Continue2): 107 (openObjectCursor): 108 (cursor2Continue): 109 (cursor2Continue2): 110 (last): 111 * storage/indexeddb/resources/error-causes-abort-by-default.js: 112 (deleteExisting): 113 * storage/indexeddb/resources/exception-in-event-aborts.js: 114 (deleteExisting): 115 * storage/indexeddb/resources/factory-basics.js: 116 (test): 117 * storage/indexeddb/resources/factory-cmp.js: 118 (test): 119 (testValidKeys): 120 (testIdenticalKeys): 121 * storage/indexeddb/resources/factory-deletedatabase.js: 122 (deleteExisting): 123 * storage/indexeddb/resources/get-keyrange.js: 124 (deleteExisting): 125 * storage/indexeddb/resources/index-basics.js: 126 (deleteExisting): 127 (cursor1Continue): 128 (cursor1Continue2): 129 (cursor1Continue3): 130 (openObjectCursor): 131 (cursor2Continue): 132 (cursor2Continue2): 133 (cursor2Continue3): 134 (last): 135 * storage/indexeddb/resources/index-count.js: 136 (prepareDatabase): 137 (verifyCount.request.onsuccess): 138 (verifyCount): 139 (verifyCountWithRange.nextTest.request.onsuccess): 140 (verifyCountWithRange.nextTest): 141 (verifyCountWithRange): 142 (verifyCountWithKey.nextTest.request.onsuccess): 143 (verifyCountWithKey.nextTest): 144 (verifyCountWithKey): 145 * storage/indexeddb/resources/index-cursor.js: 146 (deleteExisting): 147 * storage/indexeddb/resources/index-multientry.js: 148 (prepareDatabase): 149 (verifyIndexes.request.onsuccess): 150 (verifyIndexes): 151 * storage/indexeddb/resources/index-population.js: 152 (setVersion2Abort): 153 * storage/indexeddb/resources/index-unique.js: 154 (deleteExisting): 155 (cursorSuccess): 156 (keyCursorSuccess): 157 * storage/indexeddb/resources/key-type-array.js: 158 (test): 159 * storage/indexeddb/resources/keyrange.js: 160 (test): 161 * storage/indexeddb/resources/legacy-constants.js: 162 (populateStore): 163 (checkNext.request.onsuccess): 164 (checkNext): 165 (checkNextNoDuplicate.request.onsuccess): 166 (checkNextNoDuplicate): 167 (checkPrev.request.onsuccess): 168 (checkPrev): 169 (checkPrevNoDuplicate.request.onsuccess): 170 (checkPrevNoDuplicate): 171 * storage/indexeddb/resources/mutating-cursor.js: 172 (setVersionSuccess): 173 * storage/indexeddb/resources/objectstore-autoincrement.js: 174 (setVersionSuccess): 175 (testLongKeyPath.cursorRequest.onsuccess): 176 (testLongKeyPath): 177 * storage/indexeddb/resources/objectstore-basics.js: 178 (setVersionSuccess): 179 (createIndex): 180 (createAnotherIndex): 181 (addDateSuccess): 182 (addAgainFailure): 183 * storage/indexeddb/resources/objectstore-clear.js: 184 (deleteExisting): 185 * storage/indexeddb/resources/objectstore-count.js: 186 (prepareDatabase): 187 (verifyCount.request.onsuccess): 188 (verifyCount): 189 (verifyCountWithRange.nextTest.request.onsuccess): 190 (verifyCountWithRange.nextTest): 191 (verifyCountWithRange): 192 (verifyCountWithKey.nextTest.request.onsuccess): 193 (verifyCountWithKey.nextTest): 194 (verifyCountWithKey): 195 * storage/indexeddb/resources/objectstore-cursor.js: 196 (deleteExisting): 197 * storage/indexeddb/resources/objectstore-removeobjectstore.js: 198 (deleteExisting): 199 (deleteObjectStore): 200 * storage/indexeddb/resources/open-cursor.js: 201 (cursorWithKeySuccess): 202 (cursorSuccess): 203 (setVersionSuccess): 204 * storage/indexeddb/resources/opencursor-key.js: 205 (testObjectStore.request.onsuccess): 206 (testObjectStore): 207 (testIndex.request.onsuccess): 208 (testIndex): 209 (testIndexWithKey.request.onsuccess): 210 (testIndexWithKey): 211 * storage/indexeddb/resources/prefetch-bugfix-108071.js: 212 (setVersionSuccess): 213 * storage/indexeddb/resources/queued-commands.js: 214 * storage/indexeddb/resources/request-event-propagation.js: 215 (deleteExisting): 216 * storage/indexeddb/resources/setVersion-null.js: 217 (postSetVersion): 218 * storage/indexeddb/resources/shared.js: 219 (evalAndExpectExceptionClass): 220 * storage/indexeddb/resources/transaction-abort.js: 221 (deleteExisting): 222 * storage/indexeddb/resources/transaction-and-objectstore-calls.js: 223 (created): 224 (afterComplete): 225 * storage/indexeddb/resources/transaction-basics.js: 226 (addRemoveIDBObjects): 227 (addRemoveAddIDBObjects): 228 (addIDBObjects): 229 (addIDBObjectsAndCommit): 230 (removeIDBObjects): 231 (setVersionSuccess): 232 (testDOMStringList): 233 * storage/indexeddb/resources/transaction-event-propagation.js: 234 (deleteExisting): 235 * storage/indexeddb/resources/transaction-rollback.js: 236 (addSuccess): 237 (getSuccess): 238 * storage/indexeddb/resources/two-version-changes.js: 239 (test): 240 * storage/indexeddb/resources/values-odd-types.js: 241 (openACursor.request.onsuccess): 242 (openACursor): 243 * storage/indexeddb/setVersion-null-expected.txt: 244 * storage/indexeddb/transaction-abort-expected.txt: 245 * storage/indexeddb/transaction-and-objectstore-calls-expected.txt: 246 * storage/indexeddb/transaction-basics-expected.txt: 247 * storage/indexeddb/transaction-event-propagation-expected.txt: 248 * storage/indexeddb/transaction-rollback-expected.txt: 249 * storage/indexeddb/two-version-changes-expected.txt: 250 * storage/indexeddb/values-odd-types-expected.txt: 251 1 252 2012-05-19 Raphael Kubo da Costa <rakuco@webkit.org> 2 253 -
trunk/LayoutTests/storage/indexeddb/basics-expected.txt
r116337 r117702 24 24 PASS request.transaction is null 25 25 PASS 'readyState' in request is true 26 PASS request.readyState is 'pending'26 PASS request.readyState is "pending" 27 27 PASS 'onsuccess' in request is true 28 28 PASS request.onsuccess is null … … 40 40 PASS event.target.transaction is null 41 41 PASS 'readyState' in request is true 42 PASS event.target.readyState is 'done'42 PASS event.target.readyState is "done" 43 43 PASS 'onsuccess' in event.target is true 44 44 PASS 'onerror' in event.target is true -
trunk/LayoutTests/storage/indexeddb/basics-workers-expected.txt
r116337 r117702 25 25 PASS [Worker] request.transaction is null 26 26 PASS [Worker] 'readyState' in request is true 27 PASS [Worker] request.readyState is 'pending'27 PASS [Worker] request.readyState is "pending" 28 28 PASS [Worker] 'onsuccess' in request is true 29 29 PASS [Worker] request.onsuccess is null … … 41 41 PASS [Worker] event.target.transaction is null 42 42 PASS [Worker] 'readyState' in request is true 43 PASS [Worker] event.target.readyState is 'done'43 PASS [Worker] event.target.readyState is "done" 44 44 PASS [Worker] 'onsuccess' in event.target is true 45 45 PASS [Worker] 'onerror' in event.target is true -
trunk/LayoutTests/storage/indexeddb/create-object-store-options-expected.txt
r116337 r117702 14 14 db.createObjectStore('c', {autoIncrement: true}); 15 15 trans = db.transaction(['a', 'b'], 'readwrite') 16 PASS trans.mode is 'readwrite'16 PASS trans.mode is "readwrite" 17 17 trans.objectStore('a').put({'a': 0}) 18 18 Expecting TypeError exception from db.createObjectStore('d', 'bar'); -
trunk/LayoutTests/storage/indexeddb/createObjectStore-null-name-expected.txt
r114672 r117702 11 11 Deleted all object stores. 12 12 db.createObjectStore(null); 13 PASS objectStore.name is 'null'13 PASS objectStore.name is "null" 14 14 PASS successfullyParsed is true 15 15 -
trunk/LayoutTests/storage/indexeddb/cursor-added-bug-expected.txt
r116337 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 objectStore = db.createObjectStore('test') -
trunk/LayoutTests/storage/indexeddb/cursor-continue-expected.txt
r116337 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 db.createObjectStore('someObjectStore') -
trunk/LayoutTests/storage/indexeddb/cursor-continue-validity-expected.txt
r116337 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 db.createObjectStore('someObjectStore') -
trunk/LayoutTests/storage/indexeddb/cursor-delete-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('test') -
trunk/LayoutTests/storage/indexeddb/cursor-inconsistency-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('basicStore') … … 25 25 checkCursor() 26 26 storedCursor = event.target.result 27 PASS storedCursor === event.target.result is true27 PASS storedCursor is event.target.result 28 28 PASS storedCursor.key is "someKey1" 29 29 PASS event.target.result.key is "someKey1" … … 33 33 34 34 checkCursor() 35 PASS storedCursor === event.target.result is true35 PASS storedCursor is event.target.result 36 36 PASS storedCursor.key is "someKey2" 37 37 PASS event.target.result.key is "someKey2" … … 41 41 42 42 checkCursor() 43 PASS storedCursor === event.target.result is true43 PASS storedCursor is event.target.result 44 44 PASS storedCursor.key is "someKey3" 45 45 PASS event.target.result.key is "someKey3" … … 49 49 50 50 checkCursor() 51 PASS storedCursor === event.target.result is true51 PASS storedCursor is event.target.result 52 52 PASS storedCursor.key is "someKey4" 53 53 PASS event.target.result.key is "someKey4" -
trunk/LayoutTests/storage/indexeddb/cursor-index-delete-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('test') -
trunk/LayoutTests/storage/indexeddb/cursor-key-order-expected.txt
r116337 r117702 74 74 PASS compare(cursor.key, -Infinity) is true 75 75 getreq = store.get(cursor.key) 76 PASS getreq.result === count++ is true76 PASS getreq.result is count++ 77 77 cursor = curreq.result 78 78 PASS compare(cursor.key, -Number.MAX_VALUE) is true 79 79 getreq = store.get(cursor.key) 80 PASS getreq.result === count++ is true80 PASS getreq.result is count++ 81 81 cursor = curreq.result 82 82 PASS compare(cursor.key, -1) is true 83 83 getreq = store.get(cursor.key) 84 PASS getreq.result === count++ is true84 PASS getreq.result is count++ 85 85 cursor = curreq.result 86 86 PASS compare(cursor.key, -Number.MIN_VALUE) is true 87 87 getreq = store.get(cursor.key) 88 PASS getreq.result === count++ is true88 PASS getreq.result is count++ 89 89 cursor = curreq.result 90 90 PASS compare(cursor.key, 0) is true 91 91 getreq = store.get(cursor.key) 92 PASS getreq.result === count++ is true92 PASS getreq.result is count++ 93 93 cursor = curreq.result 94 94 PASS compare(cursor.key, Number.MIN_VALUE) is true 95 95 getreq = store.get(cursor.key) 96 PASS getreq.result === count++ is true96 PASS getreq.result is count++ 97 97 cursor = curreq.result 98 98 PASS compare(cursor.key, 1) is true 99 99 getreq = store.get(cursor.key) 100 PASS getreq.result === count++ is true100 PASS getreq.result is count++ 101 101 cursor = curreq.result 102 102 PASS compare(cursor.key, Number.MAX_VALUE) is true 103 103 getreq = store.get(cursor.key) 104 PASS getreq.result === count++ is true104 PASS getreq.result is count++ 105 105 cursor = curreq.result 106 106 PASS compare(cursor.key, Infinity) is true 107 107 getreq = store.get(cursor.key) 108 PASS getreq.result === count++ is true108 PASS getreq.result is count++ 109 109 cursor = curreq.result 110 110 PASS compare(cursor.key, new Date(0)) is true 111 111 getreq = store.get(cursor.key) 112 PASS getreq.result === count++ is true112 PASS getreq.result is count++ 113 113 cursor = curreq.result 114 114 PASS compare(cursor.key, new Date(1000)) is true 115 115 getreq = store.get(cursor.key) 116 PASS getreq.result === count++ is true116 PASS getreq.result is count++ 117 117 cursor = curreq.result 118 118 PASS compare(cursor.key, new Date(1317399931023)) is true 119 119 getreq = store.get(cursor.key) 120 PASS getreq.result === count++ is true120 PASS getreq.result is count++ 121 121 cursor = curreq.result 122 122 PASS compare(cursor.key, '') is true 123 123 getreq = store.get(cursor.key) 124 PASS getreq.result === count++ is true124 PASS getreq.result is count++ 125 125 cursor = curreq.result 126 126 PASS compare(cursor.key, '\0') is true 127 127 getreq = store.get(cursor.key) 128 PASS getreq.result === count++ is true128 PASS getreq.result is count++ 129 129 cursor = curreq.result 130 130 PASS compare(cursor.key, 'a') is true 131 131 getreq = store.get(cursor.key) 132 PASS getreq.result === count++ is true132 PASS getreq.result is count++ 133 133 cursor = curreq.result 134 134 PASS compare(cursor.key, 'aa') is true 135 135 getreq = store.get(cursor.key) 136 PASS getreq.result === count++ is true136 PASS getreq.result is count++ 137 137 cursor = curreq.result 138 138 PASS compare(cursor.key, 'b') is true 139 139 getreq = store.get(cursor.key) 140 PASS getreq.result === count++ is true140 PASS getreq.result is count++ 141 141 cursor = curreq.result 142 142 PASS compare(cursor.key, 'ba') is true 143 143 getreq = store.get(cursor.key) 144 PASS getreq.result === count++ is true144 PASS getreq.result is count++ 145 145 cursor = curreq.result 146 146 PASS compare(cursor.key, '¢') is true 147 147 getreq = store.get(cursor.key) 148 PASS getreq.result === count++ is true148 PASS getreq.result is count++ 149 149 cursor = curreq.result 150 150 PASS compare(cursor.key, '水') is true 151 151 getreq = store.get(cursor.key) 152 PASS getreq.result === count++ is true152 PASS getreq.result is count++ 153 153 cursor = curreq.result 154 154 PASS compare(cursor.key, '𝄞') is true 155 155 getreq = store.get(cursor.key) 156 PASS getreq.result === count++ is true156 PASS getreq.result is count++ 157 157 cursor = curreq.result 158 158 PASS compare(cursor.key, '�') is true 159 159 getreq = store.get(cursor.key) 160 PASS getreq.result === count++ is true160 PASS getreq.result is count++ 161 161 cursor = curreq.result 162 162 PASS compare(cursor.key, []) is true 163 163 getreq = store.get(cursor.key) 164 PASS getreq.result === count++ is true164 PASS getreq.result is count++ 165 165 cursor = curreq.result 166 166 PASS compare(cursor.key, [-Infinity]) is true 167 167 getreq = store.get(cursor.key) 168 PASS getreq.result === count++ is true168 PASS getreq.result is count++ 169 169 cursor = curreq.result 170 170 PASS compare(cursor.key, [-Number.MAX_VALUE]) is true 171 171 getreq = store.get(cursor.key) 172 PASS getreq.result === count++ is true172 PASS getreq.result is count++ 173 173 cursor = curreq.result 174 174 PASS compare(cursor.key, [-1]) is true 175 175 getreq = store.get(cursor.key) 176 PASS getreq.result === count++ is true176 PASS getreq.result is count++ 177 177 cursor = curreq.result 178 178 PASS compare(cursor.key, [-Number.MIN_VALUE]) is true 179 179 getreq = store.get(cursor.key) 180 PASS getreq.result === count++ is true180 PASS getreq.result is count++ 181 181 cursor = curreq.result 182 182 PASS compare(cursor.key, [0]) is true 183 183 getreq = store.get(cursor.key) 184 PASS getreq.result === count++ is true184 PASS getreq.result is count++ 185 185 cursor = curreq.result 186 186 PASS compare(cursor.key, [Number.MIN_VALUE]) is true 187 187 getreq = store.get(cursor.key) 188 PASS getreq.result === count++ is true188 PASS getreq.result is count++ 189 189 cursor = curreq.result 190 190 PASS compare(cursor.key, [1]) is true 191 191 getreq = store.get(cursor.key) 192 PASS getreq.result === count++ is true192 PASS getreq.result is count++ 193 193 cursor = curreq.result 194 194 PASS compare(cursor.key, [Number.MAX_VALUE]) is true 195 195 getreq = store.get(cursor.key) 196 PASS getreq.result === count++ is true196 PASS getreq.result is count++ 197 197 cursor = curreq.result 198 198 PASS compare(cursor.key, [Infinity]) is true 199 199 getreq = store.get(cursor.key) 200 PASS getreq.result === count++ is true200 PASS getreq.result is count++ 201 201 cursor = curreq.result 202 202 PASS compare(cursor.key, [new Date(0)]) is true 203 203 getreq = store.get(cursor.key) 204 PASS getreq.result === count++ is true204 PASS getreq.result is count++ 205 205 cursor = curreq.result 206 206 PASS compare(cursor.key, [new Date(1000)]) is true 207 207 getreq = store.get(cursor.key) 208 PASS getreq.result === count++ is true208 PASS getreq.result is count++ 209 209 cursor = curreq.result 210 210 PASS compare(cursor.key, [new Date(1317399931023)]) is true 211 211 getreq = store.get(cursor.key) 212 PASS getreq.result === count++ is true212 PASS getreq.result is count++ 213 213 cursor = curreq.result 214 214 PASS compare(cursor.key, ['']) is true 215 215 getreq = store.get(cursor.key) 216 PASS getreq.result === count++ is true216 PASS getreq.result is count++ 217 217 cursor = curreq.result 218 218 PASS compare(cursor.key, ['\0']) is true 219 219 getreq = store.get(cursor.key) 220 PASS getreq.result === count++ is true220 PASS getreq.result is count++ 221 221 cursor = curreq.result 222 222 PASS compare(cursor.key, ['a']) is true 223 223 getreq = store.get(cursor.key) 224 PASS getreq.result === count++ is true224 PASS getreq.result is count++ 225 225 cursor = curreq.result 226 226 PASS compare(cursor.key, ['aa']) is true 227 227 getreq = store.get(cursor.key) 228 PASS getreq.result === count++ is true228 PASS getreq.result is count++ 229 229 cursor = curreq.result 230 230 PASS compare(cursor.key, ['b']) is true 231 231 getreq = store.get(cursor.key) 232 PASS getreq.result === count++ is true232 PASS getreq.result is count++ 233 233 cursor = curreq.result 234 234 PASS compare(cursor.key, ['ba']) is true 235 235 getreq = store.get(cursor.key) 236 PASS getreq.result === count++ is true236 PASS getreq.result is count++ 237 237 cursor = curreq.result 238 238 PASS compare(cursor.key, ['¢']) is true 239 239 getreq = store.get(cursor.key) 240 PASS getreq.result === count++ is true240 PASS getreq.result is count++ 241 241 cursor = curreq.result 242 242 PASS compare(cursor.key, ['水']) is true 243 243 getreq = store.get(cursor.key) 244 PASS getreq.result === count++ is true244 PASS getreq.result is count++ 245 245 cursor = curreq.result 246 246 PASS compare(cursor.key, ['𝄞']) is true 247 247 getreq = store.get(cursor.key) 248 PASS getreq.result === count++ is true248 PASS getreq.result is count++ 249 249 cursor = curreq.result 250 250 PASS compare(cursor.key, ['�']) is true 251 251 getreq = store.get(cursor.key) 252 PASS getreq.result === count++ is true252 PASS getreq.result is count++ 253 253 cursor = curreq.result 254 254 PASS compare(cursor.key, [[]]) is true 255 255 getreq = store.get(cursor.key) 256 PASS getreq.result === count++ is true256 PASS getreq.result is count++ 257 257 cursor = curreq.result 258 258 PASS compare(cursor.key, [[], []]) is true 259 259 getreq = store.get(cursor.key) 260 PASS getreq.result === count++ is true260 PASS getreq.result is count++ 261 261 cursor = curreq.result 262 262 PASS compare(cursor.key, [[], [], []]) is true 263 263 getreq = store.get(cursor.key) 264 PASS getreq.result === count++ is true264 PASS getreq.result is count++ 265 265 cursor = curreq.result 266 266 PASS compare(cursor.key, [[[]]]) is true 267 267 getreq = store.get(cursor.key) 268 PASS getreq.result === count++ is true268 PASS getreq.result is count++ 269 269 cursor = curreq.result 270 270 PASS compare(cursor.key, [[[[]]]]) is true 271 271 getreq = store.get(cursor.key) 272 PASS getreq.result === count++ is true273 PASS count === keys.length is true272 PASS getreq.result is count++ 273 PASS count is keys.length 274 274 275 275 validate compare function -
trunk/LayoutTests/storage/indexeddb/cursor-primary-key-order-expected.txt
r116337 r117702 87 87 PASS cursor.key is 0 88 88 PASS cursor.primaryKey is 'c' 89 PASS count === keys.length is true89 PASS count is keys.length 90 90 PASS successfullyParsed is true 91 91 -
trunk/LayoutTests/storage/indexeddb/cursor-skip-deleted-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('store', {keyPath: 'id'}) -
trunk/LayoutTests/storage/indexeddb/cursor-update-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('basicStore') … … 159 159 PASS event.target.result.key is counter + 100 160 160 PASS event.target.result.primaryKey is counter 161 event.target.result.update({id: counter, number: counter + 200}) 161 Expecting exception from event.target.result.update({id: counter, number: counter + 200}) 162 PASS Exception was thrown. 162 163 PASS code is IDBDatabaseException.NOT_ALLOWED_ERR 163 164 keyCursor() 164 165 PASS event.target.result.key is counter + 100 165 166 PASS event.target.result.primaryKey is counter 166 event.target.result.update({id: counter, number: counter + 200}) 167 Expecting exception from event.target.result.update({id: counter, number: counter + 200}) 168 PASS Exception was thrown. 167 169 PASS code is IDBDatabaseException.NOT_ALLOWED_ERR 168 170 keyCursor() 169 171 PASS event.target.result.key is counter + 100 170 172 PASS event.target.result.primaryKey is counter 171 event.target.result.update({id: counter, number: counter + 200}) 173 Expecting exception from event.target.result.update({id: counter, number: counter + 200}) 174 PASS Exception was thrown. 172 175 PASS code is IDBDatabaseException.NOT_ALLOWED_ERR 173 176 keyCursor() 174 177 PASS event.target.result.key is counter + 100 175 178 PASS event.target.result.primaryKey is counter 176 event.target.result.update({id: counter, number: counter + 200}) 179 Expecting exception from event.target.result.update({id: counter, number: counter + 200}) 180 PASS Exception was thrown. 177 181 PASS code is IDBDatabaseException.NOT_ALLOWED_ERR 178 182 keyCursor() -
trunk/LayoutTests/storage/indexeddb/data-corruption-expected.txt
r116337 r117702 12 12 setVersionSuccess(): 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 db.createObjectStore('storeName') … … 21 21 transaction = db.transaction(['storeName'], 'readonly') 22 22 request = transaction.objectStore('storeName').get('key') 23 PASS event.target.result.x.toString() == testDate.toString() is true23 PASS event.target.result.x.toString() is testDate.toString() 24 24 PASS successfullyParsed is true 25 25 -
trunk/LayoutTests/storage/indexeddb/database-basics-expected.txt
r112490 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 Testing setVersion. … … 39 39 db.createObjectStore("test456") 40 40 setVersionTrans = event.target.result 41 PASS setVersionTrans !== null is true41 PASS setVersionTrans is non-null. 42 42 PASS db.version is "version b" 43 43 PASS db.objectStoreNames is ['test123'] -
trunk/LayoutTests/storage/indexeddb/duplicates-expected.txt
r112490 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 db.createObjectStore('storeName', null) … … 27 27 PASS event.target.result is undefined 28 28 indexObject.openKeyCursor() 29 PASS event.target.result === null is false29 PASS event.target.result is non-null. 30 30 PASS event.target.result.key is "value" 31 31 PASS event.target.result.primaryKey is "key" 32 32 event.target.result.continue() 33 PASS event.target.result === null is false33 PASS event.target.result is non-null. 34 34 PASS event.target.result.key is "value2" 35 35 PASS event.target.result.primaryKey is "key2" 36 36 event.target.result.continue() 37 PASS event.target.result === null is true37 PASS event.target.result is null 38 38 indexObject.openCursor() 39 PASS event.target.result === null is false39 PASS event.target.result is non-null. 40 40 PASS event.target.result.key is "value" 41 41 PASS event.target.result.value.x is "value" 42 42 PASS event.target.result.value.y is "zzz" 43 43 event.target.result.continue() 44 PASS event.target.result === null is false44 PASS event.target.result is non-null. 45 45 PASS event.target.result.key is "value2" 46 46 PASS event.target.result.value.x is "value2" 47 47 PASS event.target.result.value.y is "zzz2" 48 48 event.target.result.continue() 49 PASS event.target.result === null is true49 PASS event.target.result is null 50 50 indexedDB.open('duplicates-2') 51 51 db = event.target.result … … 53 53 setVersionSuccess(): 54 54 trans = event.target.result 55 PASS trans !== null is true55 PASS trans is non-null. 56 56 Deleted all object stores. 57 57 db.createObjectStore('storeName', null) … … 69 69 PASS event.target.result is undefined 70 70 indexObject.openKeyCursor() 71 PASS event.target.result === null is false71 PASS event.target.result is non-null. 72 72 PASS event.target.result.key is "value" 73 73 PASS event.target.result.primaryKey is "key" 74 74 event.target.result.continue() 75 PASS event.target.result === null is false75 PASS event.target.result is non-null. 76 76 PASS event.target.result.key is "value2" 77 77 PASS event.target.result.primaryKey is "key2" 78 78 event.target.result.continue() 79 PASS event.target.result === null is true79 PASS event.target.result is null 80 80 indexObject.openCursor() 81 PASS event.target.result === null is false81 PASS event.target.result is non-null. 82 82 PASS event.target.result.key is "value" 83 83 PASS event.target.result.value.x is "value" 84 84 PASS event.target.result.value.y is "zzz" 85 85 event.target.result.continue() 86 PASS event.target.result === null is false86 PASS event.target.result is non-null. 87 87 PASS event.target.result.key is "value2" 88 88 PASS event.target.result.value.x is "value2" 89 89 PASS event.target.result.value.y is "zzz2" 90 90 event.target.result.continue() 91 PASS event.target.result === null is true91 PASS event.target.result is null 92 92 PASS successfullyParsed is true 93 93 -
trunk/LayoutTests/storage/indexeddb/error-causes-abort-by-default-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 trans.oncomplete = addData 15 15 Deleted all object stores. -
trunk/LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt
r116337 r117702 13 13 setVersionSuccess(): 14 14 trans = event.target.result 15 PASS trans !== null is true15 PASS trans is non-null. 16 16 trans.oncomplete = startTest 17 17 Deleted all object stores. -
trunk/LayoutTests/storage/indexeddb/factory-basics-expected.txt
r114672 r117702 6 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; 7 7 8 PASS typeof indexedDB.open === 'function' is true9 PASS typeof indexedDB.cmp === 'function' is true10 PASS typeof indexedDB.getDatabaseNames === 'function' is true11 PASS typeof indexedDB.deleteDatabase === 'function' is true8 PASS typeof indexedDB.open is "function" 9 PASS typeof indexedDB.cmp is "function" 10 PASS typeof indexedDB.getDatabaseNames is "function" 11 PASS typeof indexedDB.deleteDatabase is "function" 12 12 indexedDB.getDatabaseNames() 13 13 databaseNames = event.target.result -
trunk/LayoutTests/storage/indexeddb/factory-cmp-expected.txt
r112490 r117702 6 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; 7 7 8 PASS typeof indexedDB.cmp === 'function' is true8 PASS typeof indexedDB.cmp is "function" 9 9 10 10 compare valid keys 11 PASS indexedDB.cmp(-Infinity,-Number.MAX_VALUE) === -1 is true12 PASS indexedDB.cmp(-Number.MAX_VALUE,-Infinity) === 1 is true13 PASS indexedDB.cmp(-Infinity,-Infinity) === 0 is true14 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) === 0 is true15 PASS indexedDB.cmp(-Number.MAX_VALUE,-1) === -1 is true16 PASS indexedDB.cmp(-1,-Number.MAX_VALUE) === 1 is true17 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) === 0 is true18 PASS indexedDB.cmp(-1,-1) === 0 is true19 PASS indexedDB.cmp(-1,-Number.MIN_VALUE) === -1 is true20 PASS indexedDB.cmp(-Number.MIN_VALUE,-1) === 1 is true21 PASS indexedDB.cmp(-1,-1) === 0 is true22 PASS indexedDB.cmp(-Number.MIN_VALUE,-Number.MIN_VALUE) === 0 is true23 PASS indexedDB.cmp(-Number.MIN_VALUE,0) === -1 is true24 PASS indexedDB.cmp(0,-Number.MIN_VALUE) === 1 is true25 PASS indexedDB.cmp(-Number.MIN_VALUE,-Number.MIN_VALUE) === 0 is true26 PASS indexedDB.cmp(0,0) === 0 is true27 PASS indexedDB.cmp(0,Number.MIN_VALUE) === -1 is true28 PASS indexedDB.cmp(Number.MIN_VALUE,0) === 1 is true29 PASS indexedDB.cmp(0,0) === 0 is true30 PASS indexedDB.cmp(Number.MIN_VALUE,Number.MIN_VALUE) === 0 is true31 PASS indexedDB.cmp(Number.MIN_VALUE,1) === -1 is true32 PASS indexedDB.cmp(1,Number.MIN_VALUE) === 1 is true33 PASS indexedDB.cmp(Number.MIN_VALUE,Number.MIN_VALUE) === 0 is true34 PASS indexedDB.cmp(1,1) === 0 is true35 PASS indexedDB.cmp(1,Number.MAX_VALUE) === -1 is true36 PASS indexedDB.cmp(Number.MAX_VALUE,1) === 1 is true37 PASS indexedDB.cmp(1,1) === 0 is true38 PASS indexedDB.cmp(Number.MAX_VALUE,Number.MAX_VALUE) === 0 is true39 PASS indexedDB.cmp(Number.MAX_VALUE,Infinity) === -1 is true40 PASS indexedDB.cmp(Infinity,Number.MAX_VALUE) === 1 is true41 PASS indexedDB.cmp(Number.MAX_VALUE,Number.MAX_VALUE) === 0 is true42 PASS indexedDB.cmp(Infinity,Infinity) === 0 is true43 PASS indexedDB.cmp(Infinity,new Date(0)) === -1 is true44 PASS indexedDB.cmp(new Date(0),Infinity) === 1 is true45 PASS indexedDB.cmp(Infinity,Infinity) === 0 is true46 PASS indexedDB.cmp(new Date(0),new Date(0)) === 0 is true47 PASS indexedDB.cmp(new Date(0),new Date(1000)) === -1 is true48 PASS indexedDB.cmp(new Date(1000),new Date(0)) === 1 is true49 PASS indexedDB.cmp(new Date(0),new Date(0)) === 0 is true50 PASS indexedDB.cmp(new Date(1000),new Date(1000)) === 0 is true51 PASS indexedDB.cmp(new Date(1000),new Date(1317399931023)) === -1 is true52 PASS indexedDB.cmp(new Date(1317399931023),new Date(1000)) === 1 is true53 PASS indexedDB.cmp(new Date(1000),new Date(1000)) === 0 is true54 PASS indexedDB.cmp(new Date(1317399931023),new Date(1317399931023)) === 0 is true55 PASS indexedDB.cmp(new Date(1317399931023),'') === -1 is true56 PASS indexedDB.cmp('',new Date(1317399931023)) === 1 is true57 PASS indexedDB.cmp(new Date(1317399931023),new Date(1317399931023)) === 0 is true58 PASS indexedDB.cmp('','') === 0 is true59 PASS indexedDB.cmp('','\0') === -1 is true60 PASS indexedDB.cmp('\0','') === 1 is true61 PASS indexedDB.cmp('','') === 0 is true62 PASS indexedDB.cmp('\0','\0') === 0 is true63 PASS indexedDB.cmp('\0','a') === -1 is true64 PASS indexedDB.cmp('a','\0') === 1 is true65 PASS indexedDB.cmp('\0','\0') === 0 is true66 PASS indexedDB.cmp('a','a') === 0 is true67 PASS indexedDB.cmp('a','aa') === -1 is true68 PASS indexedDB.cmp('aa','a') === 1 is true69 PASS indexedDB.cmp('a','a') === 0 is true70 PASS indexedDB.cmp('aa','aa') === 0 is true71 PASS indexedDB.cmp('aa','b') === -1 is true72 PASS indexedDB.cmp('b','aa') === 1 is true73 PASS indexedDB.cmp('aa','aa') === 0 is true74 PASS indexedDB.cmp('b','b') === 0 is true75 PASS indexedDB.cmp('b','ba') === -1 is true76 PASS indexedDB.cmp('ba','b') === 1 is true77 PASS indexedDB.cmp('b','b') === 0 is true78 PASS indexedDB.cmp('ba','ba') === 0 is true79 PASS indexedDB.cmp('ba','¢') === -1 is true80 PASS indexedDB.cmp('¢','ba') === 1 is true81 PASS indexedDB.cmp('ba','ba') === 0 is true82 PASS indexedDB.cmp('¢','¢') === 0 is true83 PASS indexedDB.cmp('¢','水') === -1 is true84 PASS indexedDB.cmp('水','¢') === 1 is true85 PASS indexedDB.cmp('¢','¢') === 0 is true86 PASS indexedDB.cmp('水','水') === 0 is true87 PASS indexedDB.cmp('水','𝄞') === -1 is true88 PASS indexedDB.cmp('𝄞','水') === 1 is true89 PASS indexedDB.cmp('水','水') === 0 is true90 PASS indexedDB.cmp('𝄞','𝄞') === 0 is true91 PASS indexedDB.cmp('𝄞','�') === -1 is true92 PASS indexedDB.cmp('�','𝄞') === 1 is true93 PASS indexedDB.cmp('𝄞','𝄞') === 0 is true94 PASS indexedDB.cmp('�','�') === 0 is true95 PASS indexedDB.cmp('�',[]) === -1 is true96 PASS indexedDB.cmp([],'�') === 1 is true97 PASS indexedDB.cmp('�','�') === 0 is true98 PASS indexedDB.cmp([],[]) === 0 is true99 PASS indexedDB.cmp([],[-Infinity]) === -1 is true100 PASS indexedDB.cmp([-Infinity],[]) === 1 is true101 PASS indexedDB.cmp([],[]) === 0 is true102 PASS indexedDB.cmp([-Infinity],[-Infinity]) === 0 is true103 PASS indexedDB.cmp([-Infinity],[-Number.MAX_VALUE]) === -1 is true104 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Infinity]) === 1 is true105 PASS indexedDB.cmp([-Infinity],[-Infinity]) === 0 is true106 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Number.MAX_VALUE]) === 0 is true107 PASS indexedDB.cmp([-Number.MAX_VALUE],[-1]) === -1 is true108 PASS indexedDB.cmp([-1],[-Number.MAX_VALUE]) === 1 is true109 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Number.MAX_VALUE]) === 0 is true110 PASS indexedDB.cmp([-1],[-1]) === 0 is true111 PASS indexedDB.cmp([-1],[-Number.MIN_VALUE]) === -1 is true112 PASS indexedDB.cmp([-Number.MIN_VALUE],[-1]) === 1 is true113 PASS indexedDB.cmp([-1],[-1]) === 0 is true114 PASS indexedDB.cmp([-Number.MIN_VALUE],[-Number.MIN_VALUE]) === 0 is true115 PASS indexedDB.cmp([-Number.MIN_VALUE],[0]) === -1 is true116 PASS indexedDB.cmp([0],[-Number.MIN_VALUE]) === 1 is true117 PASS indexedDB.cmp([-Number.MIN_VALUE],[-Number.MIN_VALUE]) === 0 is true118 PASS indexedDB.cmp([0],[0]) === 0 is true119 PASS indexedDB.cmp([0],[Number.MIN_VALUE]) === -1 is true120 PASS indexedDB.cmp([Number.MIN_VALUE],[0]) === 1 is true121 PASS indexedDB.cmp([0],[0]) === 0 is true122 PASS indexedDB.cmp([Number.MIN_VALUE],[Number.MIN_VALUE]) === 0 is true123 PASS indexedDB.cmp([Number.MIN_VALUE],[1]) === -1 is true124 PASS indexedDB.cmp([1],[Number.MIN_VALUE]) === 1 is true125 PASS indexedDB.cmp([Number.MIN_VALUE],[Number.MIN_VALUE]) === 0 is true126 PASS indexedDB.cmp([1],[1]) === 0 is true127 PASS indexedDB.cmp([1],[Number.MAX_VALUE]) === -1 is true128 PASS indexedDB.cmp([Number.MAX_VALUE],[1]) === 1 is true129 PASS indexedDB.cmp([1],[1]) === 0 is true130 PASS indexedDB.cmp([Number.MAX_VALUE],[Number.MAX_VALUE]) === 0 is true131 PASS indexedDB.cmp([Number.MAX_VALUE],[Infinity]) === -1 is true132 PASS indexedDB.cmp([Infinity],[Number.MAX_VALUE]) === 1 is true133 PASS indexedDB.cmp([Number.MAX_VALUE],[Number.MAX_VALUE]) === 0 is true134 PASS indexedDB.cmp([Infinity],[Infinity]) === 0 is true135 PASS indexedDB.cmp([Infinity],[new Date(0)]) === -1 is true136 PASS indexedDB.cmp([new Date(0)],[Infinity]) === 1 is true137 PASS indexedDB.cmp([Infinity],[Infinity]) === 0 is true138 PASS indexedDB.cmp([new Date(0)],[new Date(0)]) === 0 is true139 PASS indexedDB.cmp([new Date(0)],[new Date(1000)]) === -1 is true140 PASS indexedDB.cmp([new Date(1000)],[new Date(0)]) === 1 is true141 PASS indexedDB.cmp([new Date(0)],[new Date(0)]) === 0 is true142 PASS indexedDB.cmp([new Date(1000)],[new Date(1000)]) === 0 is true143 PASS indexedDB.cmp([new Date(1000)],[new Date(1317399931023)]) === -1 is true144 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1000)]) === 1 is true145 PASS indexedDB.cmp([new Date(1000)],[new Date(1000)]) === 0 is true146 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1317399931023)]) === 0 is true147 PASS indexedDB.cmp([new Date(1317399931023)],['']) === -1 is true148 PASS indexedDB.cmp([''],[new Date(1317399931023)]) === 1 is true149 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1317399931023)]) === 0 is true150 PASS indexedDB.cmp([''],['']) === 0 is true151 PASS indexedDB.cmp([''],['\0']) === -1 is true152 PASS indexedDB.cmp(['\0'],['']) === 1 is true153 PASS indexedDB.cmp([''],['']) === 0 is true154 PASS indexedDB.cmp(['\0'],['\0']) === 0 is true155 PASS indexedDB.cmp(['\0'],['a']) === -1 is true156 PASS indexedDB.cmp(['a'],['\0']) === 1 is true157 PASS indexedDB.cmp(['\0'],['\0']) === 0 is true158 PASS indexedDB.cmp(['a'],['a']) === 0 is true159 PASS indexedDB.cmp(['a'],['aa']) === -1 is true160 PASS indexedDB.cmp(['aa'],['a']) === 1 is true161 PASS indexedDB.cmp(['a'],['a']) === 0 is true162 PASS indexedDB.cmp(['aa'],['aa']) === 0 is true163 PASS indexedDB.cmp(['aa'],['b']) === -1 is true164 PASS indexedDB.cmp(['b'],['aa']) === 1 is true165 PASS indexedDB.cmp(['aa'],['aa']) === 0 is true166 PASS indexedDB.cmp(['b'],['b']) === 0 is true167 PASS indexedDB.cmp(['b'],['ba']) === -1 is true168 PASS indexedDB.cmp(['ba'],['b']) === 1 is true169 PASS indexedDB.cmp(['b'],['b']) === 0 is true170 PASS indexedDB.cmp(['ba'],['ba']) === 0 is true171 PASS indexedDB.cmp(['ba'],['¢']) === -1 is true172 PASS indexedDB.cmp(['¢'],['ba']) === 1 is true173 PASS indexedDB.cmp(['ba'],['ba']) === 0 is true174 PASS indexedDB.cmp(['¢'],['¢']) === 0 is true175 PASS indexedDB.cmp(['¢'],['水']) === -1 is true176 PASS indexedDB.cmp(['水'],['¢']) === 1 is true177 PASS indexedDB.cmp(['¢'],['¢']) === 0 is true178 PASS indexedDB.cmp(['水'],['水']) === 0 is true179 PASS indexedDB.cmp(['水'],['𝄞']) === -1 is true180 PASS indexedDB.cmp(['𝄞'],['水']) === 1 is true181 PASS indexedDB.cmp(['水'],['水']) === 0 is true182 PASS indexedDB.cmp(['𝄞'],['𝄞']) === 0 is true183 PASS indexedDB.cmp(['𝄞'],['�']) === -1 is true184 PASS indexedDB.cmp(['�'],['𝄞']) === 1 is true185 PASS indexedDB.cmp(['𝄞'],['𝄞']) === 0 is true186 PASS indexedDB.cmp(['�'],['�']) === 0 is true187 PASS indexedDB.cmp(['�'],[[]]) === -1 is true188 PASS indexedDB.cmp([[]],['�']) === 1 is true189 PASS indexedDB.cmp(['�'],['�']) === 0 is true190 PASS indexedDB.cmp([[]],[[]]) === 0 is true191 PASS indexedDB.cmp([[]],[[], []]) === -1 is true192 PASS indexedDB.cmp([[], []],[[]]) === 1 is true193 PASS indexedDB.cmp([[]],[[]]) === 0 is true194 PASS indexedDB.cmp([[], []],[[], []]) === 0 is true195 PASS indexedDB.cmp([[], []],[[], [], []]) === -1 is true196 PASS indexedDB.cmp([[], [], []],[[], []]) === 1 is true197 PASS indexedDB.cmp([[], []],[[], []]) === 0 is true198 PASS indexedDB.cmp([[], [], []],[[], [], []]) === 0 is true199 PASS indexedDB.cmp([[], [], []],[[[]]]) === -1 is true200 PASS indexedDB.cmp([[[]]],[[], [], []]) === 1 is true201 PASS indexedDB.cmp([[], [], []],[[], [], []]) === 0 is true202 PASS indexedDB.cmp([[[]]],[[[]]]) === 0 is true203 PASS indexedDB.cmp([[[]]],[[[[]]]]) === -1 is true204 PASS indexedDB.cmp([[[[]]]],[[[]]]) === 1 is true205 PASS indexedDB.cmp([[[]]],[[[]]]) === 0 is true206 PASS indexedDB.cmp([[[[]]]],[[[[]]]]) === 0 is true11 PASS indexedDB.cmp(-Infinity,-Number.MAX_VALUE) is -1 12 PASS indexedDB.cmp(-Number.MAX_VALUE,-Infinity) is 1 13 PASS indexedDB.cmp(-Infinity,-Infinity) is 0 14 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 15 PASS indexedDB.cmp(-Number.MAX_VALUE,-1) is -1 16 PASS indexedDB.cmp(-1,-Number.MAX_VALUE) is 1 17 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 18 PASS indexedDB.cmp(-1,-1) is 0 19 PASS indexedDB.cmp(-1,-Number.MIN_VALUE) is -1 20 PASS indexedDB.cmp(-Number.MIN_VALUE,-1) is 1 21 PASS indexedDB.cmp(-1,-1) is 0 22 PASS indexedDB.cmp(-Number.MIN_VALUE,-Number.MIN_VALUE) is 0 23 PASS indexedDB.cmp(-Number.MIN_VALUE,0) is -1 24 PASS indexedDB.cmp(0,-Number.MIN_VALUE) is 1 25 PASS indexedDB.cmp(-Number.MIN_VALUE,-Number.MIN_VALUE) is 0 26 PASS indexedDB.cmp(0,0) is 0 27 PASS indexedDB.cmp(0,Number.MIN_VALUE) is -1 28 PASS indexedDB.cmp(Number.MIN_VALUE,0) is 1 29 PASS indexedDB.cmp(0,0) is 0 30 PASS indexedDB.cmp(Number.MIN_VALUE,Number.MIN_VALUE) is 0 31 PASS indexedDB.cmp(Number.MIN_VALUE,1) is -1 32 PASS indexedDB.cmp(1,Number.MIN_VALUE) is 1 33 PASS indexedDB.cmp(Number.MIN_VALUE,Number.MIN_VALUE) is 0 34 PASS indexedDB.cmp(1,1) is 0 35 PASS indexedDB.cmp(1,Number.MAX_VALUE) is -1 36 PASS indexedDB.cmp(Number.MAX_VALUE,1) is 1 37 PASS indexedDB.cmp(1,1) is 0 38 PASS indexedDB.cmp(Number.MAX_VALUE,Number.MAX_VALUE) is 0 39 PASS indexedDB.cmp(Number.MAX_VALUE,Infinity) is -1 40 PASS indexedDB.cmp(Infinity,Number.MAX_VALUE) is 1 41 PASS indexedDB.cmp(Number.MAX_VALUE,Number.MAX_VALUE) is 0 42 PASS indexedDB.cmp(Infinity,Infinity) is 0 43 PASS indexedDB.cmp(Infinity,new Date(0)) is -1 44 PASS indexedDB.cmp(new Date(0),Infinity) is 1 45 PASS indexedDB.cmp(Infinity,Infinity) is 0 46 PASS indexedDB.cmp(new Date(0),new Date(0)) is 0 47 PASS indexedDB.cmp(new Date(0),new Date(1000)) is -1 48 PASS indexedDB.cmp(new Date(1000),new Date(0)) is 1 49 PASS indexedDB.cmp(new Date(0),new Date(0)) is 0 50 PASS indexedDB.cmp(new Date(1000),new Date(1000)) is 0 51 PASS indexedDB.cmp(new Date(1000),new Date(1317399931023)) is -1 52 PASS indexedDB.cmp(new Date(1317399931023),new Date(1000)) is 1 53 PASS indexedDB.cmp(new Date(1000),new Date(1000)) is 0 54 PASS indexedDB.cmp(new Date(1317399931023),new Date(1317399931023)) is 0 55 PASS indexedDB.cmp(new Date(1317399931023),'') is -1 56 PASS indexedDB.cmp('',new Date(1317399931023)) is 1 57 PASS indexedDB.cmp(new Date(1317399931023),new Date(1317399931023)) is 0 58 PASS indexedDB.cmp('','') is 0 59 PASS indexedDB.cmp('','\0') is -1 60 PASS indexedDB.cmp('\0','') is 1 61 PASS indexedDB.cmp('','') is 0 62 PASS indexedDB.cmp('\0','\0') is 0 63 PASS indexedDB.cmp('\0','a') is -1 64 PASS indexedDB.cmp('a','\0') is 1 65 PASS indexedDB.cmp('\0','\0') is 0 66 PASS indexedDB.cmp('a','a') is 0 67 PASS indexedDB.cmp('a','aa') is -1 68 PASS indexedDB.cmp('aa','a') is 1 69 PASS indexedDB.cmp('a','a') is 0 70 PASS indexedDB.cmp('aa','aa') is 0 71 PASS indexedDB.cmp('aa','b') is -1 72 PASS indexedDB.cmp('b','aa') is 1 73 PASS indexedDB.cmp('aa','aa') is 0 74 PASS indexedDB.cmp('b','b') is 0 75 PASS indexedDB.cmp('b','ba') is -1 76 PASS indexedDB.cmp('ba','b') is 1 77 PASS indexedDB.cmp('b','b') is 0 78 PASS indexedDB.cmp('ba','ba') is 0 79 PASS indexedDB.cmp('ba','¢') is -1 80 PASS indexedDB.cmp('¢','ba') is 1 81 PASS indexedDB.cmp('ba','ba') is 0 82 PASS indexedDB.cmp('¢','¢') is 0 83 PASS indexedDB.cmp('¢','水') is -1 84 PASS indexedDB.cmp('水','¢') is 1 85 PASS indexedDB.cmp('¢','¢') is 0 86 PASS indexedDB.cmp('水','水') is 0 87 PASS indexedDB.cmp('水','𝄞') is -1 88 PASS indexedDB.cmp('𝄞','水') is 1 89 PASS indexedDB.cmp('水','水') is 0 90 PASS indexedDB.cmp('𝄞','𝄞') is 0 91 PASS indexedDB.cmp('𝄞','�') is -1 92 PASS indexedDB.cmp('�','𝄞') is 1 93 PASS indexedDB.cmp('𝄞','𝄞') is 0 94 PASS indexedDB.cmp('�','�') is 0 95 PASS indexedDB.cmp('�',[]) is -1 96 PASS indexedDB.cmp([],'�') is 1 97 PASS indexedDB.cmp('�','�') is 0 98 PASS indexedDB.cmp([],[]) is 0 99 PASS indexedDB.cmp([],[-Infinity]) is -1 100 PASS indexedDB.cmp([-Infinity],[]) is 1 101 PASS indexedDB.cmp([],[]) is 0 102 PASS indexedDB.cmp([-Infinity],[-Infinity]) is 0 103 PASS indexedDB.cmp([-Infinity],[-Number.MAX_VALUE]) is -1 104 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Infinity]) is 1 105 PASS indexedDB.cmp([-Infinity],[-Infinity]) is 0 106 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Number.MAX_VALUE]) is 0 107 PASS indexedDB.cmp([-Number.MAX_VALUE],[-1]) is -1 108 PASS indexedDB.cmp([-1],[-Number.MAX_VALUE]) is 1 109 PASS indexedDB.cmp([-Number.MAX_VALUE],[-Number.MAX_VALUE]) is 0 110 PASS indexedDB.cmp([-1],[-1]) is 0 111 PASS indexedDB.cmp([-1],[-Number.MIN_VALUE]) is -1 112 PASS indexedDB.cmp([-Number.MIN_VALUE],[-1]) is 1 113 PASS indexedDB.cmp([-1],[-1]) is 0 114 PASS indexedDB.cmp([-Number.MIN_VALUE],[-Number.MIN_VALUE]) is 0 115 PASS indexedDB.cmp([-Number.MIN_VALUE],[0]) is -1 116 PASS indexedDB.cmp([0],[-Number.MIN_VALUE]) is 1 117 PASS indexedDB.cmp([-Number.MIN_VALUE],[-Number.MIN_VALUE]) is 0 118 PASS indexedDB.cmp([0],[0]) is 0 119 PASS indexedDB.cmp([0],[Number.MIN_VALUE]) is -1 120 PASS indexedDB.cmp([Number.MIN_VALUE],[0]) is 1 121 PASS indexedDB.cmp([0],[0]) is 0 122 PASS indexedDB.cmp([Number.MIN_VALUE],[Number.MIN_VALUE]) is 0 123 PASS indexedDB.cmp([Number.MIN_VALUE],[1]) is -1 124 PASS indexedDB.cmp([1],[Number.MIN_VALUE]) is 1 125 PASS indexedDB.cmp([Number.MIN_VALUE],[Number.MIN_VALUE]) is 0 126 PASS indexedDB.cmp([1],[1]) is 0 127 PASS indexedDB.cmp([1],[Number.MAX_VALUE]) is -1 128 PASS indexedDB.cmp([Number.MAX_VALUE],[1]) is 1 129 PASS indexedDB.cmp([1],[1]) is 0 130 PASS indexedDB.cmp([Number.MAX_VALUE],[Number.MAX_VALUE]) is 0 131 PASS indexedDB.cmp([Number.MAX_VALUE],[Infinity]) is -1 132 PASS indexedDB.cmp([Infinity],[Number.MAX_VALUE]) is 1 133 PASS indexedDB.cmp([Number.MAX_VALUE],[Number.MAX_VALUE]) is 0 134 PASS indexedDB.cmp([Infinity],[Infinity]) is 0 135 PASS indexedDB.cmp([Infinity],[new Date(0)]) is -1 136 PASS indexedDB.cmp([new Date(0)],[Infinity]) is 1 137 PASS indexedDB.cmp([Infinity],[Infinity]) is 0 138 PASS indexedDB.cmp([new Date(0)],[new Date(0)]) is 0 139 PASS indexedDB.cmp([new Date(0)],[new Date(1000)]) is -1 140 PASS indexedDB.cmp([new Date(1000)],[new Date(0)]) is 1 141 PASS indexedDB.cmp([new Date(0)],[new Date(0)]) is 0 142 PASS indexedDB.cmp([new Date(1000)],[new Date(1000)]) is 0 143 PASS indexedDB.cmp([new Date(1000)],[new Date(1317399931023)]) is -1 144 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1000)]) is 1 145 PASS indexedDB.cmp([new Date(1000)],[new Date(1000)]) is 0 146 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1317399931023)]) is 0 147 PASS indexedDB.cmp([new Date(1317399931023)],['']) is -1 148 PASS indexedDB.cmp([''],[new Date(1317399931023)]) is 1 149 PASS indexedDB.cmp([new Date(1317399931023)],[new Date(1317399931023)]) is 0 150 PASS indexedDB.cmp([''],['']) is 0 151 PASS indexedDB.cmp([''],['\0']) is -1 152 PASS indexedDB.cmp(['\0'],['']) is 1 153 PASS indexedDB.cmp([''],['']) is 0 154 PASS indexedDB.cmp(['\0'],['\0']) is 0 155 PASS indexedDB.cmp(['\0'],['a']) is -1 156 PASS indexedDB.cmp(['a'],['\0']) is 1 157 PASS indexedDB.cmp(['\0'],['\0']) is 0 158 PASS indexedDB.cmp(['a'],['a']) is 0 159 PASS indexedDB.cmp(['a'],['aa']) is -1 160 PASS indexedDB.cmp(['aa'],['a']) is 1 161 PASS indexedDB.cmp(['a'],['a']) is 0 162 PASS indexedDB.cmp(['aa'],['aa']) is 0 163 PASS indexedDB.cmp(['aa'],['b']) is -1 164 PASS indexedDB.cmp(['b'],['aa']) is 1 165 PASS indexedDB.cmp(['aa'],['aa']) is 0 166 PASS indexedDB.cmp(['b'],['b']) is 0 167 PASS indexedDB.cmp(['b'],['ba']) is -1 168 PASS indexedDB.cmp(['ba'],['b']) is 1 169 PASS indexedDB.cmp(['b'],['b']) is 0 170 PASS indexedDB.cmp(['ba'],['ba']) is 0 171 PASS indexedDB.cmp(['ba'],['¢']) is -1 172 PASS indexedDB.cmp(['¢'],['ba']) is 1 173 PASS indexedDB.cmp(['ba'],['ba']) is 0 174 PASS indexedDB.cmp(['¢'],['¢']) is 0 175 PASS indexedDB.cmp(['¢'],['水']) is -1 176 PASS indexedDB.cmp(['水'],['¢']) is 1 177 PASS indexedDB.cmp(['¢'],['¢']) is 0 178 PASS indexedDB.cmp(['水'],['水']) is 0 179 PASS indexedDB.cmp(['水'],['𝄞']) is -1 180 PASS indexedDB.cmp(['𝄞'],['水']) is 1 181 PASS indexedDB.cmp(['水'],['水']) is 0 182 PASS indexedDB.cmp(['𝄞'],['𝄞']) is 0 183 PASS indexedDB.cmp(['𝄞'],['�']) is -1 184 PASS indexedDB.cmp(['�'],['𝄞']) is 1 185 PASS indexedDB.cmp(['𝄞'],['𝄞']) is 0 186 PASS indexedDB.cmp(['�'],['�']) is 0 187 PASS indexedDB.cmp(['�'],[[]]) is -1 188 PASS indexedDB.cmp([[]],['�']) is 1 189 PASS indexedDB.cmp(['�'],['�']) is 0 190 PASS indexedDB.cmp([[]],[[]]) is 0 191 PASS indexedDB.cmp([[]],[[], []]) is -1 192 PASS indexedDB.cmp([[], []],[[]]) is 1 193 PASS indexedDB.cmp([[]],[[]]) is 0 194 PASS indexedDB.cmp([[], []],[[], []]) is 0 195 PASS indexedDB.cmp([[], []],[[], [], []]) is -1 196 PASS indexedDB.cmp([[], [], []],[[], []]) is 1 197 PASS indexedDB.cmp([[], []],[[], []]) is 0 198 PASS indexedDB.cmp([[], [], []],[[], [], []]) is 0 199 PASS indexedDB.cmp([[], [], []],[[[]]]) is -1 200 PASS indexedDB.cmp([[[]]],[[], [], []]) is 1 201 PASS indexedDB.cmp([[], [], []],[[], [], []]) is 0 202 PASS indexedDB.cmp([[[]]],[[[]]]) is 0 203 PASS indexedDB.cmp([[[]]],[[[[]]]]) is -1 204 PASS indexedDB.cmp([[[[]]]],[[[]]]) is 1 205 PASS indexedDB.cmp([[[]]],[[[]]]) is 0 206 PASS indexedDB.cmp([[[[]]]],[[[[]]]]) is 0 207 207 208 208 compare invalid keys … … 407 407 408 408 compare identical keys 409 PASS indexedDB.cmp(0, -0) === 0 is true409 PASS indexedDB.cmp(0, -0) is 0 410 410 PASS successfullyParsed is true 411 411 -
trunk/LayoutTests/storage/indexeddb/factory-deletedatabase-expected.txt
r116337 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 store = db.createObjectStore('storeName', null) 14 14 store.createIndex('indexName', '') -
trunk/LayoutTests/storage/indexeddb/get-keyrange-expected.txt
r114805 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 db.createObjectStore('someObjectStore') -
trunk/LayoutTests/storage/indexeddb/index-basics-expected.txt
r112490 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 db.createObjectStore('storeName', null) … … 67 67 indexObject.openKeyCursor() 68 68 PASS event.target.source is indexObject 69 PASS event.target.result === null is false69 PASS event.target.result is non-null. 70 70 PASS event.target.result.key is "value" 71 71 PASS event.target.result.primaryKey is "key" 72 72 event.target.result.continue() 73 PASS event.target.result === null is false73 PASS event.target.result is non-null. 74 74 PASS event.target.result.key is "value2" 75 75 PASS event.target.result.primaryKey is "key2" 76 76 event.target.result.continue() 77 PASS event.target.result === null is false77 PASS event.target.result is non-null. 78 78 PASS event.target.result.key is "value3" 79 79 PASS event.target.result.primaryKey is "key3" 80 80 event.target.result.continue() 81 PASS event.target.result === null is true81 PASS event.target.result is null 82 82 indexObject.openCursor() 83 83 PASS event.target.source is indexObject 84 PASS event.target.result === null is false84 PASS event.target.result is non-null. 85 85 PASS event.target.result.key is "value" 86 86 PASS event.target.result.value.x is "value" 87 87 PASS event.target.result.value.y is "zzz" 88 88 event.target.result.continue() 89 PASS event.target.result === null is false89 PASS event.target.result is non-null. 90 90 PASS event.target.result.key is "value2" 91 91 PASS event.target.result.value.x is "value2" 92 92 PASS event.target.result.value.y is "zzz2" 93 93 event.target.result.continue() 94 PASS event.target.result === null is false94 PASS event.target.result is non-null. 95 95 PASS event.target.result.key is "value3" 96 96 PASS event.target.result.value.x is "value3" 97 97 PASS event.target.result.value.y is "456" 98 98 event.target.result.continue() 99 PASS event.target.result === null is true99 PASS event.target.result is null 100 100 Passing an invalid key into indexObject.get({}). 101 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 101 Expecting exception from indexObject.get({}) 102 PASS Exception was thrown. 103 PASS code is IDBDatabaseException.DATA_ERR 102 104 Passing an invalid key into indexObject.getKey({}). 103 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 105 Expecting exception from indexObject.getKey({}) 106 PASS Exception was thrown. 107 PASS code is IDBDatabaseException.DATA_ERR 104 108 PASS successfullyParsed is true 105 109 -
trunk/LayoutTests/storage/indexeddb/index-basics-workers-expected.txt
r112490 r117702 12 12 [Worker] setVersionSuccess(): 13 13 [Worker] trans = event.target.result 14 PASS [Worker] trans !== null is true14 PASS [Worker] trans is non-null. 15 15 [Worker] Deleted all object stores. 16 16 [Worker] db.createObjectStore('storeName', null) … … 68 68 [Worker] indexObject.openKeyCursor() 69 69 PASS [Worker] event.target.source is indexObject 70 PASS [Worker] event.target.result === null is false70 PASS [Worker] event.target.result is non-null. 71 71 PASS [Worker] event.target.result.key is "value" 72 72 PASS [Worker] event.target.result.primaryKey is "key" 73 73 [Worker] event.target.result.continue() 74 PASS [Worker] event.target.result === null is false74 PASS [Worker] event.target.result is non-null. 75 75 PASS [Worker] event.target.result.key is "value2" 76 76 PASS [Worker] event.target.result.primaryKey is "key2" 77 77 [Worker] event.target.result.continue() 78 PASS [Worker] event.target.result === null is false78 PASS [Worker] event.target.result is non-null. 79 79 PASS [Worker] event.target.result.key is "value3" 80 80 PASS [Worker] event.target.result.primaryKey is "key3" 81 81 [Worker] event.target.result.continue() 82 PASS [Worker] event.target.result === null is true82 PASS [Worker] event.target.result is null 83 83 [Worker] indexObject.openCursor() 84 84 PASS [Worker] event.target.source is indexObject 85 PASS [Worker] event.target.result === null is false85 PASS [Worker] event.target.result is non-null. 86 86 PASS [Worker] event.target.result.key is "value" 87 87 PASS [Worker] event.target.result.value.x is "value" 88 88 PASS [Worker] event.target.result.value.y is "zzz" 89 89 [Worker] event.target.result.continue() 90 PASS [Worker] event.target.result === null is false90 PASS [Worker] event.target.result is non-null. 91 91 PASS [Worker] event.target.result.key is "value2" 92 92 PASS [Worker] event.target.result.value.x is "value2" 93 93 PASS [Worker] event.target.result.value.y is "zzz2" 94 94 [Worker] event.target.result.continue() 95 PASS [Worker] event.target.result === null is false95 PASS [Worker] event.target.result is non-null. 96 96 PASS [Worker] event.target.result.key is "value3" 97 97 PASS [Worker] event.target.result.value.x is "value3" 98 98 PASS [Worker] event.target.result.value.y is "456" 99 99 [Worker] event.target.result.continue() 100 PASS [Worker] event.target.result === null is true100 PASS [Worker] event.target.result is null 101 101 [Worker] Passing an invalid key into indexObject.get({}). 102 PASS [Worker] Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 102 [Worker] Expecting exception from indexObject.get({}) 103 PASS [Worker] Exception was thrown. 104 PASS [Worker] code is IDBDatabaseException.DATA_ERR 103 105 [Worker] Passing an invalid key into indexObject.getKey({}). 104 PASS [Worker] Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 106 [Worker] Expecting exception from indexObject.getKey({}) 107 PASS [Worker] Exception was thrown. 108 PASS [Worker] code is IDBDatabaseException.DATA_ERR 105 109 PASS successfullyParsed is true 106 110 -
trunk/LayoutTests/storage/indexeddb/index-count-expected.txt
r116337 r117702 12 12 preparing database 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 store = db.createObjectStore('storeName', null) … … 21 21 verifying count without range 22 22 trans = db.transaction('storeName', 'readonly') 23 PASS trans != null is true23 PASS trans is non-null. 24 24 store = trans.objectStore('storeName') 25 PASS store != null is true25 PASS store is non-null. 26 26 index = store.index('indexName') 27 PASS index != null is true27 PASS index is non-null. 28 28 request = index.count() 29 PASS typeof request.result == 'number' is true29 PASS typeof request.result is "number" 30 30 PASS request.result is 100 31 31 32 32 verifying count with range 33 33 trans = db.transaction('storeName', 'readonly') 34 PASS trans != null is true34 PASS trans is non-null. 35 35 store = trans.objectStore('storeName') 36 PASS store != null is true36 PASS store is non-null. 37 37 index = trans.objectStore('storeName').index('indexName') 38 PASS index != null is true38 PASS index is non-null. 39 39 40 40 test = {"lower":0,"lowerOpen":false,"upper":99,"upperOpen":false,"expected":100} 41 41 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 42 PASS typeof request.result == 'number' is true42 PASS typeof request.result is "number" 43 43 PASS request.result is 100 44 44 45 45 test = {"lower":0,"lowerOpen":true,"upper":99,"upperOpen":false,"expected":99} 46 46 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 47 PASS typeof request.result == 'number' is true47 PASS typeof request.result is "number" 48 48 PASS request.result is 99 49 49 50 50 test = {"lower":0,"lowerOpen":false,"upper":99,"upperOpen":true,"expected":99} 51 51 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 52 PASS typeof request.result == 'number' is true52 PASS typeof request.result is "number" 53 53 PASS request.result is 99 54 54 55 55 test = {"lower":0,"lowerOpen":true,"upper":99,"upperOpen":true,"expected":98} 56 56 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 57 PASS typeof request.result == 'number' is true57 PASS typeof request.result is "number" 58 58 PASS request.result is 98 59 59 60 60 test = {"lower":0,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":100} 61 61 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 62 PASS typeof request.result == 'number' is true62 PASS typeof request.result is "number" 63 63 PASS request.result is 100 64 64 65 65 test = {"lower":0,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":100} 66 66 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 67 PASS typeof request.result == 'number' is true67 PASS typeof request.result is "number" 68 68 PASS request.result is 100 69 69 70 70 test = {"lower":10,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":90} 71 71 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 72 PASS typeof request.result == 'number' is true72 PASS typeof request.result is "number" 73 73 PASS request.result is 90 74 74 75 75 test = {"lower":0,"lowerOpen":false,"upper":0,"upperOpen":false,"expected":1} 76 76 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 77 PASS typeof request.result == 'number' is true77 PASS typeof request.result is "number" 78 78 PASS request.result is 1 79 79 80 80 test = {"lower":500,"lowerOpen":false,"upper":500,"upperOpen":false,"expected":0} 81 81 request = index.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 82 PASS typeof request.result == 'number' is true82 PASS typeof request.result is "number" 83 83 PASS request.result is 0 84 84 85 85 verifying count with key 86 86 trans = db.transaction('storeName', 'readonly') 87 PASS trans != null is true87 PASS trans is non-null. 88 88 store = trans.objectStore('storeName') 89 PASS store != null is true89 PASS store is non-null. 90 90 index = trans.objectStore('storeName').index('indexName') 91 PASS index != null is true91 PASS index is non-null. 92 92 Expecting exception from index.count(NaN) 93 93 PASS Exception was thrown. … … 102 102 test = {"key":0,"expected":1} 103 103 request = index.count(test.key) 104 PASS typeof request.result == 'number' is true104 PASS typeof request.result is "number" 105 105 PASS request.result is 1 106 106 107 107 test = {"key":100,"expected":0} 108 108 request = index.count(test.key) 109 PASS typeof request.result == 'number' is true109 PASS typeof request.result is "number" 110 110 PASS request.result is 0 111 111 112 112 test = {"key":null,"expected":100} 113 113 request = index.count(test.key) 114 PASS typeof request.result == 'number' is true114 PASS typeof request.result is "number" 115 115 PASS request.result is 100 116 116 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/index-cursor-expected.txt
r112490 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 db.createObjectStore('someObjectStore') -
trunk/LayoutTests/storage/indexeddb/index-multientry-expected.txt
r116337 r117702 12 12 Creating empty stores and indexes 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 store = db.createObjectStore('store') … … 31 31 transaction.objectStore('store').index('index').openCursor() 32 32 cursor = event.target.result 33 PASS ex != null is true33 PASS ex is non-null. 34 34 PASS cursor.key is 1 35 35 PASS cursor.primaryKey is "foo" 36 36 PASS cursor.value.y is "a" 37 37 cursor = event.target.result 38 PASS ex != null is true38 PASS ex is non-null. 39 39 PASS cursor.key is 2 40 40 PASS cursor.primaryKey is "foo" 41 41 PASS cursor.value.y is "a" 42 42 cursor = event.target.result 43 PASS ex != null is true43 PASS ex is non-null. 44 44 PASS cursor.key is 3 45 45 PASS cursor.primaryKey is "foo" 46 46 PASS cursor.value.y is "a" 47 47 cursor = event.target.result 48 PASS ex != null is true48 PASS ex is non-null. 49 49 PASS cursor.key is 4 50 50 PASS cursor.primaryKey is "bar" 51 51 PASS cursor.value.y is "b" 52 52 cursor = event.target.result 53 PASS ex != null is true53 PASS ex is non-null. 54 54 PASS cursor.key is 5 55 55 PASS cursor.primaryKey is "bar" 56 56 PASS cursor.value.y is "b" 57 57 cursor = event.target.result 58 PASS ex != null is true58 PASS ex is non-null. 59 59 PASS cursor.key is 6 60 60 PASS cursor.primaryKey is "bar" 61 61 PASS cursor.value.y is "b" 62 62 cursor = event.target.result 63 PASS expected.length === 0 is true63 PASS expected.length is 0 64 64 65 65 Verifying unique constraint on multiEntry index … … 78 78 db.setVersion('2') 79 79 trans = event.target.result 80 PASS trans !== null is true80 PASS trans is non-null. 81 81 store = trans.objectStore('store') 82 82 store.createIndex('index-new', 'x', {multiEntry: true}) … … 86 86 transaction.objectStore('store').index('index-new').openCursor() 87 87 cursor = event.target.result 88 PASS ex != null is true88 PASS ex is non-null. 89 89 PASS cursor.key is 1 90 90 PASS cursor.primaryKey is "foo" 91 91 PASS cursor.value.y is "a" 92 92 cursor = event.target.result 93 PASS ex != null is true93 PASS ex is non-null. 94 94 PASS cursor.key is 2 95 95 PASS cursor.primaryKey is "foo" 96 96 PASS cursor.value.y is "a" 97 97 cursor = event.target.result 98 PASS ex != null is true98 PASS ex is non-null. 99 99 PASS cursor.key is 3 100 100 PASS cursor.primaryKey is "foo" 101 101 PASS cursor.value.y is "a" 102 102 cursor = event.target.result 103 PASS ex != null is true103 PASS ex is non-null. 104 104 PASS cursor.key is 4 105 105 PASS cursor.primaryKey is "bar" 106 106 PASS cursor.value.y is "b" 107 107 cursor = event.target.result 108 PASS ex != null is true108 PASS ex is non-null. 109 109 PASS cursor.key is 5 110 110 PASS cursor.primaryKey is "bar" 111 111 PASS cursor.value.y is "b" 112 112 cursor = event.target.result 113 PASS ex != null is true113 PASS ex is non-null. 114 114 PASS cursor.key is 6 115 115 PASS cursor.primaryKey is "bar" 116 116 PASS cursor.value.y is "b" 117 117 cursor = event.target.result 118 PASS expected.length === 0 is true118 PASS expected.length is 0 119 119 PASS successfullyParsed is true 120 120 -
trunk/LayoutTests/storage/indexeddb/index-population-expected.txt
r112490 r117702 42 42 setVersion2Abort(): 43 43 PASS db.objectStoreNames.length is 1 44 PASS db.objectStoreNames[0] is 'store1'44 PASS db.objectStoreNames[0] is "store1" 45 45 PASS successfullyParsed is true 46 46 -
trunk/LayoutTests/storage/indexeddb/index-unique-expected.txt
r116337 r117702 11 11 deleteExisting(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 db.createObjectStore('store') -
trunk/LayoutTests/storage/indexeddb/key-type-array-expected.txt
r116337 r117702 6 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; 7 7 8 IDBTransaction = self.IDBTransaction || self.IDBTransaction;9 PASS IDBTransaction == null is false10 IDBDatabaseException = self.IDBDatabaseException || self.IDBDatabaseException;11 PASS IDBDatabaseException == null is false12 8 indexedDB.open(name) 13 9 db = openreq.result -
trunk/LayoutTests/storage/indexeddb/keyrange-expected.txt
r112490 r117702 211 211 PASS keyRange.upperOpen is true 212 212 Passing an invalid key into only({}) 213 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 213 Expecting exception from IDBKeyRange.only({}) 214 PASS Exception was thrown. 215 PASS code is IDBDatabaseException.DATA_ERR 214 216 Passing an invalid key into upperBound({}) 215 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 217 Expecting exception from IDBKeyRange.upperBound({}) 218 PASS Exception was thrown. 219 PASS code is IDBDatabaseException.DATA_ERR 216 220 Passing an invalid key into lowerBound({}) 217 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 221 Expecting exception from IDBKeyRange.lowerBound({}) 222 PASS Exception was thrown. 223 PASS code is IDBDatabaseException.DATA_ERR 218 224 Passing an invalid key into bound(null, {}) 219 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 225 Expecting exception from IDBKeyRange.bound(null, {}) 226 PASS Exception was thrown. 227 PASS code is IDBDatabaseException.DATA_ERR 220 228 Passing an invalid key into bound({},null) 221 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 229 Expecting exception from IDBKeyRange.bound({}, null) 230 PASS Exception was thrown. 231 PASS code is IDBDatabaseException.DATA_ERR 222 232 Passing an invalid key into bound({}, {}) 223 PASS Caught exception: Error: DATA_ERR: DOM IDBDatabase Exception 5 233 Expecting exception from IDBKeyRange.bound({}, {}) 234 PASS Exception was thrown. 235 PASS code is IDBDatabaseException.DATA_ERR 224 236 Lower key greater than higher key, bound(4, 3) 225 237 Expecting exception from IDBKeyRange.bound(4, 3) -
trunk/LayoutTests/storage/indexeddb/legacy-constants-expected.txt
r116337 r117702 25 25 populating store... 26 26 trans = db.transaction('store', IDBTransaction.READ_WRITE) 27 PASS trans.mode is 'readwrite'27 PASS trans.mode is "readwrite" 28 28 store = trans.objectStore('store'); 29 29 store.put({value: 111}, 1) 30 30 store.put({value: 222}, 2) 31 31 trans = db.transaction('store', IDBTransaction.READ_ONLY) 32 PASS trans.mode is 'readonly'32 PASS trans.mode is "readonly" 33 33 request = store.openCursor(null, IDBCursor.NEXT) 34 PASS cursor.direction is 'next'34 PASS cursor.direction is "next" 35 35 cursor.continue(); 36 PASS cursor.direction is 'next'36 PASS cursor.direction is "next" 37 37 cursor.continue(); 38 38 trans = db.transaction('store', IDBTransaction.READ_ONLY) 39 PASS trans.mode is 'readonly'39 PASS trans.mode is "readonly" 40 40 request = store.openCursor(null, IDBCursor.NEXT_NO_DUPLICATE) 41 PASS cursor.direction is 'nextunique'41 PASS cursor.direction is "nextunique" 42 42 cursor.continue(); 43 PASS cursor.direction is 'nextunique'43 PASS cursor.direction is "nextunique" 44 44 cursor.continue(); 45 45 trans = db.transaction('store', IDBTransaction.READ_ONLY) 46 PASS trans.mode is 'readonly'46 PASS trans.mode is "readonly" 47 47 request = store.openCursor(null, IDBCursor.PREV) 48 PASS cursor.direction is 'prev'48 PASS cursor.direction is "prev" 49 49 cursor.continue(); 50 PASS cursor.direction is 'prev'50 PASS cursor.direction is "prev" 51 51 cursor.continue(); 52 52 trans = db.transaction('store', IDBTransaction.READ_ONLY) 53 PASS trans.mode is 'readonly'53 PASS trans.mode is "readonly" 54 54 request = store.openCursor(null, IDBCursor.NEXT) 55 PASS cursor.direction is 'next'55 PASS cursor.direction is "next" 56 56 cursor.continue(); 57 PASS cursor.direction is 'next'57 PASS cursor.direction is "next" 58 58 cursor.continue(); 59 59 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/mutating-cursor-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('store') -
trunk/LayoutTests/storage/indexeddb/objectstore-autoincrement-expected.txt
r116337 r117702 12 12 setVersionSuccess(): 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 createObjectStore(): … … 21 21 storeNames = db.objectStoreNames 22 22 PASS store.name is "StoreWithKeyPath" 23 PASS store.keyPath is 'id'23 PASS store.keyPath is "id" 24 24 PASS storeNames.contains('StoreWithKeyPath') is true 25 25 PASS storeNames.contains('StoreWithAutoIncrement') is true … … 77 77 count = 0 78 78 expected = cursor.value.a.b.c.id + 1 79 PASS cursor.value.foo is 'bar'79 PASS cursor.value.foo is "bar" 80 80 PASS cursor.value.a.b.c.id is expected 81 81 expected = cursor.value.a.b.c.id + 1 82 PASS cursor.value.foo is 'bar'82 PASS cursor.value.foo is "bar" 83 83 PASS cursor.value.a.b.c.id is expected 84 84 expected = cursor.value.a.b.c.id + 1 85 PASS cursor.value.foo is 'bar'85 PASS cursor.value.foo is "bar" 86 86 PASS cursor.value.a.b.c.id is expected 87 87 expected = cursor.value.a.b.c.id + 1 -
trunk/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
r117509 r117702 12 12 setVersionSuccess(): 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 createObjectStore(): … … 50 50 PASS db.createObjectStore('storeWithKeyGenerator', {autoIncrement: true}).autoIncrement is true 51 51 Ask for an index that doesn't exist: 52 index =store.index('asdf')53 PASS Exception thrown.52 Expecting exception from store.index('asdf') 53 PASS Exception was thrown. 54 54 PASS code is IDBDatabaseException.NOT_FOUND_ERR 55 55 createIndex(): 56 56 index = store.createIndex('indexName', 'x', {unique: true}) 57 PASS index !== null is true57 PASS index is non-null. 58 58 PASS store.indexNames.contains('indexName') is true 59 59 index = store.index('indexName') 60 PASS index !== null is true60 PASS index is non-null. 61 61 Ask for an index that doesn't exist: 62 index =store.index('asdf')63 PASS Exception thrown.62 Expecting exception from store.index('asdf') 63 PASS Exception was thrown. 64 64 PASS code is IDBDatabaseException.NOT_FOUND_ERR 65 65 db.setVersion("version fail") 66 66 PASS db.version is "version fail" 67 67 setVersionTrans = event.target.result 68 PASS setVersionTrans !== null is true68 PASS setVersionTrans is non-null. 69 69 store = setVersionTrans.objectStore('storeName') 70 70 index = store.createIndex('indexFail', 'x') … … 86 86 store.add({x: 'foo'}, testDate) 87 87 Try to insert a value not handled by structured clone: 88 store.add({x: 'bar', y: self}, 'bar')89 PASS Exception thrown90 PASS code is 2588 Expecting exception from store.add({x: 'bar', y: self}, 'bar') 89 PASS Exception was thrown. 90 PASS code is DOMException.DATA_CLONE_ERR 91 91 Try to insert data where key path yields a Date key: 92 92 store.add({x: testDateB, y: 'value'}, 'key') -
trunk/LayoutTests/storage/indexeddb/objectstore-basics-workers-expected.txt
r117509 r117702 13 13 [Worker] setVersionSuccess(): 14 14 [Worker] trans = event.target.result 15 PASS [Worker] trans !== null is true15 PASS [Worker] trans is non-null. 16 16 [Worker] Deleted all object stores. 17 17 [Worker] createObjectStore(): … … 51 51 PASS [Worker] db.createObjectStore('storeWithKeyGenerator', {autoIncrement: true}).autoIncrement is true 52 52 [Worker] Ask for an index that doesn't exist: 53 [Worker] index =store.index('asdf')54 PASS [Worker] Exception thrown.53 [Worker] Expecting exception from store.index('asdf') 54 PASS [Worker] Exception was thrown. 55 55 PASS [Worker] code is IDBDatabaseException.NOT_FOUND_ERR 56 56 [Worker] createIndex(): 57 57 [Worker] index = store.createIndex('indexName', 'x', {unique: true}) 58 PASS [Worker] index !== null is true58 PASS [Worker] index is non-null. 59 59 PASS [Worker] store.indexNames.contains('indexName') is true 60 60 [Worker] index = store.index('indexName') 61 PASS [Worker] index !== null is true61 PASS [Worker] index is non-null. 62 62 [Worker] Ask for an index that doesn't exist: 63 [Worker] index =store.index('asdf')64 PASS [Worker] Exception thrown.63 [Worker] Expecting exception from store.index('asdf') 64 PASS [Worker] Exception was thrown. 65 65 PASS [Worker] code is IDBDatabaseException.NOT_FOUND_ERR 66 66 [Worker] db.setVersion("version fail") 67 67 PASS [Worker] db.version is "version fail" 68 68 [Worker] setVersionTrans = event.target.result 69 PASS [Worker] setVersionTrans !== null is true69 PASS [Worker] setVersionTrans is non-null. 70 70 [Worker] store = setVersionTrans.objectStore('storeName') 71 71 [Worker] index = store.createIndex('indexFail', 'x') … … 87 87 [Worker] store.add({x: 'foo'}, testDate) 88 88 [Worker] Try to insert a value not handled by structured clone: 89 [Worker] store.add({x: 'bar', y: self}, 'bar')90 PASS [Worker] Exception thrown91 PASS [Worker] code is 2589 [Worker] Expecting exception from store.add({x: 'bar', y: self}, 'bar') 90 PASS [Worker] Exception was thrown. 91 PASS [Worker] code is DOMException.DATA_CLONE_ERR 92 92 [Worker] Try to insert data where key path yields a Date key: 93 93 [Worker] store.add({x: testDateB, y: 'value'}, 'key') -
trunk/LayoutTests/storage/indexeddb/objectstore-clear-expected.txt
r112490 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 store = db.createObjectStore('storeName', null) -
trunk/LayoutTests/storage/indexeddb/objectstore-count-expected.txt
r116337 r117702 12 12 preparing database 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 Deleted all object stores. 16 16 store = db.createObjectStore('storeName', null) … … 19 19 verifying count without range 20 20 trans = db.transaction('storeName', 'readonly') 21 PASS trans != null is true21 PASS trans is non-null. 22 22 store = trans.objectStore('storeName') 23 PASS store != null is true23 PASS store is non-null. 24 24 request = store.count() 25 PASS typeof request.result == 'number' is true25 PASS typeof request.result is "number" 26 26 PASS request.result is 100 27 27 28 28 verifying count with range 29 29 trans = db.transaction('storeName', 'readonly') 30 PASS trans != null is true30 PASS trans is non-null. 31 31 store = trans.objectStore('storeName') 32 PASS store != null is true32 PASS store is non-null. 33 33 34 34 test = {"lower":0,"lowerOpen":false,"upper":99,"upperOpen":false,"expected":100} 35 35 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 36 PASS typeof request.result == 'number' is true36 PASS typeof request.result is "number" 37 37 PASS request.result is 100 38 38 39 39 test = {"lower":0,"lowerOpen":true,"upper":99,"upperOpen":false,"expected":99} 40 40 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 41 PASS typeof request.result == 'number' is true41 PASS typeof request.result is "number" 42 42 PASS request.result is 99 43 43 44 44 test = {"lower":0,"lowerOpen":false,"upper":99,"upperOpen":true,"expected":99} 45 45 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 46 PASS typeof request.result == 'number' is true46 PASS typeof request.result is "number" 47 47 PASS request.result is 99 48 48 49 49 test = {"lower":0,"lowerOpen":true,"upper":99,"upperOpen":true,"expected":98} 50 50 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 51 PASS typeof request.result == 'number' is true51 PASS typeof request.result is "number" 52 52 PASS request.result is 98 53 53 54 54 test = {"lower":0,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":100} 55 55 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 56 PASS typeof request.result == 'number' is true56 PASS typeof request.result is "number" 57 57 PASS request.result is 100 58 58 59 59 test = {"lower":0,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":100} 60 60 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 61 PASS typeof request.result == 'number' is true61 PASS typeof request.result is "number" 62 62 PASS request.result is 100 63 63 64 64 test = {"lower":10,"lowerOpen":false,"upper":100,"upperOpen":false,"expected":90} 65 65 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 66 PASS typeof request.result == 'number' is true66 PASS typeof request.result is "number" 67 67 PASS request.result is 90 68 68 69 69 test = {"lower":0,"lowerOpen":false,"upper":0,"upperOpen":false,"expected":1} 70 70 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 71 PASS typeof request.result == 'number' is true71 PASS typeof request.result is "number" 72 72 PASS request.result is 1 73 73 74 74 test = {"lower":500,"lowerOpen":false,"upper":500,"upperOpen":false,"expected":0} 75 75 request = store.count(IDBKeyRange.bound(test.lower, test.upper, test.lowerOpen, test.upperOpen)) 76 PASS typeof request.result == 'number' is true76 PASS typeof request.result is "number" 77 77 PASS request.result is 0 78 78 79 79 verifying count with key 80 80 trans = db.transaction('storeName', 'readonly') 81 PASS trans != null is true81 PASS trans is non-null. 82 82 store = trans.objectStore('storeName') 83 PASS store != null is true83 PASS store is non-null. 84 84 Expecting exception from store.count(NaN) 85 85 PASS Exception was thrown. … … 94 94 test = {"key":0,"expected":1} 95 95 request = store.count(test.key) 96 PASS typeof request.result == 'number' is true96 PASS typeof request.result is "number" 97 97 PASS request.result is 1 98 98 99 99 test = {"key":100,"expected":0} 100 100 request = store.count(test.key) 101 PASS typeof request.result == 'number' is true101 PASS typeof request.result is "number" 102 102 PASS request.result is 0 103 103 104 104 test = {"key":null,"expected":100} 105 105 request = store.count(test.key) 106 PASS typeof request.result == 'number' is true106 PASS typeof request.result is "number" 107 107 PASS request.result is 100 108 108 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt
r112490 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 db.createObjectStore('someObjectStore') -
trunk/LayoutTests/storage/indexeddb/objectstore-removeobjectstore-expected.txt
r112490 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 Deleted all object stores. 14 14 store = db.createObjectStore('storeName', null) … … 22 22 db.setVersion('new version') 23 23 trans = event.target.result 24 PASS trans !== null is true24 PASS trans is non-null. 25 25 db.deleteObjectStore('storeName') 26 26 db.createObjectStore('storeName', null) -
trunk/LayoutTests/storage/indexeddb/open-cursor-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 objectStore = db.createObjectStore('test') … … 18 18 event.target.source.openCursor(keyRange) 19 19 Cursor opened successfully. 20 PASS cursor.direction is 'next'21 PASS cursor.key is 'myKey'22 PASS cursor.value is 'myValue'20 PASS cursor.direction is "next" 21 PASS cursor.key is "myKey" 22 PASS cursor.value is "myValue" 23 23 24 24 Passing an invalid key into .continue({}). … … 34 34 event.target.source.openCursor("myKey") 35 35 Cursor opened successfully. 36 PASS cursor.direction is 'next'37 PASS cursor.key is 'myKey'38 PASS cursor.value is 'myValue'36 PASS cursor.direction is "next" 37 PASS cursor.key is "myKey" 38 PASS cursor.value is "myValue" 39 39 40 40 Passing an invalid key into .continue({}). -
trunk/LayoutTests/storage/indexeddb/opencursor-key-expected.txt
r116337 r117702 34 34 objectStore = trans.objectStore(objectStoreName) 35 35 request = objectStore.openCursor('237-23-7739') 36 PASS cursor.key is '237-23-7739'36 PASS cursor.key is "237-23-7739" 37 37 PASS JSON.stringify(cursor.value) is JSON.stringify(objectStoreData[7].value) 38 38 PASS cursor.primaryKey is cursor.key … … 45 45 PASS cursor.key is 180 46 46 PASS JSON.stringify(cursor.value) is JSON.stringify(objectStoreData[2].value) 47 PASS cursor.primaryKey is '237-23-7734'47 PASS cursor.primaryKey is "237-23-7734" 48 48 cursor.continue() 49 49 PASS cursor.key is 180 50 50 PASS JSON.stringify(cursor.value) is JSON.stringify(objectStoreData[6].value) 51 PASS cursor.primaryKey is '237-23-7738'51 PASS cursor.primaryKey is "237-23-7738" 52 52 cursor.continue() 53 53 PASS cursor.key is 180 54 54 PASS JSON.stringify(cursor.value) is JSON.stringify(objectStoreData[10].value) 55 PASS cursor.primaryKey is '237-23-7742'55 PASS cursor.primaryKey is "237-23-7742" 56 56 cursor.continue() 57 57 PASS cursor is null … … 61 61 request = index.openKeyCursor(180) 62 62 PASS cursor.key is 180 63 PASS cursor.primaryKey is '237-23-7734'63 PASS cursor.primaryKey is "237-23-7734" 64 64 cursor.continue() 65 65 PASS cursor.key is 180 66 PASS cursor.primaryKey is '237-23-7738'66 PASS cursor.primaryKey is "237-23-7738" 67 67 cursor.continue() 68 68 PASS cursor.key is 180 69 PASS cursor.primaryKey is '237-23-7742'69 PASS cursor.primaryKey is "237-23-7742" 70 70 cursor.continue() 71 71 PASS cursor is null -
trunk/LayoutTests/storage/indexeddb/prefetch-bugfix-108071-expected.txt
r116337 r117702 12 12 setVersionSuccess(): 13 13 trans = event.target.result 14 PASS trans !== null is true14 PASS trans is non-null. 15 15 objectStore = db.createObjectStore('store', {keyPath: 'id'}) 16 16 -
trunk/LayoutTests/storage/indexeddb/queued-commands-expected.txt
r112490 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 Deleted all object stores. 15 15 db.createObjectStore('storeName') -
trunk/LayoutTests/storage/indexeddb/request-event-propagation-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 trans.oncomplete = startTest 15 15 Deleted all object stores. -
trunk/LayoutTests/storage/indexeddb/resources/basics.js
r116337 r117702 21 21 shouldBeNull("request.transaction"); 22 22 shouldBeTrue("'readyState' in request"); 23 shouldBe ("request.readyState", "'pending'");23 shouldBeEqualToString("request.readyState", "pending"); 24 24 shouldBeTrue("'onsuccess' in request"); 25 25 shouldBeNull("request.onsuccess"); … … 44 44 shouldBeNull("event.target.transaction"); 45 45 shouldBeTrue("'readyState' in request"); 46 shouldBe ("event.target.readyState", "'done'");46 shouldBeEqualToString("event.target.readyState", "done"); 47 47 shouldBeTrue("'onsuccess' in event.target"); 48 48 shouldBeTrue("'onerror' in event.target"); -
trunk/LayoutTests/storage/indexeddb/resources/create-object-store-options.js
r116337 r117702 39 39 { 40 40 trans = evalAndLog("trans = db.transaction(['a', 'b'], 'readwrite')"); 41 shouldBe ("trans.mode", "'readwrite'");41 shouldBeEqualToString("trans.mode", "readwrite"); 42 42 43 43 req = evalAndLog("trans.objectStore('a').put({'a': 0})"); -
trunk/LayoutTests/storage/indexeddb/resources/createObjectStore-null-name.js
r114672 r117702 30 30 31 31 objectStore = evalAndLog("db.createObjectStore(null);"); 32 shouldBe ("objectStore.name", "'null'");32 shouldBeEqualToString("objectStore.name", "null"); 33 33 finishJSTest(); 34 34 } -
trunk/LayoutTests/storage/indexeddb/resources/cursor-added-bug.js
r116337 r117702 28 28 { 29 29 trans = evalAndLog("trans = event.target.result"); 30 shouldBe True("trans !== null");30 shouldBeNonNull("trans"); 31 31 trans.onabort = unexpectedAbortCallback; 32 32 trans.oncomplete = openCursor; -
trunk/LayoutTests/storage/indexeddb/resources/cursor-continue-validity.js
r116337 r117702 37 37 { 38 38 self.trans = evalAndLog("trans = event.target.result"); 39 shouldBe True("trans !== null");39 shouldBeNonNull("trans"); 40 40 trans.onabort = unexpectedAbortCallback; 41 41 -
trunk/LayoutTests/storage/indexeddb/resources/cursor-continue.js
r116337 r117702 55 55 { 56 56 self.trans = evalAndLog("trans = event.target.result"); 57 shouldBe True("trans !== null");57 shouldBeNonNull("trans"); 58 58 trans.onabort = unexpectedAbortCallback; 59 59 -
trunk/LayoutTests/storage/indexeddb/resources/cursor-delete.js
r116337 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 trans.oncomplete = openCursor; -
trunk/LayoutTests/storage/indexeddb/resources/cursor-inconsistency.js
r116337 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 trans.oncomplete = openBasicCursor; … … 70 70 storedCursor = evalAndLog("storedCursor = event.target.result"); 71 71 72 shouldBe True("storedCursor ===event.target.result");72 shouldBe("storedCursor", "event.target.result"); 73 73 shouldBeEqualToString("storedCursor.key", "someKey" + counter); 74 74 shouldBeEqualToString("event.target.result.key", "someKey" + counter); -
trunk/LayoutTests/storage/indexeddb/resources/cursor-index-delete.js
r116337 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 trans.oncomplete = openCursor; -
trunk/LayoutTests/storage/indexeddb/resources/cursor-key-order.js
r116337 r117702 164 164 getreq.onerror = unexpectedErrorCallback; 165 165 getreq.onsuccess = function() { 166 shouldBe True("getreq.result ===count++");166 shouldBe("getreq.result", "count++"); 167 167 cursor.continue(); 168 168 }; 169 169 } else { 170 shouldBe True("count ===keys.length");170 shouldBe("count", "keys.length"); 171 171 finishUp(); 172 172 } -
trunk/LayoutTests/storage/indexeddb/resources/cursor-primary-key-order.js
r116337 r117702 90 90 cursor.continue(); 91 91 } else { 92 shouldBe True("count ===keys.length");92 shouldBe("count", "keys.length"); 93 93 finishJSTest(); 94 94 } -
trunk/LayoutTests/storage/indexeddb/resources/cursor-skip-deleted.js
r116337 r117702 34 34 debug("setVersionSuccess():"); 35 35 self.trans = evalAndLog("trans = event.target.result"); 36 shouldBe True("trans !== null");36 shouldBeNonNull("trans"); 37 37 trans.onabort = unexpectedAbortCallback; 38 38 trans.oncomplete = basicCursorTest; -
trunk/LayoutTests/storage/indexeddb/resources/cursor-update.js
r116337 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 trans.oncomplete = openBasicCursor; … … 41 41 evalAndLog("objectStore.add('myValue4', 'myKey4').onerror = unexpectedErrorCallback"); 42 42 43 varobjectStore = evalAndLog("objectStore = db.createObjectStore('autoIncrementStore', {autoIncrement: true})");43 objectStore = evalAndLog("objectStore = db.createObjectStore('autoIncrementStore', {autoIncrement: true})"); 44 44 evalAndLog("objectStore.add('foo1').onerror = unexpectedErrorCallback"); 45 45 evalAndLog("objectStore.add('foo2').onerror = unexpectedErrorCallback"); … … 47 47 evalAndLog("objectStore.add('foo4').onerror = unexpectedErrorCallback"); 48 48 49 varobjectStore = evalAndLog("objectStore = db.createObjectStore('keyPathStore', {keyPath: 'id'})");49 objectStore = evalAndLog("objectStore = db.createObjectStore('keyPathStore', {keyPath: 'id'})"); 50 50 evalAndLog("objectStore.createIndex('numberIndex', 'number')"); 51 51 evalAndLog("objectStore.add({number: 1, id: 1}).onerror = unexpectedErrorCallback"); … … 85 85 86 86 request = evalAndLog("event.target.result.update('myUpdatedValue' + counter++)"); 87 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); } 87 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); }; 88 88 request.onerror = unexpectedErrorCallback; 89 89 } … … 122 122 123 123 request = evalAndLog("event.target.result.update('myUpdatedFoo' + counter++)"); 124 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); } 124 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); }; 125 125 request.onerror = unexpectedErrorCallback; 126 126 } … … 161 161 162 162 request = evalAndLog("event.target.result.update({id: counter, number: 100 + counter++})"); 163 request.onsuccess = function() { evalAndLog("event.target.source.continue()") };163 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); }; 164 164 request.onerror = unexpectedErrorCallback; 165 165 } … … 197 197 shouldBe("event.target.result.primaryKey", "counter"); 198 198 199 try { 200 debug("event.target.result.update({id: counter, number: counter + 200})"); 201 event.target.result.update({id: counter, number: counter + 200}); 202 testFailed("Expected exception."); 203 } catch (e) { 204 code = e.code; 205 shouldBe("code", "IDBDatabaseException.NOT_ALLOWED_ERR"); 206 } 199 evalAndExpectException("event.target.result.update({id: counter, number: counter + 200})", 200 "IDBDatabaseException.NOT_ALLOWED_ERR"); 207 201 208 202 counter++; -
trunk/LayoutTests/storage/indexeddb/resources/data-corruption.js
r116337 r117702 28 28 debug("setVersionSuccess():"); 29 29 self.trans = evalAndLog("trans = event.target.result"); 30 shouldBe True("trans !== null");30 shouldBeNonNull("trans"); 31 31 trans.onabort = unexpectedAbortCallback; 32 32 trans.oncomplete = addData; … … 59 59 function doCheck() 60 60 { 61 shouldBe True("event.target.result.x.toString() ==testDate.toString()");61 shouldBe("event.target.result.x.toString()", "testDate.toString()"); 62 62 finishJSTest(); 63 63 } -
trunk/LayoutTests/storage/indexeddb/resources/database-basics.js
r112202 r117702 28 28 debug("setVersionSuccess():"); 29 29 self.trans = evalAndLog("trans = event.target.result"); 30 shouldBe True("trans !== null");30 shouldBeNonNull("trans"); 31 31 trans.onabort = unexpectedAbortCallback; 32 32 … … 90 90 objectStore = evalAndLog('db.createObjectStore("test456")'); 91 91 var setVersionTrans = evalAndLog("setVersionTrans = event.target.result"); 92 shouldBe True("setVersionTrans !== null");92 shouldBeNonNull("setVersionTrans"); 93 93 setVersionTrans.oncomplete = unexpectedCompleteCallback; 94 94 setVersionTrans.onabort = checkMetadata; -
trunk/LayoutTests/storage/indexeddb/resources/database-quota.js
r116337 r117702 27 27 debug("setVersionSuccess():"); 28 28 self.trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 trans.oncomplete = checkQuotaEnforcing; -
trunk/LayoutTests/storage/indexeddb/resources/duplicates.js
r112202 r117702 30 30 debug("setVersionSuccess():"); 31 31 self.trans = evalAndLog("trans = event.target.result"); 32 shouldBe True("trans !== null");32 shouldBeNonNull("trans"); 33 33 trans.onabort = unexpectedAbortCallback; 34 34 … … 100 100 function cursor1Continue() 101 101 { 102 shouldBe False("event.target.result === null");102 shouldBeNonNull("event.target.result"); 103 103 shouldBeEqualToString("event.target.result.key", "value"); 104 104 shouldBeEqualToString("event.target.result.primaryKey", "key"); … … 111 111 function cursor1Continue2() 112 112 { 113 shouldBe False("event.target.result === null");113 shouldBeNonNull("event.target.result"); 114 114 shouldBeEqualToString("event.target.result.key", "value2"); 115 115 shouldBeEqualToString("event.target.result.primaryKey", "key2"); … … 122 122 function openObjectCursor() 123 123 { 124 shouldBe True("event.target.result === null");124 shouldBeNull("event.target.result"); 125 125 126 126 self.request = evalAndLog("indexObject.openCursor()"); … … 131 131 function cursor2Continue() 132 132 { 133 shouldBe False("event.target.result === null");133 shouldBeNonNull("event.target.result"); 134 134 shouldBeEqualToString("event.target.result.key", "value"); 135 135 shouldBeEqualToString("event.target.result.value.x", "value"); … … 143 143 function cursor2Continue2() 144 144 { 145 shouldBe False("event.target.result === null");145 shouldBeNonNull("event.target.result"); 146 146 shouldBeEqualToString("event.target.result.key", "value2"); 147 shouldBeEqualToString("event.target.result.value.x", "value2"); 147 shouldBeEqualToString("event.target.result.value.x", "value2"); 148 148 shouldBeEqualToString("event.target.result.value.y", "zzz2"); 149 149 … … 155 155 function last() 156 156 { 157 shouldBe True("event.target.result === null");157 shouldBeNull("event.target.result"); 158 158 159 159 if (testCount == 1) -
trunk/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js
r116337 r117702 27 27 debug("setVersionSuccess():"); 28 28 self.trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 evalAndLog("trans.oncomplete = addData"); -
trunk/LayoutTests/storage/indexeddb/resources/exception-in-event-aborts.js
r116337 r117702 27 27 debug("setVersionSuccess():"); 28 28 self.trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 evalAndLog("trans.oncomplete = startTest"); -
trunk/LayoutTests/storage/indexeddb/resources/factory-basics.js
r114672 r117702 10 10 removeVendorPrefixes(); 11 11 12 shouldBe True("typeof indexedDB.open === 'function'");13 shouldBe True("typeof indexedDB.cmp === 'function'");14 shouldBe True("typeof indexedDB.getDatabaseNames === 'function'");12 shouldBeEqualToString("typeof indexedDB.open", "function"); 13 shouldBeEqualToString("typeof indexedDB.cmp", "function"); 14 shouldBeEqualToString("typeof indexedDB.getDatabaseNames", "function"); 15 15 16 shouldBe True("typeof indexedDB.deleteDatabase === 'function'");16 shouldBeEqualToString("typeof indexedDB.deleteDatabase", "function"); 17 17 18 18 name = 'storage/indexeddb/factory-basics'; -
trunk/LayoutTests/storage/indexeddb/resources/factory-cmp.js
r112202 r117702 10 10 removeVendorPrefixes(); 11 11 12 shouldBe True("typeof indexedDB.cmp === 'function'");12 shouldBeEqualToString("typeof indexedDB.cmp", "function"); 13 13 14 14 testValidKeys(); … … 91 91 key1 = keys[i]; 92 92 key2 = keys[i + 1]; 93 shouldBe True("indexedDB.cmp(" + key1 + "," + key2 + ") ===-1");94 shouldBe True("indexedDB.cmp(" + key2 + "," + key1 + ") ===1");95 shouldBe True("indexedDB.cmp(" + key1 + "," + key1 + ") ===0");96 shouldBe True("indexedDB.cmp(" + key2 + "," + key2 + ") ===0");93 shouldBe("indexedDB.cmp(" + key1 + "," + key2 + ")", "-1"); 94 shouldBe("indexedDB.cmp(" + key2 + "," + key1 + ")", "1"); 95 shouldBe("indexedDB.cmp(" + key1 + "," + key1 + ")", "0"); 96 shouldBe("indexedDB.cmp(" + key2 + "," + key2 + ")", "0"); 97 97 } 98 98 } … … 136 136 debug("compare identical keys"); 137 137 138 shouldBe True("indexedDB.cmp(0, -0) ===0");138 shouldBe("indexedDB.cmp(0, -0)", "0"); 139 139 } 140 140 -
trunk/LayoutTests/storage/indexeddb/resources/factory-deletedatabase.js
r116337 r117702 26 26 { 27 27 self.trans = evalAndLog("trans = event.target.result"); 28 shouldBe True("trans !== null");28 shouldBeNonNull("trans"); 29 29 30 30 store = evalAndLog("store = db.createObjectStore('storeName', null)"); -
trunk/LayoutTests/storage/indexeddb/resources/get-keyrange.js
r114805 r117702 31 31 { 32 32 self.trans = evalAndLog("trans = event.target.result"); 33 shouldBe True("trans !== null");33 shouldBeNonNull("trans"); 34 34 trans.onabort = unexpectedAbortCallback; 35 35 -
trunk/LayoutTests/storage/indexeddb/resources/index-basics.js
r110750 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 … … 175 175 event = evt; 176 176 shouldBe("event.target.source", "indexObject"); 177 shouldBe False("event.target.result === null");177 shouldBeNonNull("event.target.result"); 178 178 shouldBeEqualToString("event.target.result.key", "value"); 179 179 shouldBeEqualToString("event.target.result.primaryKey", "key"); … … 187 187 { 188 188 event = evt; 189 shouldBe False("event.target.result === null");189 shouldBeNonNull("event.target.result"); 190 190 shouldBeEqualToString("event.target.result.key", "value2"); 191 191 shouldBeEqualToString("event.target.result.primaryKey", "key2"); … … 199 199 { 200 200 event = evt; 201 shouldBe False("event.target.result === null");201 shouldBeNonNull("event.target.result"); 202 202 shouldBeEqualToString("event.target.result.key", "value3"); 203 203 shouldBeEqualToString("event.target.result.primaryKey", "key3"); … … 211 211 { 212 212 event = evt; 213 shouldBe True("event.target.result === null");213 shouldBeNull("event.target.result"); 214 214 215 215 self.request = evalAndLog("indexObject.openCursor()"); … … 222 222 event = evt; 223 223 shouldBe("event.target.source", "indexObject"); 224 shouldBe False("event.target.result === null");224 shouldBeNonNull("event.target.result"); 225 225 shouldBeEqualToString("event.target.result.key", "value"); 226 226 shouldBeEqualToString("event.target.result.value.x", "value"); … … 235 235 { 236 236 event = evt; 237 shouldBe False("event.target.result === null");237 shouldBeNonNull("event.target.result"); 238 238 shouldBeEqualToString("event.target.result.key", "value2"); 239 239 shouldBeEqualToString("event.target.result.value.x", "value2"); … … 248 248 { 249 249 event = evt; 250 shouldBe False("event.target.result === null");250 shouldBeNonNull("event.target.result"); 251 251 shouldBeEqualToString("event.target.result.key", "value3"); 252 252 shouldBeEqualToString("event.target.result.value.x", "value3"); … … 261 261 { 262 262 event = evt; 263 shouldBeTrue("event.target.result === null"); 264 265 try { 266 debug("Passing an invalid key into indexObject.get({})."); 267 indexObject.get({}); 268 testFailed("No exception thrown"); 269 } catch (e) { 270 testPassed("Caught exception: " + e.toString()); 271 } 272 273 try { 274 debug("Passing an invalid key into indexObject.getKey({})."); 275 indexObject.getKey({}); 276 testFailed("No exception thrown"); 277 } catch (e) { 278 testPassed("Caught exception: " + e.toString()); 279 } 263 shouldBeNull("event.target.result"); 264 265 debug("Passing an invalid key into indexObject.get({})."); 266 evalAndExpectException("indexObject.get({})", "IDBDatabaseException.DATA_ERR"); 267 268 debug("Passing an invalid key into indexObject.getKey({})."); 269 evalAndExpectException("indexObject.getKey({})", "IDBDatabaseException.DATA_ERR"); 270 280 271 finishJSTest(); 281 272 } -
trunk/LayoutTests/storage/indexeddb/resources/index-count.js
r116337 r117702 24 24 debug("preparing database"); 25 25 self.trans = evalAndLog("trans = event.target.result"); 26 shouldBe True("trans !== null");26 shouldBeNonNull("trans"); 27 27 28 28 deleteAllObjectStores(db); … … 46 46 debug("verifying count without range"); 47 47 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 48 shouldBe True("trans != null");48 shouldBeNonNull("trans"); 49 49 trans.onabort = unexpectedAbortCallback; 50 50 trans.oncomplete = verifyCountWithRange; 51 51 52 52 store = evalAndLog("store = trans.objectStore('storeName')"); 53 shouldBe True("store != null");53 shouldBeNonNull("store"); 54 54 index = evalAndLog("index = store.index('indexName')"); 55 shouldBe True("index != null");55 shouldBeNonNull("index"); 56 56 57 57 request = evalAndLog("request = index.count()"); 58 58 request.onerror = unexpectedErrorCallback; 59 59 request.onsuccess = function() { 60 shouldBe True("typeof request.result == 'number'");60 shouldBeEqualToString("typeof request.result", "number"); 61 61 shouldBe("request.result", "100"); 62 62 // let the transaction complete … … 69 69 debug("verifying count with range"); 70 70 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 71 shouldBe True("trans != null");71 shouldBeNonNull("trans"); 72 72 trans.onabort = unexpectedAbortCallback; 73 73 trans.oncomplete = verifyCountWithKey; 74 74 75 75 store = evalAndLog("store = trans.objectStore('storeName')"); 76 shouldBe True("store != null");76 shouldBeNonNull("store"); 77 77 store = evalAndLog("index = trans.objectStore('storeName').index('indexName')"); 78 shouldBe True("index != null");78 shouldBeNonNull("index"); 79 79 80 80 var tests = [ … … 96 96 request.onerror = unexpectedErrorCallback; 97 97 request.onsuccess = function() { 98 shouldBe True("typeof request.result == 'number'");98 shouldBeEqualToString("typeof request.result", "number"); 99 99 shouldBe("request.result", String(test.expected)); 100 100 … … 114 114 debug("verifying count with key"); 115 115 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 116 shouldBe True("trans != null");116 shouldBeNonNull("trans"); 117 117 trans.onabort = unexpectedAbortCallback; 118 118 trans.oncomplete = finishJSTest; 119 119 120 120 store = evalAndLog("store = trans.objectStore('storeName')"); 121 shouldBe True("store != null");121 shouldBeNonNull("store"); 122 122 store = evalAndLog("index = trans.objectStore('storeName').index('indexName')"); 123 shouldBe True("index != null");123 shouldBeNonNull("index"); 124 124 125 125 evalAndExpectException("index.count(NaN)", "IDBDatabaseException.DATA_ERR"); … … 139 139 request.onerror = unexpectedErrorCallback; 140 140 request.onsuccess = function() { 141 shouldBe True("typeof request.result == 'number'");141 shouldBeEqualToString("typeof request.result", "number"); 142 142 shouldBe("request.result", String(test.expected)); 143 143 -
trunk/LayoutTests/storage/indexeddb/resources/index-cursor.js
r116337 r117702 38 38 { 39 39 self.trans = evalAndLog("trans = event.target.result"); 40 shouldBe True("trans !== null");40 shouldBeNonNull("trans"); 41 41 trans.onabort = unexpectedAbortCallback; 42 42 -
trunk/LayoutTests/storage/indexeddb/resources/index-multientry.js
r116337 r117702 26 26 debug("Creating empty stores and indexes"); 27 27 var trans = evalAndLog("trans = event.target.result"); 28 shouldBe True("trans !== null");28 shouldBeNonNull("trans"); 29 29 trans.onabort = unexpectedAbortCallback; 30 30 trans.oncomplete = addData; … … 80 80 if (cursor) { 81 81 ex = expected.shift(); 82 shouldBe True("ex != null");82 shouldBeNonNull("ex"); 83 83 shouldBe("cursor.key", String(ex.key)); 84 84 shouldBeEqualToString("cursor.primaryKey", ex.primaryKey); … … 86 86 cursor.continue(); 87 87 } else { 88 shouldBe True("expected.length ===0");88 shouldBe("expected.length", "0"); 89 89 } 90 90 }; … … 129 129 130 130 var trans = evalAndLog("trans = event.target.result"); 131 shouldBe True("trans !== null");131 shouldBeNonNull("trans"); 132 132 trans.onabort = unexpectedAbortCallback; 133 133 trans.oncomplete = function() { verifyIndexes('index-new', finishJSTest); }; -
trunk/LayoutTests/storage/indexeddb/resources/index-population.js
r112202 r117702 85 85 debug("setVersion2Abort():"); 86 86 shouldBe("db.objectStoreNames.length", "1"); 87 shouldBe ("db.objectStoreNames[0]", "'store1'");87 shouldBeEqualToString("db.objectStoreNames[0]", "store1"); 88 88 finishJSTest(); 89 89 } -
trunk/LayoutTests/storage/indexeddb/resources/index-unique.js
r116337 r117702 27 27 debug("deleteExisting():"); 28 28 var trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 trans.oncomplete = setVersionCompleted; … … 87 87 { 88 88 debug("cursorSuccess():"); 89 shouldBe ("event.target.result", "null");89 shouldBeNull("event.target.result"); 90 90 91 91 // A key cursor starting at 1 should not find anything. … … 98 98 { 99 99 debug("keyCursorSuccess():"); 100 shouldBe ("event.target.result", "null");100 shouldBeNull("event.target.result"); 101 101 102 102 // Now we should be able to add a value with x: 1. -
trunk/LayoutTests/storage/indexeddb/resources/key-type-array.js
r116337 r117702 9 9 { 10 10 removeVendorPrefixes(); 11 12 evalAndLog("IDBTransaction = self.IDBTransaction || self.IDBTransaction;");13 shouldBeFalse("IDBTransaction == null");14 15 evalAndLog("IDBDatabaseException = self.IDBDatabaseException || self.IDBDatabaseException;");16 shouldBeFalse("IDBDatabaseException == null");17 11 18 12 name = self.location.pathname; -
trunk/LayoutTests/storage/indexeddb/resources/keyrange.js
r112202 r117702 119 119 checkBoundKeyRange("'aaf'", "'abf'", true, true); 120 120 121 try { 122 debug("Passing an invalid key into only({})"); 123 IDBKeyRange.only({}); 124 testFailed("No exception thrown"); 125 } catch (e) { 126 testPassed("Caught exception: " + e.toString()); 127 } 121 debug("Passing an invalid key into only({})"); 122 evalAndExpectException("IDBKeyRange.only({})", "IDBDatabaseException.DATA_ERR"); 128 123 129 try { 130 debug("Passing an invalid key into upperBound({})"); 131 IDBKeyRange.upperBound({}); 132 testFailed("No exception thrown"); 133 } catch (e) { 134 testPassed("Caught exception: " + e.toString()); 135 } 124 debug("Passing an invalid key into upperBound({})"); 125 evalAndExpectException("IDBKeyRange.upperBound({})", "IDBDatabaseException.DATA_ERR"); 136 126 137 try { 138 debug("Passing an invalid key into lowerBound({})"); 139 IDBKeyRange.lowerBound({}); 140 testFailed("No exception thrown"); 141 } catch (e) { 142 testPassed("Caught exception: " + e.toString()); 143 } 127 debug("Passing an invalid key into lowerBound({})"); 128 evalAndExpectException("IDBKeyRange.lowerBound({})", "IDBDatabaseException.DATA_ERR"); 144 129 145 try { 146 debug("Passing an invalid key into bound(null, {})"); 147 IDBKeyRange.bound(null, {}); 148 testFailed("No exception thrown"); 149 } catch (e) { 150 testPassed("Caught exception: " + e.toString()); 151 } 130 debug("Passing an invalid key into bound(null, {})"); 131 evalAndExpectException("IDBKeyRange.bound(null, {})", "IDBDatabaseException.DATA_ERR"); 152 132 153 try { 154 debug("Passing an invalid key into bound({},null)"); 155 IDBKeyRange.bound({}, null); 156 testFailed("No exception thrown"); 157 } catch (e) { 158 testPassed("Caught exception: " + e.toString()); 159 } 133 debug("Passing an invalid key into bound({},null)"); 134 evalAndExpectException("IDBKeyRange.bound({}, null)", "IDBDatabaseException.DATA_ERR"); 160 135 161 try { 162 debug("Passing an invalid key into bound({}, {})"); 163 IDBKeyRange.bound({}, {}); 164 testFailed("No exception thrown"); 165 } catch (e) { 166 testPassed("Caught exception: " + e.toString()); 167 } 136 debug("Passing an invalid key into bound({}, {})"); 137 evalAndExpectException("IDBKeyRange.bound({}, {})", "IDBDatabaseException.DATA_ERR"); 168 138 169 139 debug("Lower key greater than higher key, bound(4, 3)"); -
trunk/LayoutTests/storage/indexeddb/resources/legacy-constants.js
r116337 r117702 36 36 debug("populating store..."); 37 37 evalAndLog("trans = db.transaction('store', IDBTransaction.READ_WRITE)"); 38 shouldBe ("trans.mode", "'readwrite'");38 shouldBeEqualToString("trans.mode", "readwrite"); 39 39 evalAndLog("store = trans.objectStore('store');"); 40 40 trans.onerror = unexpectedErrorCallback; … … 49 49 { 50 50 evalAndLog("trans = db.transaction('store', IDBTransaction.READ_ONLY)"); 51 shouldBe ("trans.mode", "'readonly'");51 shouldBeEqualToString("trans.mode", "readonly"); 52 52 store = trans.objectStore('store'); 53 53 evalAndLog("request = store.openCursor(null, IDBCursor.NEXT)"); … … 57 57 if (!cursor) 58 58 return; 59 shouldBe ("cursor.direction", "'next'");59 shouldBeEqualToString("cursor.direction", "next"); 60 60 evalAndLog("cursor.continue();"); 61 61 }; … … 66 66 { 67 67 evalAndLog("trans = db.transaction('store', IDBTransaction.READ_ONLY)"); 68 shouldBe ("trans.mode", "'readonly'");68 shouldBeEqualToString("trans.mode", "readonly"); 69 69 store = trans.objectStore('store'); 70 70 evalAndLog("request = store.openCursor(null, IDBCursor.NEXT_NO_DUPLICATE)"); … … 74 74 if (!cursor) 75 75 return; 76 shouldBe ("cursor.direction", "'nextunique'");76 shouldBeEqualToString("cursor.direction", "nextunique"); 77 77 evalAndLog("cursor.continue();"); 78 78 }; … … 83 83 { 84 84 evalAndLog("trans = db.transaction('store', IDBTransaction.READ_ONLY)"); 85 shouldBe ("trans.mode", "'readonly'");85 shouldBeEqualToString("trans.mode", "readonly"); 86 86 store = trans.objectStore('store'); 87 87 evalAndLog("request = store.openCursor(null, IDBCursor.PREV)"); … … 91 91 if (!cursor) 92 92 return; 93 shouldBe ("cursor.direction", "'prev'");93 shouldBeEqualToString("cursor.direction", "prev"); 94 94 evalAndLog("cursor.continue();"); 95 95 }; … … 100 100 { 101 101 evalAndLog("trans = db.transaction('store', IDBTransaction.READ_ONLY)"); 102 shouldBe ("trans.mode", "'readonly'");102 shouldBeEqualToString("trans.mode", "readonly"); 103 103 store = trans.objectStore('store'); 104 104 evalAndLog("request = store.openCursor(null, IDBCursor.NEXT)"); … … 108 108 if (!cursor) 109 109 return; 110 shouldBe ("cursor.direction", "'next'");110 shouldBeEqualToString("cursor.direction", "next"); 111 111 evalAndLog("cursor.continue();"); 112 112 }; -
trunk/LayoutTests/storage/indexeddb/resources/mutating-cursor.js
r116337 r117702 29 29 debug("setVersionSuccess():"); 30 30 self.trans = evalAndLog("trans = event.target.result"); 31 shouldBe True("trans !== null");31 shouldBeNonNull("trans"); 32 32 trans.onabort = unexpectedAbortCallback; 33 33 trans.oncomplete = openForwardCursor; -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-autoincrement.js
r116337 r117702 28 28 debug("setVersionSuccess():"); 29 29 self.trans = evalAndLog("trans = event.target.result"); 30 shouldBe True("trans !== null");30 shouldBeNonNull("trans"); 31 31 trans.onabort = unexpectedAbortCallback; 32 32 trans.oncomplete = setVersionCompleted; … … 42 42 43 43 shouldBeEqualToString("store.name", "StoreWithKeyPath"); 44 shouldBe ("store.keyPath", "'id'");44 shouldBeEqualToString("store.keyPath", "id"); 45 45 shouldBe("storeNames.contains('StoreWithKeyPath')", "true"); 46 46 shouldBe("storeNames.contains('StoreWithAutoIncrement')", "true"); … … 182 182 evalAndLog("expected = cursor.value.a.b.c.id + 1"); 183 183 } else { 184 shouldBe ("cursor.value.foo", "'bar'");184 shouldBeEqualToString("cursor.value.foo", "bar"); 185 185 shouldBe("cursor.value.a.b.c.id", "expected"); 186 186 evalAndLog("expected = cursor.value.a.b.c.id + 1"); -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-basics.js
r117509 r117702 30 30 debug("setVersionSuccess():"); 31 31 self.trans = evalAndLog("trans = event.target.result"); 32 shouldBe True("trans !== null");32 shouldBeNonNull("trans"); 33 33 trans.onabort = unexpectedAbortCallback; 34 34 … … 77 77 78 78 debug("Ask for an index that doesn't exist:"); 79 try { 80 debug("index = store.index('asdf')"); 81 index = store.index('asdf'); 82 testFailed("Asking for a store that doesn't exist should have thrown."); 83 } catch (err) { 84 testPassed("Exception thrown."); 85 code = err.code; 86 shouldBe("code", "IDBDatabaseException.NOT_FOUND_ERR"); 87 } 88 79 evalAndExpectException("store.index('asdf')", "IDBDatabaseException.NOT_FOUND_ERR"); 89 80 createIndex(); 90 81 } … … 94 85 debug("createIndex():"); 95 86 var index = evalAndLog("index = store.createIndex('indexName', 'x', {unique: true})"); // true == unique requirement. 96 shouldBe True("index !== null");87 shouldBeNonNull("index"); 97 88 shouldBeTrue("store.indexNames.contains('indexName')"); 98 89 index = evalAndLog("index = store.index('indexName')"); 99 shouldBe True("index !== null");90 shouldBeNonNull("index"); 100 91 101 92 debug("Ask for an index that doesn't exist:"); 102 try { 103 debug("index = store.index('asdf')"); 104 index = store.index('asdf'); 105 testFailed("Asking for a store that doesn't exist should have thrown."); 106 } catch (err) { 107 testPassed("Exception thrown."); 108 code = err.code 109 shouldBe("code", "IDBDatabaseException.NOT_FOUND_ERR"); 110 } 93 evalAndExpectException("store.index('asdf')", "IDBDatabaseException.NOT_FOUND_ERR"); 111 94 trans.oncomplete = testSetVersionAbort; 112 95 } … … 125 108 126 109 var setVersionTrans = evalAndLog("setVersionTrans = event.target.result"); 127 shouldBe True("setVersionTrans !== null");110 shouldBeNonNull("setVersionTrans"); 128 111 setVersionTrans.oncomplete = unexpectedCompleteCallback; 129 112 setVersionTrans.onabort = checkMetadata; … … 170 153 event = evt; 171 154 debug("Try to insert a value not handled by structured clone:"); 172 try { 173 debug("store.add({x: 'bar', y: self}, 'bar')"); 174 store.add({x: 'bar', y: self}, 'bar'); 175 testFailed("Passing a DOM node as value should have thrown."); 176 } catch (err) { 177 testPassed("Exception thrown"); 178 code = err.code; 179 // FIXME: When we move to DOM4-style exceptions this should look for the 180 // name "DataCloneError". 181 shouldBe("code", "25"); 182 } 155 evalAndExpectException("store.add({x: 'bar', y: self}, 'bar')", "DOMException.DATA_CLONE_ERR"); 183 156 184 157 debug("Try to insert data where key path yields a Date key:"); … … 216 189 transaction = evalAndLog("db.transaction(['storeName'], 'readwrite')"); 217 190 transaction.onabort = unexpectedErrorCallback; 218 varstore = evalAndLog("store = transaction.objectStore('storeName')");191 store = evalAndLog("store = transaction.objectStore('storeName')"); 219 192 220 193 evalAndExpectException("store.add({x: null}, 'validkey')", "IDBDatabaseException.DATA_ERR"); … … 222 195 transaction = evalAndLog("db.transaction(['storeName'], 'readwrite')"); 223 196 transaction.onabort = unexpectedErrorCallback; 224 varstore = evalAndLog("store = transaction.objectStore('storeName')");197 store = evalAndLog("store = transaction.objectStore('storeName')"); 225 198 226 199 request = evalAndLog("store.get('key')"); -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-clear.js
r112202 r117702 26 26 { 27 27 self.trans = evalAndLog("trans = event.target.result"); 28 shouldBe True("trans !== null");28 shouldBeNonNull("trans"); 29 29 30 30 deleteAllObjectStores(db); -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-count.js
r116337 r117702 24 24 debug("preparing database"); 25 25 self.trans = evalAndLog("trans = event.target.result"); 26 shouldBe True("trans !== null");26 shouldBeNonNull("trans"); 27 27 28 28 deleteAllObjectStores(db); … … 43 43 debug("verifying count without range"); 44 44 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 45 shouldBe True("trans != null");45 shouldBeNonNull("trans"); 46 46 trans.onabort = unexpectedAbortCallback; 47 47 trans.oncomplete = verifyCountWithRange; 48 48 49 49 store = evalAndLog("store = trans.objectStore('storeName')"); 50 shouldBe True("store != null");50 shouldBeNonNull("store"); 51 51 52 52 request = evalAndLog("request = store.count()"); 53 53 request.onerror = unexpectedErrorCallback; 54 54 request.onsuccess = function() { 55 shouldBe True("typeof request.result == 'number'");55 shouldBeEqualToString("typeof request.result", "number"); 56 56 shouldBe("request.result", "100"); 57 57 // let the transaction complete … … 64 64 debug("verifying count with range"); 65 65 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 66 shouldBe True("trans != null");66 shouldBeNonNull("trans"); 67 67 trans.onabort = unexpectedAbortCallback; 68 68 trans.oncomplete = verifyCountWithKey; 69 69 70 70 store = evalAndLog("store = trans.objectStore('storeName')"); 71 shouldBe True("store != null");71 shouldBeNonNull("store"); 72 72 73 73 var tests = [ … … 89 89 request.onerror = unexpectedErrorCallback; 90 90 request.onsuccess = function() { 91 shouldBe True("typeof request.result == 'number'");91 shouldBeEqualToString("typeof request.result", "number"); 92 92 shouldBe("request.result", String(test.expected)); 93 93 … … 107 107 debug("verifying count with key"); 108 108 trans = evalAndLog("trans = db.transaction('storeName', 'readonly')"); 109 shouldBe True("trans != null");109 shouldBeNonNull("trans"); 110 110 trans.onabort = unexpectedAbortCallback; 111 111 trans.oncomplete = finishJSTest; 112 112 113 113 store = evalAndLog("store = trans.objectStore('storeName')"); 114 shouldBe True("store != null");114 shouldBeNonNull("store"); 115 115 116 116 evalAndExpectException("store.count(NaN)", "IDBDatabaseException.DATA_ERR"); … … 130 130 request.onerror = unexpectedErrorCallback; 131 131 request.onsuccess = function() { 132 shouldBe True("typeof request.result == 'number'");132 shouldBeEqualToString("typeof request.result", "number"); 133 133 shouldBe("request.result", String(test.expected)); 134 134 if (tests.length) { -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-cursor.js
r116337 r117702 37 37 { 38 38 self.trans = evalAndLog("trans = event.target.result"); 39 shouldBe True("trans !== null");39 shouldBeNonNull("trans"); 40 40 trans.onabort = unexpectedAbortCallback; 41 41 -
trunk/LayoutTests/storage/indexeddb/resources/objectstore-removeobjectstore.js
r112202 r117702 26 26 { 27 27 self.trans = evalAndLog("trans = event.target.result"); 28 shouldBe True("trans !== null");28 shouldBeNonNull("trans"); 29 29 30 30 deleteAllObjectStores(db); … … 63 63 { 64 64 self.trans = evalAndLog("trans = event.target.result"); 65 shouldBe True("trans !== null");65 shouldBeNonNull("trans"); 66 66 trans.onabort = unexpectedAbortCallback; 67 67 -
trunk/LayoutTests/storage/indexeddb/resources/open-cursor.js
r116337 r117702 28 28 // FIXME: check that we can iterate the cursor. 29 29 cursor = event.target.result; 30 shouldBe ("cursor.direction", "'next'");31 shouldBe ("cursor.key", "'myKey'");32 shouldBe ("cursor.value", "'myValue'");30 shouldBeEqualToString("cursor.direction", "next"); 31 shouldBeEqualToString("cursor.key", "myKey"); 32 shouldBeEqualToString("cursor.value", "myValue"); 33 33 debug(""); 34 34 debug("Passing an invalid key into .continue({})."); … … 68 68 // FIXME: check that we can iterate the cursor. 69 69 cursor = event.target.result; 70 shouldBe ("cursor.direction", "'next'");71 shouldBe ("cursor.key", "'myKey'");72 shouldBe ("cursor.value", "'myValue'");70 shouldBeEqualToString("cursor.direction", "next"); 71 shouldBeEqualToString("cursor.key", "myKey"); 72 shouldBeEqualToString("cursor.value", "myValue"); 73 73 debug(""); 74 74 debug("Passing an invalid key into .continue({})."); … … 91 91 debug("setVersionSuccess():"); 92 92 self.trans = evalAndLog("trans = event.target.result"); 93 shouldBe True("trans !== null");93 shouldBeNonNull("trans"); 94 94 trans.onabort = unexpectedAbortCallback; 95 95 -
trunk/LayoutTests/storage/indexeddb/resources/opencursor-key.js
r116337 r117702 93 93 94 94 if (count == 0) { 95 shouldBe ("cursor.key", "'237-23-7739'");95 shouldBeEqualToString("cursor.key", "237-23-7739"); 96 96 shouldBe("JSON.stringify(cursor.value)", "JSON.stringify(objectStoreData[7].value)"); 97 97 shouldBe("cursor.primaryKey", "cursor.key"); … … 123 123 shouldBe("JSON.stringify(cursor.value)", 124 124 "JSON.stringify(objectStoreData[2].value)"); 125 shouldBe ("cursor.primaryKey", "'237-23-7734'");125 shouldBeEqualToString("cursor.primaryKey", "237-23-7734"); 126 126 evalAndLog("cursor.continue()"); 127 127 } else if (count == 1) { … … 129 129 shouldBe("JSON.stringify(cursor.value)", 130 130 "JSON.stringify(objectStoreData[6].value)"); 131 shouldBe ("cursor.primaryKey", "'237-23-7738'");131 shouldBeEqualToString("cursor.primaryKey", "237-23-7738"); 132 132 evalAndLog("cursor.continue()"); 133 133 } else if (count == 2) { … … 135 135 shouldBe("JSON.stringify(cursor.value)", 136 136 "JSON.stringify(objectStoreData[10].value)"); 137 shouldBe ("cursor.primaryKey", "'237-23-7742'");137 shouldBeEqualToString("cursor.primaryKey", "237-23-7742"); 138 138 evalAndLog("cursor.continue()"); 139 139 } else if (count == 3) { … … 161 161 if (count == 0) { 162 162 shouldBe("cursor.key", '180'); 163 shouldBe ("cursor.primaryKey", "'237-23-7734'");163 shouldBeEqualToString("cursor.primaryKey", "237-23-7734"); 164 164 evalAndLog("cursor.continue()"); 165 165 } else if (count == 1) { 166 166 shouldBe("cursor.key", '180'); 167 shouldBe ("cursor.primaryKey", "'237-23-7738'");167 shouldBeEqualToString("cursor.primaryKey", "237-23-7738"); 168 168 evalAndLog("cursor.continue()"); 169 169 } else if (count == 2) { 170 170 shouldBe("cursor.key", '180'); 171 shouldBe ("cursor.primaryKey", "'237-23-7742'");171 shouldBeEqualToString("cursor.primaryKey", "237-23-7742"); 172 172 evalAndLog("cursor.continue()"); 173 173 } else if (count == 3) { -
trunk/LayoutTests/storage/indexeddb/resources/prefetch-bugfix-108071.js
r116337 r117702 37 37 debug("setVersionSuccess():"); 38 38 self.trans = evalAndLog("trans = event.target.result"); 39 shouldBe True("trans !== null");39 shouldBeNonNull("trans"); 40 40 trans.onabort = unexpectedAbortCallback; 41 41 trans.oncomplete = iterateAndDeleteFirstElement; -
trunk/LayoutTests/storage/indexeddb/resources/queued-commands.js
r112202 r117702 27 27 debug("setVersionSuccess():"); 28 28 self.trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 -
trunk/LayoutTests/storage/indexeddb/resources/request-event-propagation.js
r116337 r117702 27 27 debug("setVersionSuccess():"); 28 28 self.trans = evalAndLog("trans = event.target.result"); 29 shouldBe True("trans !== null");29 shouldBeNonNull("trans"); 30 30 trans.onabort = unexpectedAbortCallback; 31 31 evalAndLog("trans.oncomplete = startTest"); -
trunk/LayoutTests/storage/indexeddb/resources/setVersion-null.js
r114672 r117702 27 27 function postSetVersion() 28 28 { 29 shouldBe ("db.version", "'null'");29 shouldBeEqualToString("db.version", "null"); 30 30 finishJSTest(); 31 31 } -
trunk/LayoutTests/storage/indexeddb/resources/shared.js
r115255 r117702 92 92 testFailed("No exception thrown!" ); 93 93 } catch (e) { 94 testPassed("Exception was thrown.");95 if (eval("e instanceof " + expected))96 testPassed(cmd + " threw " + e);97 else98 testFailed("Expected " + expected + " but saw " + e);94 testPassed("Exception was thrown."); 95 if (eval("e instanceof " + expected)) 96 testPassed(cmd + " threw " + e); 97 else 98 testFailed("Expected " + expected + " but saw " + e); 99 99 } 100 100 } … … 113 113 debug("Deleted all object stores."); 114 114 } 115 116 // For Workers 117 if (!self.DOMException) { 118 self.DOMException = { 119 INDEX_SIZE_ERR: 1, 120 DOMSTRING_SIZE_ERR: 2, 121 HIERARCHY_REQUEST_ERR: 3, 122 WRONG_DOCUMENT_ERR: 4, 123 INVALID_CHARACTER_ERR: 5, 124 NO_DATA_ALLOWED_ERR: 6, 125 NO_MODIFICATION_ALLOWED_ERR: 7, 126 NOT_FOUND_ERR: 8, 127 NOT_SUPPORTED_ERR: 9, 128 INUSE_ATTRIBUTE_ERR: 10, 129 INVALID_STATE_ERR: 11, 130 SYNTAX_ERR: 12, 131 INVALID_MODIFICATION_ERR: 13, 132 NAMESPACE_ERR: 14, 133 INVALID_ACCESS_ERR: 15, 134 VALIDATION_ERR: 16, 135 TYPE_MISMATCH_ERR: 17, 136 SECURITY_ERR: 18, 137 NETWORK_ERR: 19, 138 ABORT_ERR: 20, 139 URL_MISMATCH_ERR: 21, 140 QUOTA_EXCEEDED_ERR: 22, 141 TIMEOUT_ERR: 23, 142 INVALID_NODE_TYPE_ERR: 24, 143 DATA_CLONE_ERR: 25 144 }; 145 } -
trunk/LayoutTests/storage/indexeddb/resources/transaction-abort.js
r116337 r117702 28 28 debug("setVersionSuccess():"); 29 29 self.trans = evalAndLog("trans = event.target.result"); 30 shouldBe True("trans !== null");30 shouldBeNonNull("trans"); 31 31 trans.onabort = unexpectedAbortCallback; 32 32 evalAndLog("trans.oncomplete = startTest"); -
trunk/LayoutTests/storage/indexeddb/resources/transaction-and-objectstore-calls.js
r114672 r117702 102 102 103 103 trans = evalAndLog("trans = db.transaction(['store'])"); 104 shouldBe True("trans != null");104 shouldBeNonNull("trans"); 105 105 trans.onabort = unexpectedAbortCallback; 106 106 trans.onerror = unexpectedErrorCallback; 107 107 trans.oncomplete = afterComplete; 108 108 evalAndLog("store = trans.objectStore('store')"); 109 shouldBe True("store != null");109 shouldBeNonNull("store"); 110 110 evalAndLog("store.get('some_key')"); 111 111 } … … 114 114 { 115 115 debug("transaction complete, ensuring methods fail"); 116 shouldBe True("trans != null");117 shouldBe True("store != null");116 shouldBeNonNull("trans"); 117 shouldBeNonNull("store"); 118 118 evalAndExpectException("trans.objectStore('store')", "IDBDatabaseException.NOT_ALLOWED_ERR"); 119 119 evalAndExpectException("store.index('index')", "IDBDatabaseException.NOT_ALLOWED_ERR"); -
trunk/LayoutTests/storage/indexeddb/resources/transaction-basics.js
r116337 r117702 41 41 debug("addRemoveIDBObjects():"); 42 42 var trans = evalAndLog("trans = event.target.result"); 43 shouldBe True("trans !== null");43 shouldBeNonNull("trans"); 44 44 trans.addEventListener('abort', testSetVersionAbort2, true); 45 45 trans.oncomplete = unexpectedCompleteCallback; … … 67 67 debug("addRemoveAddIDBObjects():"); 68 68 var trans = evalAndLog("trans = event.target.result"); 69 shouldBe True("trans !== null");69 shouldBeNonNull("trans"); 70 70 trans.addEventListener('abort', testSetVersionAbort3, false); 71 71 trans.oncomplete = unexpectedCompleteCallback; … … 98 98 shouldBeFalse("event.cancelable"); 99 99 var trans = evalAndLog("trans = event.target.result"); 100 shouldBe True("trans !== null");100 shouldBeNonNull("trans"); 101 101 trans.onabort = testInactiveAbortedTransaction; 102 102 trans.oncomplete = unexpectedCompleteCallback; … … 141 141 debug("addIDBObjectsAndCommit():"); 142 142 var trans = evalAndLog("trans = event.target.result"); 143 shouldBe True("trans !== null");143 shouldBeNonNull("trans"); 144 144 trans.onabort = unexpectedAbortCallback; 145 145 … … 183 183 debug("removeIDBObjects():"); 184 184 var trans = evalAndLog("trans = event.target.result"); 185 shouldBe True("trans !== null");185 shouldBeNonNull("trans"); 186 186 trans.onabort = testSetVersionAbort6; 187 187 trans.oncomplete = unexpectedCompleteCallback; … … 235 235 debug("setVersionSuccess():"); 236 236 self.trans = evalAndLog("trans = event.target.result"); 237 shouldBe True("trans !== null");237 shouldBeNonNull("trans"); 238 238 trans.onabort = unexpectedAbortCallback; 239 239 trans.addEventListener('complete', completeCallback, false); … … 270 270 testPassed("no exception thrown"); 271 271 for (var i = 0; i < db.objectStoreNames.length; ++i) { 272 shouldBe True("transaction.objectStore(" + JSON.stringify(db.objectStoreNames[i]) + ") != null");272 shouldBeNonNull("transaction.objectStore(" + JSON.stringify(db.objectStoreNames[i]) + ")"); 273 273 } 274 274 testPassed("all stores present in transaction"); -
trunk/LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js
r116337 r117702 26 26 { 27 27 self.trans = evalAndLog("trans = event.target.result"); 28 shouldBe True("trans !== null");28 shouldBeNonNull("trans"); 29 29 trans.onabort = unexpectedAbortCallback; 30 30 evalAndLog("trans.oncomplete = startTest"); -
trunk/LayoutTests/storage/indexeddb/resources/transaction-rollback.js
r116337 r117702 53 53 { 54 54 debug("addSuccess():"); 55 shouldBe ("event.target.result", "'rollbackKey123'");55 shouldBeEqualToString("event.target.result", "rollbackKey123"); 56 56 57 57 request = evalAndLog("store.openCursor()"); … … 85 85 shouldBe("event.target.result", "undefined"); 86 86 87 shouldBe ("cursor.value", "'rollbackValue'");87 shouldBeEqualToString("cursor.value", "rollbackValue"); 88 88 finishJSTest(); 89 89 } -
trunk/LayoutTests/storage/indexeddb/resources/two-version-changes.js
r112202 r117702 9 9 removeVendorPrefixes(); 10 10 11 shouldBe False("indexedDB == null");12 shouldBe False("IDBTransaction == null");11 shouldBeNonNull("indexedDB"); 12 shouldBeNonNull("IDBTransaction"); 13 13 openDBConnection(); 14 14 } -
trunk/LayoutTests/storage/indexeddb/resources/values-odd-types.js
r114672 r117702 61 61 shouldBe("cursor.value.toString()", "validTypes[valueIndex].value.toString()"); 62 62 if (valueIndex == 1) { 63 shouldBe ("cursor.value.toUTCString()", "'Thu, 01 Jan 1970 00:00:00 GMT'");63 shouldBeEqualToString("cursor.value.toUTCString()", "Thu, 01 Jan 1970 00:00:00 GMT"); 64 64 } 65 65 if (valueIndex == 3) { -
trunk/LayoutTests/storage/indexeddb/setVersion-null-expected.txt
r114672 r117702 9 9 db = event.target.result 10 10 db.setVersion(null); 11 PASS db.version is 'null'11 PASS db.version is "null" 12 12 PASS successfullyParsed is true 13 13 -
trunk/LayoutTests/storage/indexeddb/transaction-abort-expected.txt
r116337 r117702 11 11 setVersionSuccess(): 12 12 trans = event.target.result 13 PASS trans !== null is true13 PASS trans is non-null. 14 14 trans.oncomplete = startTest 15 15 Deleted all object stores. -
trunk/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt
r114672 r117702 110 110 111 111 trans = db.transaction(['store']) 112 PASS trans != null is true112 PASS trans is non-null. 113 113 store = trans.objectStore('store') 114 PASS store != null is true114 PASS store is non-null. 115 115 store.get('some_key') 116 116 transaction complete, ensuring methods fail 117 PASS trans != null is true118 PASS store != null is true117 PASS trans is non-null. 118 PASS store is non-null. 119 119 Expecting exception from trans.objectStore('store') 120 120 PASS Exception was thrown. -
trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt
r116337 r117702 17 17 addRemoveIDBObjects(): 18 18 trans = event.target.result 19 PASS trans !== null is true19 PASS trans is non-null. 20 20 store = db.createObjectStore('storeFail', null) 21 21 index = store.createIndex('indexFail', 'x') … … 30 30 addRemoveAddIDBObjects(): 31 31 trans = event.target.result 32 PASS trans !== null is true32 PASS trans is non-null. 33 33 store = db.createObjectStore('storeFail', null) 34 34 index = store.createIndex('indexFail', 'x') … … 47 47 PASS event.cancelable is false 48 48 trans = event.target.result 49 PASS trans !== null is true49 PASS trans is non-null. 50 50 store = db.createObjectStore('storeFail', null) 51 51 index = store.createIndex('indexFail', 'x') … … 93 93 addIDBObjectsAndCommit(): 94 94 trans = event.target.result 95 PASS trans !== null is true95 PASS trans is non-null. 96 96 store = db.createObjectStore('storeFail', null) 97 97 index = store.createIndex('indexFail', 'x') … … 139 139 removeIDBObjects(): 140 140 trans = event.target.result 141 PASS trans !== null is true141 PASS trans is non-null. 142 142 store = trans.objectStore('storeFail') 143 143 store.deleteIndex('indexFail') … … 152 152 setVersionSuccess(): 153 153 trans = event.target.result 154 PASS trans !== null is true154 PASS trans is non-null. 155 155 Deleted all object stores. 156 156 db.createObjectStore('storeName', null) … … 167 167 transaction = db.transaction(db.objectStoreNames) 168 168 PASS no exception thrown 169 PASS transaction.objectStore("storeName") != null is true169 PASS transaction.objectStore("storeName") is non-null. 170 170 PASS all stores present in transaction 171 171 -
trunk/LayoutTests/storage/indexeddb/transaction-event-propagation-expected.txt
r116337 r117702 10 10 db.setVersion('new version') 11 11 trans = event.target.result 12 PASS trans !== null is true12 PASS trans is non-null. 13 13 trans.oncomplete = startTest 14 14 Deleted all object stores. -
trunk/LayoutTests/storage/indexeddb/transaction-rollback-expected.txt
r116337 r117702 20 20 store.add('rollbackValue', 'rollbackKey123') 21 21 addSuccess(): 22 PASS event.target.result is 'rollbackKey123'22 PASS event.target.result is "rollbackKey123" 23 23 store.openCursor() 24 24 openCursorSuccess(): … … 31 31 getSuccess(): 32 32 PASS event.target.result is undefined 33 PASS cursor.value is 'rollbackValue'33 PASS cursor.value is "rollbackValue" 34 34 PASS successfullyParsed is true 35 35 -
trunk/LayoutTests/storage/indexeddb/two-version-changes-expected.txt
r112490 r117702 6 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; 7 7 8 PASS indexedDB == null is false9 PASS IDBTransaction == null is false8 PASS indexedDB is non-null. 9 PASS IDBTransaction is non-null. 10 10 self.state = 'starting' 11 11 indexedDB.open('two-versions-one-connection') -
trunk/LayoutTests/storage/indexeddb/values-odd-types-expected.txt
r114672 r117702 26 26 cursor = event.target.result; 27 27 PASS cursor.value.toString() is validTypes[valueIndex].value.toString() 28 PASS cursor.value.toUTCString() is 'Thu, 01 Jan 1970 00:00:00 GMT'28 PASS cursor.value.toUTCString() is "Thu, 01 Jan 1970 00:00:00 GMT" 29 29 cursor.continue(); 30 30 valueIndex++;
Note:
See TracChangeset
for help on using the changeset viewer.