mirror of
https://github.com/servo/servo.git
synced 2025-10-01 17:19:16 +01:00
Implement URL.canParse
Add an implementation of `URL.canParse` as a static method. See [here][1] for the specification. [1]: https://url.spec.whatwg.org/#dom-url-canparse Signed-off-by: Yutaro Ohno <yutaro.ono.418@gmail.com>
This commit is contained in:
parent
6b33738006
commit
239776a270
3 changed files with 24 additions and 44 deletions
|
@ -1,44 +0,0 @@
|
|||
[url-statics-canparse.any.html]
|
||||
[URL.canParse(undefined, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a:b, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(undefined, a:b)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a:/b, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(undefined, a:/b)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(https://test:test, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a, https://b/)]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[url-statics-canparse.any.worker.html]
|
||||
[URL.canParse(undefined, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a:b, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(undefined, a:b)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a:/b, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(undefined, a:/b)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(https://test:test, undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[URL.canParse(a, https://b/)]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue