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_charts-04.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_charts-04.js')
-rw-r--r-- | devtools/client/netmonitor/test/browser_net_charts-04.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/devtools/client/netmonitor/test/browser_net_charts-04.js b/devtools/client/netmonitor/test/browser_net_charts-04.js index 0d150c409..921701ae5 100644 --- a/devtools/client/netmonitor/test/browser_net_charts-04.js +++ b/devtools/client/netmonitor/test/browser_net_charts-04.js @@ -22,6 +22,10 @@ add_task(function* () { totals: { label1: value => "Hello " + L10N.numberWithDecimals(value, 2), label2: value => "World " + L10N.numberWithDecimals(value, 2) + }, + header: { + label1: "", + label2: "" } }); @@ -40,17 +44,17 @@ add_task(function* () { is(title.getAttribute("value"), "Table title", "The title node displays the correct text."); - is(rows.length, 1, "There should be 1 table chart row created."); + is(rows.length, 2, "There should be 1 table chart row and a 1 header created."); - ok(rows[0].querySelector(".table-chart-row-box.chart-colored-blob"), + ok(rows[1].querySelector(".table-chart-row-box.chart-colored-blob"), "A colored blob exists for the firt row."); - is(rows[0].querySelectorAll("label")[0].getAttribute("name"), "size", + is(rows[1].querySelectorAll("label")[0].getAttribute("name"), "size", "The first column of the first row exists."); - is(rows[0].querySelectorAll("label")[1].getAttribute("name"), "label", + is(rows[1].querySelectorAll("label")[1].getAttribute("name"), "label", "The second column of the first row exists."); - is(rows[0].querySelectorAll("label")[0].getAttribute("value"), "", + is(rows[1].querySelectorAll("label")[0].getAttribute("value"), "", "The first column of the first row displays the correct text."); - is(rows[0].querySelectorAll("label")[1].getAttribute("value"), + is(rows[1].querySelectorAll("label")[1].getAttribute("value"), L10N.getStr("tableChart.loading"), "The second column of the first row displays the correct text."); |