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

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

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and linkage fix Created 5 years, 3 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: LayoutTests/storage/indexeddb/resources/odd-strings.js
diff --git a/LayoutTests/storage/indexeddb/resources/odd-strings.js b/LayoutTests/storage/indexeddb/resources/odd-strings.js
index c148e844e10da6093fd429fe4e941e63d33be43b..2bf5754b24aee603f25528e00b7125c84ea54b94 100644
--- a/LayoutTests/storage/indexeddb/resources/odd-strings.js
+++ b/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;
}
« no previous file with comments | « LayoutTests/storage/indexeddb/resources/objectstore-basics.js ('k') | LayoutTests/storage/indexeddb/resources/persistence.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698