mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 603811 - 'IndexedDB: Implement setVersion changes to the spec'. Fix browser-chrome test, a=testfix.
This commit is contained in:
parent
e4e99c7f83
commit
1f6b65248d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user