From 81bc750723a18f21cd17d1b173cd2a4dda9cea6e Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 24 May 2011 11:24:40 +0100 Subject: Merge WebKit at r80534: Intial merge by Git Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61 --- .../indexeddb/create-object-store-options.html | 24 +++++++++------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'LayoutTests/storage/indexeddb/create-object-store-options.html') diff --git a/LayoutTests/storage/indexeddb/create-object-store-options.html b/LayoutTests/storage/indexeddb/create-object-store-options.html index 6709e58..bf600d7 100644 --- a/LayoutTests/storage/indexeddb/create-object-store-options.html +++ b/LayoutTests/storage/indexeddb/create-object-store-options.html @@ -19,28 +19,24 @@ function test() shouldBeTrue("'webkitIndexedDB' in window"); shouldBeFalse("webkitIndexedDB == null"); - result = evalAndLog("webkitIndexedDB.open('name', 'description')"); - verifyResult(result); - result.onsuccess = openSuccess; - result.onerror = unexpectedErrorCallback; + request = evalAndLog("webkitIndexedDB.open('create-object-store-options', 'description')"); + request.onsuccess = openSuccess; + request.onerror = unexpectedErrorCallback; } function openSuccess() { - db = evalAndLog("db = event.result"); + db = evalAndLog("db = event.target.result"); - result = evalAndLog("result = db.setVersion('version 1')"); - result.onsuccess = cleanDatabase; - result.onerror = unexpectedErrorCallback; + request = evalAndLog("request = db.setVersion('version 1')"); + request.onsuccess = cleanDatabase; + request.onerror = unexpectedErrorCallback; } function cleanDatabase() { - deleteAllObjectStores(db, cleaned); -} + deleteAllObjectStores(db); -function cleaned() -{ evalAndLog("db.createObjectStore('a', {keyPath: 'a'})"); evalAndLog("db.createObjectStore('b')"); @@ -71,7 +67,7 @@ function getA() function getB() { - shouldBe("event.result.a", "{a: 0}"); + shouldBe("event.target.result.a", "{a: 0}"); req = evalAndLog("trans.objectStore('b').get(0)"); req.onsuccess = checkB; @@ -80,7 +76,7 @@ function getB() function checkB() { - shouldBe("event.result.a", "{a: 0}"); + shouldBe("event.target.result.a", "{a: 0}"); done(); } -- cgit v1.1