Skip to content

Commit

Permalink
Rewrite WPT runner (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Jul 14, 2023
1 parent b228574 commit b33514a
Show file tree
Hide file tree
Showing 5 changed files with 557 additions and 335 deletions.
6 changes: 6 additions & 0 deletions url/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ edition = "2018"
rust-version = "1.56"

[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bencher = "0.1"

Expand All @@ -34,6 +35,11 @@ debugger_visualizer = []
# Expose internal offsets of the URL.
expose_internals = []

[[test]]
name = "url_wpt"
path = "tests/wpt.rs"
harness = false

[[bench]]
name = "parse_url"
path = "benches/parse_url.rs"
Expand Down
260 changes: 0 additions & 260 deletions url/tests/data.rs

This file was deleted.

37 changes: 37 additions & 0 deletions url/tests/expected_failures.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
</> against <file://h/C:/a/b>
<file:\\\\//> against <about:blank>
<file:\\\\\\\\> against <about:blank>
<file:\\\\\\\\?fox> against <about:blank>
<file:\\\\\\\\#guppy> against <about:blank>
<file://spider///> against <about:blank>
<file:\\\\localhost//> against <about:blank>
<file://\\/localhost//cat> against <about:blank>
<file://localhost//a//../..//> against <about:blank>
</////mouse> against <file:///elephant>
<\\/localhost//pig> against <file://lion/>
<//localhost//pig> against <file://lion/>
</..//localhost//pig> against <file://lion/>
<C|> against <file://host/dir/file>
<C|> against <file://host/D:/dir1/dir2/file>
<C|#> against <file://host/dir/file>
<C|?> against <file://host/dir/file>
<C|/> against <file://host/dir/file>
<C|\n/> against <file://host/dir/file>
<C|\\> against <file://host/dir/file>
</c:/foo/bar> against <file://host/path>
<file://example.net/C:/> against <about:blank>
<file://1.2.3.4/C:/> against <about:blank>
<file://[1::8]/C:/> against <about:blank>
<C|/> against <file://host/>
</C:/> against <file://host/>
<file:C:/> against <file://host/>
<file:/C:/> against <file://host/>
<file://localhost//a//../..//foo> against <about:blank>
<file://localhost////foo> against <about:blank>
<file:////foo> against <about:blank>
<file:////one/two> against <file:///>
<////one/two> against <file:///>
<file:///.//> against <file:////>
<file:.//p> against <about:blank>
<file:/.//p> against <about:blank>
<https://x/?#\u{0}y> against <about:blank>
Loading

0 comments on commit b33514a

Please sign in to comment.