Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to rust-url 1.0 #9840

Merged
merged 6 commits into from Apr 23, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Only test expected origin when it is present

  • Loading branch information
SimonSapin committed Apr 23, 2016
commit 7375e2ceddd68884dc74fc50b5bf3db6f4b47d19
@@ -1,76 +1,4 @@
[url-constructor.html]
type: testharness
[Parsing: <file:/example.com/> against <http://example.org/foo/bar>]
expected: FAIL

[Parsing: <file:c:\\foo\\bar.html> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: < File:c|////foo\\bar.html> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <C|/foo/bar> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: </C|\\foo\\bar> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <//C|/foo/bar> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file:///foo/bar.txt> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file:///home/me> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <//> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <///> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <///test> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <test> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file:test> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file:/example.com/> against <about:blank>]
expected: FAIL

[Parsing: <//server/file> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <\\\\server\\file> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: </\\server/file> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file://test> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file://localhost> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file://localhost/> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file://localhost/test> against <file:///tmp/mock/path>]
expected: FAIL

[Parsing: <file:...> against <http://www.example.com/test>]
expected: FAIL

[Parsing: <file:..> against <http://www.example.com/test>]
expected: FAIL

[Parsing: <file:a> against <http://www.example.com/test>]
expected: FAIL

[Parsing: <h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg> against <about:blank>]
expected: FAIL
@@ -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")
@@ -38,7 +38,9 @@

var url = bURL(expected.input, expected.base)
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")
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.