summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/fetch/test_headers_common.js
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-14 18:11:24 -0400
committerGitHub <noreply@github.com>2018-04-14 18:11:24 -0400
commit9282781bdfa7168685ee3716e283735fd9095975 (patch)
tree17a157801ad2e82b7510b568f6a3cd58eeebc512 /dom/tests/mochitest/fetch/test_headers_common.js
parent8b779470cd4f0ccc3d8f3050bddc025101837f77 (diff)
parent9ee567082c6bdf949f6c02a7e6c2e8b7bfef6590 (diff)
downloadUXP-9282781bdfa7168685ee3716e283735fd9095975.tar
UXP-9282781bdfa7168685ee3716e283735fd9095975.tar.gz
UXP-9282781bdfa7168685ee3716e283735fd9095975.tar.lz
UXP-9282781bdfa7168685ee3716e283735fd9095975.tar.xz
UXP-9282781bdfa7168685ee3716e283735fd9095975.zip
Merge pull request #167 from janekptacijarabaci/fetch_headers_1
moebius#140: Fix: Fetch - headers should sort and combine
Diffstat (limited to 'dom/tests/mochitest/fetch/test_headers_common.js')
-rw-r--r--dom/tests/mochitest/fetch/test_headers_common.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/dom/tests/mochitest/fetch/test_headers_common.js b/dom/tests/mochitest/fetch/test_headers_common.js
index fe792b25b..8b17b6b12 100644
--- a/dom/tests/mochitest/fetch/test_headers_common.js
+++ b/dom/tests/mochitest/fetch/test_headers_common.js
@@ -213,12 +213,12 @@ function TestHeadersIterator() {
var value_iter = headers.values();
var entries_iter = headers.entries();
- arrayEquals(iterate(key_iter), ["foo", "foo", "foo2"], "Correct key iterator");
- arrayEquals(iterate(value_iter), ["bar", ehsanInflated, "baz2"], "Correct value iterator");
- arrayEquals(iterate(entries_iter), [["foo", "bar"], ["foo", ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
+ arrayEquals(iterate(key_iter), ["foo", "foo2"], "Correct key iterator");
+ arrayEquals(iterate(value_iter), ["bar, " + ehsanInflated, "baz2"], "Correct value iterator");
+ arrayEquals(iterate(entries_iter), [["foo", "bar, " + ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
- arrayEquals(iterateForOf(headers), [["foo", "bar"], ["foo", ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
- arrayEquals(iterateForOf(new Headers(headers)), [["foo", "bar"], ["foo", ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
+ arrayEquals(iterateForOf(headers), [["foo", "bar, " + ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
+ arrayEquals(iterateForOf(new Headers(headers)), [["foo", "bar, " + ehsanInflated], ["foo2", "baz2"]], "Correct entries iterator");
}
function runTest() {