Index: LayoutTests/storage/indexeddb/key-cursor-request-cycle.html |
diff --git a/LayoutTests/storage/indexeddb/cursor-request-cycle.html b/LayoutTests/storage/indexeddb/key-cursor-request-cycle.html |
similarity index 89% |
copy from LayoutTests/storage/indexeddb/cursor-request-cycle.html |
copy to LayoutTests/storage/indexeddb/key-cursor-request-cycle.html |
index 4f65843e93caec4a4234c6cc3782723d4bd306c9..4b24ace259f4399614251f4389b773d6bbf62bfc 100644 |
--- a/LayoutTests/storage/indexeddb/cursor-request-cycle.html |
+++ b/LayoutTests/storage/indexeddb/key-cursor-request-cycle.html |
@@ -3,7 +3,7 @@ |
<script src="resources/shared.js"></script> |
<script> |
-description("Verify that that cursors weakly hold request, and work if request is GC'd"); |
+description("Verify that that key cursors weakly hold request, and work if request is GC'd"); |
indexedDBTest(prepareDatabase, onOpen); |
@@ -23,7 +23,7 @@ function onOpen(evt) |
evalAndLog("tx = db.transaction('store')"); |
evalAndLog("store = tx.objectStore('store')"); |
- evalAndLog("cursorRequest = store.openCursor()"); |
+ evalAndLog("cursorRequest = store.openKeyCursor()"); |
cursorRequest.onsuccess = function openCursorRequestSuccess(evt) { |
preamble(evt); |
debug("Result will be checked later, to ensure that lazy access is safe"); |
@@ -39,7 +39,6 @@ function onOpen(evt) |
evalAndLog("cursor = cursorRequest.result"); |
shouldBeNonNull("cursor"); |
shouldBeEqualToString("cursor.key", "key1"); |
- shouldBeEqualToString("cursor.value", "value1"); |
evalAndLog("cursorRequest.extra = 123"); |
evalAndLog("cursor.extra = 456"); |
@@ -49,7 +48,6 @@ function onOpen(evt) |
evalAndLog("cursor = event.target.result"); |
shouldBeNonNull("cursor"); |
shouldBeEqualToString("cursor.key", "key2"); |
- shouldBeEqualToString("cursor.value", "value2"); |
shouldBe("event.target.extra", "123"); |
shouldBe("cursor.extra", "456"); |
}; |
@@ -71,7 +69,6 @@ function onOpen(evt) |
finalRequest.onsuccess = function finalRequestSuccess(evt) { |
preamble(evt); |
shouldBeEqualToString("cursor.key", "key2"); |
- shouldBeEqualToString("cursor.value", "value2"); |
cursorObservation = internals.observeGC(cursor); |
evalAndLog("cursor = null"); |