зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1403051 - Fix ES lint failure
This commit is contained in:
Родитель
5e34ed9990
Коммит
62876bf286
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче