Fix test_autobuffer2 to handle the case when a suspend happens when all the data is already loaded.

--HG--
extra : rebase_source : 7923d3fde3e4aef1723e424631f65a64d663f2a3
This commit is contained in:
Robert O'Callahan 2009-05-18 16:37:10 +12:00
Родитель c6f26b735c
Коммит 961c9fc99a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -52,7 +52,9 @@ function loaded(event) {
}
function suspended(event) {
is(event.target.networkState, event.target.NETWORK_IDLE,
// we *can* be in state NETWORK_LOADED --- the suspend can happen after
// all the data is already loaded...
isnot(event.target.networkState, event.target.NETWORK_LOADING,
event.target.id + " suspended networkState");
suspends[event.target.id] = true;
if (event.target.id == "v1") {