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

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

Issue 1116253003: IndexedDB: Added IDBObjectStore.getAll() corruption test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idb-objectstore-getall
Patch Set: Created 5 years, 8 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_browsertest.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 12021fb8e81a35d662677c9880a6869710b70614..d642d8182541fa4ed96d4878b837c5675304fffd 100644
--- a/content/test/data/indexeddb/corrupted_open_db_detection.html
+++ b/content/test/data/indexeddb/corrupted_open_db_detection.html
@@ -118,6 +118,15 @@ var tests = {
request.onerror = requestError;
});
},
+ getAll: function() {
+ testXhr("/corrupt/test/fail?class=LevelDBTransaction&method=Get&instNum=1",
+ function() {
+ tests.testCommon('readonly');
+ request = objectStore.getAll('key-0');
+ request.onsuccess = unexpectedSuccessCallback;
+ request.onerror = requestError;
+ });
+ },
failTransactionCommit: function() {
tests.testCommon('readwrite');
db.onclose = function(event) {
« no previous file with comments | « content/browser/indexed_db/indexed_db_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698