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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js

Issue 1362953003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 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: third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js
index c148e844e10da6093fd429fe4e941e63d33be43b..2bf5754b24aee603f25528e00b7125c84ea54b94 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/odd-strings.js
@@ -34,9 +34,9 @@ function openNextDatabase()
{
debug("opening a database named " + testData[nextToOpen].description);
request = evalAndLog("indexedDB.open(testData[nextToOpen].name, 1)");
- request.onsuccess = unexpectedSuccessCallback;
request.onblocked = unexpectedBlockedCallback;
request.onupgradeneeded = addAKey;
+ request.onsuccess = closeDatabase;
}
function addAKey()
@@ -46,7 +46,6 @@ function addAKey()
evalAndLog("index = objectStore.createIndex(testData[nextToOpen].name, 'keyPath');");
evalAndLog("key = testData[nextToOpen].name");
evalAndLog("request = objectStore.add(key, key);");
- request.onsuccess = closeDatabase;
request.onerror = unexpectedErrorCallback;
}

Powered by Google App Engine
This is Rietveld 408576698