mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Only test expected origin when it is present
https://github.com/w3c/web-platform-tests/pull/2584
This commit is contained in:
parent
eee317352c
commit
7375e2cedd
3 changed files with 6 additions and 74 deletions
|
@ -38,7 +38,9 @@ function runURLTests(urltests) {
|
|||
}
|
||||
|
||||
assert_equals(url.href, expected.href, "href")
|
||||
assert_equals(url.origin, expected.origin, "origin")
|
||||
if ("origin" in expected) {
|
||||
assert_equals(url.origin, expected.origin, "origin")
|
||||
}
|
||||
assert_equals(url.protocol, expected.protocol, "protocol")
|
||||
assert_equals(url.username, expected.username, "username")
|
||||
assert_equals(url.password, expected.password, "password")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue