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

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

Issue 924863003: IndexedDB: Replace custom binding logic with [SetWrapperReferenceTo] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Restore deleted line 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-expected.txt
diff --git a/LayoutTests/storage/indexeddb/cursor-request-cycle-expected.txt b/LayoutTests/storage/indexeddb/key-cursor-request-cycle-expected.txt
similarity index 85%
copy from LayoutTests/storage/indexeddb/cursor-request-cycle-expected.txt
copy to LayoutTests/storage/indexeddb/key-cursor-request-cycle-expected.txt
index 99c720509d78e7d4d2f3d2dd34b723426086bebe..b4e14883783d89d0b135d8e65f63712dc12a8820 100644
--- a/LayoutTests/storage/indexeddb/cursor-request-cycle-expected.txt
+++ b/LayoutTests/storage/indexeddb/key-cursor-request-cycle-expected.txt
@@ -1,11 +1,11 @@
-Verify that that cursors weakly hold request, and work if request is GC'd
+Verify that that key cursors weakly hold request, and work if request is GC'd
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-dbname = "cursor-request-cycle.html"
+dbname = "key-cursor-request-cycle.html"
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
@@ -17,7 +17,7 @@ onOpen():
db = event.target.result
tx = db.transaction('store')
store = tx.objectStore('store')
-cursorRequest = store.openCursor()
+cursorRequest = store.openKeyCursor()
otherRequest = store.get(0)
openCursorRequestSuccess():
@@ -29,7 +29,6 @@ gc()
cursor = cursorRequest.result
PASS cursor is non-null.
PASS cursor.key is "key1"
-PASS cursor.value is "value1"
cursorRequest.extra = 123
cursor.extra = 456
Ensure request is not released if cursor is still around.
@@ -46,13 +45,11 @@ cursorContinueSuccess():
cursor = event.target.result
PASS cursor is non-null.
PASS cursor.key is "key2"
-PASS cursor.value is "value2"
PASS event.target.extra is 123
PASS cursor.extra is 456
finalRequestSuccess():
PASS cursor.key is "key2"
-PASS cursor.value is "value2"
cursor = null
gc()
PASS cursorRequestObservation.wasCollected is true
« no previous file with comments | « LayoutTests/storage/indexeddb/key-cursor-request-cycle.html ('k') | Source/bindings/core/v8/V8HiddenValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698