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

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: Remove FIXMEs Created 6 years, 6 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 4f02b9056d3ee6b6947ae417bc0cf57dc0c70dbe..ee9762b2f48e44b0c76a1df9d74f115e2f0a9781 100644
--- a/LayoutTests/storage/indexeddb/resources/odd-strings.js
+++ b/LayoutTests/storage/indexeddb/resources/odd-strings.js
@@ -36,9 +36,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;
ericu 2014/06/19 00:54:05 Can you talk me through this change? Why are we n
jsbell 2014/06/19 01:13:24 Previously, the test was closing the database in t
ericu 2014/06/19 01:18:40 OK.
}
function addAKey()
@@ -48,7 +48,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