mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Move mime classifier resources near the test.
This commit is contained in:
parent
4cc4e210b4
commit
306da57b07
102 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ use net::mime_classifier::as_string_option;
|
|||
fn test_sniff_mp4_matcher() {
|
||||
let matcher = Mp4Matcher;
|
||||
|
||||
let p = Path::new("../../tests/content/parsable_mime/video/mp4/test.mp4");
|
||||
let p = Path::new("../../tests/unit/net/parsable_mime/video/mp4/test.mp4");
|
||||
let mut file = File::open(&p);
|
||||
let read_result = file.read_to_end();
|
||||
match read_result {
|
||||
|
@ -32,7 +32,7 @@ fn test_sniff_full(filename_orig: &Path,type_string: &str,subtype_string: &str,
|
|||
let current_working_directory = os::getcwd().unwrap();
|
||||
println!("The current directory is {}", current_working_directory.display());
|
||||
|
||||
let mut filename = Path::new("../../tests/content/parsable_mime/");
|
||||
let mut filename = Path::new("../../tests/unit/net/parsable_mime/");
|
||||
|
||||
filename.push(filename_orig);
|
||||
let classifier = MIMEClassifier::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue