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

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

Issue 2964743002: Revert "Indexed DB: Remove nonstandard IDBFactory.webkitGetDatabaseNames()" (Closed)
Patch Set: Undeprecate Created 3 years, 5 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 076a2cc4115fd4565d71ffd13f96ea572d0c6379..d642d8182541fa4ed96d4878b837c5675304fffd 100644
--- a/content/test/data/indexeddb/corrupted_open_db_detection.html
+++ b/content/test/data/indexeddb/corrupted_open_db_detection.html
@@ -140,6 +140,24 @@ var tests = {
request.onerror = requestError;
});
},
+ failWebkitGetDatabaseNames: function() {
+ tests.testCommon('readonly');
+ gotRequestError = 0;
+ db.onclose = function(event) {
+ shouldBe("numTransactionErrors", "0");
+ shouldBe("numTransactionAborts", "1");
+ shouldBe("gotRequestError", "1");
+
+ done("Closed as expected");
+ };
+ testXhr("/corrupt/test/fail?class=LevelDBIterator&method=Seek", function() {
+ request = window.indexedDB.webkitGetDatabaseNames();
+ request.onsuccess = unexpectedSuccessCallback;
+ request.onerror = function(evt) {
+ gotRequestError += 1;
+ };
+ });
+ },
iterate: function() {
testXhr("/corrupt/test/corruptdb?storeName", function() {
tests.testCommon('readonly');

Powered by Google App Engine
This is Rietveld 408576698