Bug 1403051 - Fix ES lint failure

This commit is contained in:
Noemi Erli 2019-09-26 14:27:48 +03:00
Родитель 5e34ed9990
Коммит 62876bf286
2 изменённых файлов: 22 добавлений и 9 удалений

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

@ -42,10 +42,26 @@ add_task(async function() {
// Check the UI contains server side timings and correct values
const timings = document.querySelectorAll(timingsSelector, 4);
is(timings[0].textContent, "time1123 ms", "The first server-timing must be correct");
is(timings[1].textContent, "time20 ms", "The second server-timing must be correct");
is(timings[2].textContent, "time31.66 min", "The third server-timing must be correct");
is(timings[3].textContent, "time41.11 s", "The fourth server-timing must be correct");
is(
timings[0].textContent,
"time1123 ms",
"The first server-timing must be correct"
);
is(
timings[1].textContent,
"time20 ms",
"The second server-timing must be correct"
);
is(
timings[2].textContent,
"time31.66 min",
"The third server-timing must be correct"
);
is(
timings[3].textContent,
"time41.11 s",
"The fourth server-timing must be correct"
);
await teardown(monitor);
});

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

@ -240,10 +240,7 @@ NetworkObserver.prototype = {
this._httpModifyExaminer,
"http-on-modify-request"
);
Services.obs.addObserver(
this._httpStopRequest,
"http-on-stop-request"
);
Services.obs.addObserver(this._httpStopRequest, "http-on-stop-request");
} else {
Services.obs.addObserver(
this._httpFailedOpening,
@ -1004,7 +1001,7 @@ NetworkObserver.prototype = {
httpActivity.owner.addEventTimings(
result.total,
result.timings,
result.offsets,
result.offsets
);
}
this.openRequests.delete(httpActivity.channel);