зеркало из https://github.com/mozilla/gecko-dev.git
Bug 793585 - Only default the shared state if it's not there. r=joe
This commit is contained in:
Родитель
3f421578e3
Коммит
d05b6d6537
|
@ -43,7 +43,9 @@ function getFileAsInputStream(aFilename) {
|
|||
|
||||
function handleRequest(request, response)
|
||||
{
|
||||
setSharedState("next-part", "-1");
|
||||
if (!getSharedState("next-part")) {
|
||||
setSharedState("next-part", "-1");
|
||||
}
|
||||
response.setHeader("Content-Type",
|
||||
"multipart/x-mixed-replace;boundary=BOUNDARYOMG", false);
|
||||
response.setHeader("Cache-Control", "no-cache", false);
|
||||
|
|
|
@ -67,10 +67,10 @@ function imageLoad(aEvent) {
|
|||
is(aEvent.target.width, width,
|
||||
"Test " + testIndex + " " + fileName + " width correct");
|
||||
|
||||
// Always call readyForNext here, as it's the closest we have to a cleanup
|
||||
readyForNext();
|
||||
if ((testParts.length - 1) == testIndex) {
|
||||
SimpleTest.finish();
|
||||
} else {
|
||||
readyForNext();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче