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 url crate #10677

Merged
merged 2 commits into from Apr 18, 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

Next

added test for #10548

  • Loading branch information
yoava333 committed Apr 18, 2016
commit 36eb25161d7c1f78d81aa59204500d1860aed1fc
@@ -0,0 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use std::env;
use url::Url;

#[test]
fn load_htm() {
let mut path = env::current_dir().expect("didn't get working dir");
path.push("test.jpeg");

let canon_path = path.canonicalize().expect("file path doesn't exist");
let url = Url::from_file_path(canon_path);

assert!(url.is_ok());
}
@@ -20,6 +20,7 @@ extern crate util;

#[cfg(test)] mod cookie;
#[cfg(test)] mod data_loader;
#[cfg(test)] mod file_loader;
#[cfg(test)] mod fetch;
#[cfg(test)] mod mime_classifier;
#[cfg(test)] mod resource_thread;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.