Chromium Code Reviews| Index: chrome/test/data/indexeddb/cursor_test.js |
| diff --git a/chrome/test/data/indexeddb/cursor_test.js b/chrome/test/data/indexeddb/cursor_test.js |
| index 1c6b40c762bfc54e889237d9df233d383483be86..968cc5f6009526a63d131f07524b5f252d3fb89b 100644 |
| --- a/chrome/test/data/indexeddb/cursor_test.js |
| +++ b/chrome/test/data/indexeddb/cursor_test.js |
| @@ -28,7 +28,7 @@ function cursorSuccess() |
| debug('Cursor opened successfully.'); |
| shouldBe("event.result.direction", "0"); |
| - shouldBe("event.result.key", "'myKey'"); |
| + shouldBe("event.result.key", "3.14"); |
| shouldBe("event.result.value", "'myValue'"); |
| cursor.continue(); |
| @@ -37,7 +37,7 @@ function cursorSuccess() |
| function openCursor(objectStore) |
| { |
| debug('Opening cursor'); |
| - var keyRange = webkitIDBKeyRange.lowerBound('myKey'); |
| + var keyRange = webkitIDBKeyRange.lowerBound(3.12); |
|
jorlow
2010/12/09 17:40:19
Is 3.12 intentional?
hans
2010/12/09 17:42:30
Yes, but there's no deep rationale for it. Just fi
|
| var result = objectStore.openCursor({range: keyRange}); |
| result.onsuccess = cursorSuccess; |
| result.onerror = unexpectedErrorCallback; |
| @@ -54,7 +54,7 @@ function populateObjectStore() |
| debug('Populating object store'); |
| deleteAllObjectStores(db); |
| window.objectStore = db.createObjectStore('test'); |
| - var result = objectStore.add('myValue', 'myKey'); |
| + var result = objectStore.add('myValue', 3.14); |
| result.onsuccess = dataAddedSuccess; |
| result.onerror = unexpectedErrorCallback; |
| } |