diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-28 16:02:31 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-28 16:02:31 +0100 |
commit | abf60058584772437a317fbc27ea32cbda4a07cb (patch) | |
tree | 9cd95e40a1daf21868890190ee4955da24cf98b3 /devtools/client/netmonitor/test/browser_net_footer-summary.js | |
parent | 9fafdd4546bb51ff2a29a67f369797d19d614350 (diff) | |
download | UXP-abf60058584772437a317fbc27ea32cbda4a07cb.tar UXP-abf60058584772437a317fbc27ea32cbda4a07cb.tar.gz UXP-abf60058584772437a317fbc27ea32cbda4a07cb.tar.lz UXP-abf60058584772437a317fbc27ea32cbda4a07cb.tar.xz UXP-abf60058584772437a317fbc27ea32cbda4a07cb.zip |
Bug 1168376: Show transferred size in request summary instead of decompressed size
https://github.com/MoonchildProductions/moebius/pull/93
- without: DOMContentLoaded and load
Diffstat (limited to 'devtools/client/netmonitor/test/browser_net_footer-summary.js')
-rw-r--r-- | devtools/client/netmonitor/test/browser_net_footer-summary.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/devtools/client/netmonitor/test/browser_net_footer-summary.js b/devtools/client/netmonitor/test/browser_net_footer-summary.js index 94bfa604b..8faa8470b 100644 --- a/devtools/client/netmonitor/test/browser_net_footer-summary.js +++ b/devtools/client/netmonitor/test/browser_net_footer-summary.js @@ -44,7 +44,7 @@ add_task(function* () { yield teardown(monitor); function testStatus() { - const { count, totalBytes, totalMillis } = getSummary(gStore.getState()); + const { count, contentSize, transferredSize, millis } = getSummary(gStore.getState()); let value = $("#requests-menu-network-summary-button").textContent; info("Current summary: " + value); @@ -57,13 +57,14 @@ add_task(function* () { return; } - info("Computed total bytes: " + totalBytes); - info("Computed total millis: " + totalMillis); + info("Computed total bytes: " + contentSize); + info("Computed total millis: " + millis); - is(value, PluralForm.get(count, L10N.getStr("networkMenu.summary")) + is(value, PluralForm.get(count, L10N.getStr("networkMenu.summary2")) .replace("#1", count) - .replace("#2", L10N.numberWithDecimals((totalBytes || 0) / 1024, 2)) - .replace("#3", L10N.numberWithDecimals((totalMillis || 0) / 1000, 2)) + .replace("#2", L10N.numberWithDecimals((contentSize || 0) / 1024, 2)) + .replace("#3", L10N.numberWithDecimals((transferredSize || 0) / 1024, 2)) + .replace("#4", L10N.numberWithDecimals((millis || 0) / 1000, 2)) , "The current summary text is incorrect."); } }); |