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

Unified Diff: chrome/test/data/indexeddb/object_store_test.js

Issue 6209005: Fix IndexedDB race condition during shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Singleton wrapper approach Created 9 years, 11 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: chrome/test/data/indexeddb/object_store_test.js
diff --git a/chrome/test/data/indexeddb/object_store_test.js b/chrome/test/data/indexeddb/object_store_test.js
index 737665870b5471676b7f5c451a7138b045539ab1..1f6405f65a5b7f9b0f241959e5ae884a56f10e03 100644
--- a/chrome/test/data/indexeddb/object_store_test.js
+++ b/chrome/test/data/indexeddb/object_store_test.js
@@ -15,6 +15,7 @@ function getByDateSuccess()
function recordNotFound()
{
debug('Removed data can no longer be found');
+ shouldBe("event.result", "undefined");
debug('Retrieving an index');
shouldBe("objectStore.index('fname_index').name", "'fname_index'");
@@ -36,8 +37,8 @@ function removeSuccess()
debug('Data removed');
var result = objectStore.get(1);
- result.onsuccess = unexpectedSuccessCallback;
- result.onerror = recordNotFound;
+ result.onsuccess = recordNotFound;
+ result.onerror = unexpectedSuccessCallback;
}
function getSuccess()

Powered by Google App Engine
This is Rietveld 408576698