Make setVersion test a little faster

This commit is contained in:
Ben Turner 2010-06-18 12:14:11 -07:00
Родитель 5d4a505177
Коммит fcf14fbabc
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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