mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add validation code for MIME checkers
This commit is contained in:
parent
8950d7aa6d
commit
208bae7f2e
2 changed files with 54 additions and 0 deletions
|
@ -50,6 +50,12 @@ fn test_sniff_mp4_matcher_long() {
|
|||
assert!(matcher.matches(&data));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_validate_classifier() {
|
||||
let classifier = MIMEClassifier::new();
|
||||
classifier.validate().expect("Validation error")
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn test_sniff_with_flags(filename_orig: &path::Path,
|
||||
type_string: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue