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

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

Issue 334303002: Using a mock LevelDBTransaction for corruption tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined VLOG and NOTREACHED Created 6 years, 6 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: 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 5e1b4e2b42f8187b123dc1e6678016599cd42095..f21139deb37f7fdfb736079d38ce2981f77d5602 100644
--- a/content/test/data/indexeddb/corrupted_open_db_detection.html
+++ b/content/test/data/indexeddb/corrupted_open_db_detection.html
@@ -21,7 +21,7 @@ function test() {
indexedDBTest(upgradeCallback, openCallback);
}
-var numObjectsWrittenToDb = 500;
+var numObjectsWrittenToDb = 5;
var numTransactions = 0;
var numTransactionErrors = 0;
var numTransactionAborts = 0;
@@ -110,7 +110,7 @@ var tests = {
objectStore = transaction.objectStore('storeName');
},
get: function() {
- testXhr("/corrupt/test/corruptdb?storeName", function() {
+ testXhr("/corrupt/test/fail?class=LevelDBTransaction&method=Get&instNum=1", function() {
jsbell 2014/06/19 21:08:47 Wrap this so it's less than 80 chars?
tests.testCommon('readonly');
request = objectStore.get('key-0');
request.onsuccess = unexpectedSuccessCallback;

Powered by Google App Engine
This is Rietveld 408576698