зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c6f26b735c
Коммит
961c9fc99a
|
@ -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") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче