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

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: LevelDBTraceTansaction::s_class_name is now static 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
« no previous file with comments | « content/content_tests.gypi ('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 5e1b4e2b42f8187b123dc1e6678016599cd42095..9fe0aa4ab96ecd78670417b920e23a5f0a372d34 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,8 @@ 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() {
tests.testCommon('readonly');
request = objectStore.get('key-0');
request.onsuccess = unexpectedSuccessCallback;
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698