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; |
} |