From f623aa8ab0cfaae5c98d032897b74e129ea333c8 Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Tue, 19 Oct 2010 12:14:30 -0700 Subject: [PATCH] Bug 603811 - 'IndexedDB: Implement setVersion changes to the spec'. Fix browser-chrome test, a=testfix. --- dom/indexedDB/test/browser_quotaPrompt.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dom/indexedDB/test/browser_quotaPrompt.html b/dom/indexedDB/test/browser_quotaPrompt.html index 313fdb709ff8..27e900fe4b30 100644 --- a/dom/indexedDB/test/browser_quotaPrompt.html +++ b/dom/indexedDB/test/browser_quotaPrompt.html @@ -35,9 +35,12 @@ function onDone() { window.removeEventListener("indexedDB-addMore", onAddMore, true); window.removeEventListener("indexedDB-done", onDone, true); - let request = db.removeObjectStore("foo"); + + let request = db.setVersion("2"); request.onerror = errorHandler; request.onsuccess = function(event) { + db.removeObjectStore("foo"); + testResult = "finished"; testException = undefined; finishTest(); @@ -59,11 +62,13 @@ db = event.result; - request = db.createObjectStore("foo", "", true); + request = db.setVersion("1"); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; event = yield; + db.createObjectStore("foo", "", true); + setTimeout(testFinishedCallback, 0, "ready"); yield; }