Auto merge of #22555 - CYBAI:new-urlsearchparams, r=jdm

Construct URLSearchParams from array or object

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22554, fix #22556 and also fix #22557
- [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22555)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-12-26 08:36:00 -05:00 committed by GitHub
commit 7bc6c8d18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 53 additions and 67 deletions

View file

@ -1,51 +1,8 @@
[urlsearchparams-constructor.any.worker.html]
[Construct with object with two keys]
expected: FAIL
[Construct with object with NULL, non-ASCII, and surrogate keys]
expected: FAIL
[URLSearchParams constructor, {} as argument]
expected: FAIL
[Custom [Symbol.iterator\]]
expected: FAIL
[URLSearchParams constructor, DOMException as argument]
expected: FAIL
[Constructor with sequence of sequences of strings]
expected: FAIL
[Construct with object with +]
expected: FAIL
[Construct with array with two keys]
expected: FAIL
[urlsearchparams-constructor.any.html]
[Construct with object with two keys]
expected: FAIL
[Construct with object with NULL, non-ASCII, and surrogate keys]
expected: FAIL
[URLSearchParams constructor, {} as argument]
expected: FAIL
[Custom [Symbol.iterator\]]
expected: FAIL
[URLSearchParams constructor, DOMException as argument]
expected: FAIL
[Constructor with sequence of sequences of strings]
expected: FAIL
[Construct with object with +]
expected: FAIL
[Construct with array with two keys]
expected: FAIL

View file

@ -1,5 +0,0 @@
[send-entity-body-basic.htm]
type: testharness
[XMLHttpRequest: send() - data argument (1=2&3=4)]
expected: FAIL