Bug 1352379 - Add a test for URLSearchParams and record<> CTOR, r=qdot

This commit is contained in:
Andrea Marchesini 2017-04-03 10:01:35 +02:00
Родитель 734fb9d343
Коммит e0b947bce4
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -298,5 +298,12 @@ function testCTORs() {
}
is(result, 43, "CTOR throws if the sequence doesn't contain exactly 2 elements");
var c = new URLSearchParams({ a: 'b', c: 42, d: null, e: [1,2,3], f: {a:42} });
is(c.get('a'), 'b', "CTOR with record<>");
is(c.get('c'), '42', "CTOR with record<>");
is(c.get('d'), 'null', "CTOR with record<>");
is(c.get('e'), [1,2,3].toString(), "CTOR with record<>");
is(c.get('f'), {a:42}.toString(), "CTOR with record<>");
runTest();
}