зеркало из https://github.com/mozilla/pjs.git
Make setVersion test a little faster
This commit is contained in:
Родитель
5d4a505177
Коммит
fcf14fbabc
|
@ -70,13 +70,14 @@ function testSteps()
|
|||
ok(objectStoreNumber > callbackCount, "more outstanding creates");
|
||||
lastObjectStore = objectStoreNumber;
|
||||
|
||||
SimpleTest.executeSoon(function() { continueCreating = false; });
|
||||
|
||||
request = db.setVersion("11");
|
||||
request.onerror = errorHandler;
|
||||
request.onsuccess = function() {
|
||||
is(event.transaction.mode, READ_WRITE, "Not FULL_LOCK");
|
||||
is(callbackCount, lastObjectStore,
|
||||
"Version callback happened before other creates");
|
||||
continueCreating = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче