diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 12:16:17 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 12:16:17 +0000 |
commit | 507902277eebc76641b21243039865f61fd7f13a (patch) | |
tree | d855b8cff498f9998e118e6f76668ddb794257c9 /chrome/test/data/indexeddb/transaction_get_test.js | |
parent | ef811fd19fc58d4ebf90904eec8ac5e4251c3e22 (diff) | |
download | chromium_src-507902277eebc76641b21243039865f61fd7f13a.zip chromium_src-507902277eebc76641b21243039865f61fd7f13a.tar.gz chromium_src-507902277eebc76641b21243039865f61fd7f13a.tar.bz2 |
Revert 60457 - Adds IDBFactory::didCompleteEventsForTransaction plumbing
(depends on https://bugs.webkit.org/show_bug.cgi?id=44700)
TEST=IndexedDBBrowserTest.TransactionGetTest
This takes over http://codereview.chromium.org/3310022/show
Review URL: http://codereview.chromium.org/3394007
TBR=andreip@chromium.org
Review URL: http://codereview.chromium.org/3405031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/indexeddb/transaction_get_test.js')
-rw-r--r-- | chrome/test/data/indexeddb/transaction_get_test.js | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/chrome/test/data/indexeddb/transaction_get_test.js b/chrome/test/data/indexeddb/transaction_get_test.js deleted file mode 100644 index e9c992a..0000000 --- a/chrome/test/data/indexeddb/transaction_get_test.js +++ /dev/null @@ -1,70 +0,0 @@ -function afterCommit() -{ - try { - debug("Accessing a committed transaction should throw"); - var store = transaction.objectStore('storeName'); - } catch (e) { - exc = e; - shouldBe('exc.code', '9'); - } - done(); -} - -function nonExistingKey() -{ - window.setTimeout('afterCommit()', 0); -} - -function gotValue() -{ - value = event.result; - shouldBeEqualToString('value', 'myValue'); -} - -function startTransaction() -{ - debug("Using get in a transaction"); - transaction = db.transaction(); - //transaction.onabort = unexpectedErrorCallback; - store = transaction.objectStore('storeName'); - shouldBeEqualToString("store.name", "storeName"); - result = store.get('myKey'); - result.onsuccess = gotValue; - result.onerror = unexpectedErrorCallback; - - var emptyResult = store.get('nonExistingKey'); - emptyResult.onsuccess = unexpectedSuccessCallback; - emptyResult.onerror = nonExistingKey; -} - -function populateObjectStore(objectStore) -{ - result = objectStore.add('myValue', 'myKey'); - result.onsuccess = startTransaction; -} - -function createObjectStoreSuccess() -{ - var objectStore = event.result; - populateObjectStore(objectStore); -} - -function openSuccess() -{ - db = event.result; - - deleteAllObjectStores(db); - - result = db.createObjectStore('storeName'); - result.onsuccess = createObjectStoreSuccess; - result.onerror = unexpectedErrorCallback; -} - -function test() -{ - result = indexedDB.open('name', 'description'); - result.onsuccess = openSuccess; - result.onerror = unexpectedErrorCallback; -} - -test(); |