| 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');
|
|
|