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

Unified Diff: LayoutTests/storage/indexeddb/key-cursor-request-cycle.html

Issue 924863003: IndexedDB: Replace custom binding logic with [SetWrapperReferenceTo] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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");
jsbell 2015/02/13 19:28:00 Added to ensure we're exercising both IDBCursor an
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");

Powered by Google App Engine
This is Rietveld 408576698