Bug 603811 - 'IndexedDB: Implement setVersion changes to the spec'. Fix browser-chrome test, a=testfix.

This commit is contained in:
Ben Turner 2010-10-19 12:14:30 -07:00
parent e4e99c7f83
commit 1f6b65248d

View File

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