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

Unified Diff: content/test/data/indexeddb/corrupted_open_db_detection.html

Issue 902503003: IndexedDB: Address performance regression with blob journals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/indexeddb/corrupted_open_db_detection.html
diff --git a/content/test/data/indexeddb/corrupted_open_db_detection.html b/content/test/data/indexeddb/corrupted_open_db_detection.html
index ce4569034cf6bb07e79ae5937f1c7bb884887592..12021fb8e81a35d662677c9880a6869710b70614 100644
--- a/content/test/data/indexeddb/corrupted_open_db_detection.html
+++ b/content/test/data/indexeddb/corrupted_open_db_detection.html
@@ -167,10 +167,12 @@ var tests = {
});
},
failGetBlobJournal: function() {
- // Get() #1 the actual get, #2 is for the journal.
- testXhr("/corrupt/test/fail?class=LevelDBTransaction&method=Get&instNum=2", function() {
+ // Get() #1 is the put (GetNewVersionNumber)
+ // Get() #2 is the blob key generator (GetBlobKeyGeneratorCurrentNumber)
+ // Get() #3 is the journal (GetPrimaryBlobJournal)
+ testXhr("/corrupt/test/fail?class=LevelDBTransaction&method=Get&instNum=3", function() {
tests.testCommon('readwrite');
- request.onsuccess = unexpectedSuccessCallback;
+ request = objectStore.put({blob: new Blob(['abc'])}, 'key-0');
request.onerror = requestError;
db.onclose = function databaseClosed(event) {
shouldBe("numTransactionErrors", "0");
@@ -178,7 +180,6 @@ var tests = {
done("Closed as expected");
};
- request = objectStore.get('key-0');
});
},
clearObjectStore: function() {
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698