mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Find failure.html relative to exe path, not cwd
This commit is contained in:
parent
4b0f6c3e5c
commit
2a1c450cdf
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ pub fn parse_url(str_url: &str, base_url: Option<Url>) -> Url {
|
|||
fail!("about:crash");
|
||||
}
|
||||
"failure" => {
|
||||
let mut path = os::getcwd();
|
||||
let mut path = os::self_exe_path().expect("can't get exe path");
|
||||
path.push("../src/test/html/failure.html");
|
||||
// FIXME (#1094): not the right way to transform a path
|
||||
~"file://" + path.display().to_str()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue