mirror of
https://github.com/chmln/handlr.git
synced 2024-11-14 13:39:29 +01:00
Update desktop entry test case with mime types
This commit is contained in:
parent
865e00a6e5
commit
3676ed84d4
2 changed files with 5 additions and 2 deletions
|
@ -148,7 +148,9 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn complex_exec() {
|
fn complex_exec() {
|
||||||
let path = PathBuf::from("tests/cmus.desktop");
|
let entry = parse_file(Path::new("tests/cmus.desktop")).unwrap();
|
||||||
parse_file(&*path).unwrap();
|
assert_eq!(entry.mimes.len(), 2);
|
||||||
|
assert_eq!(entry.mimes[0].essence_str(), "audio/mp3");
|
||||||
|
assert_eq!(entry.mimes[1].essence_str(), "audio/ogg");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,3 +9,4 @@ Name=cmus-remote
|
||||||
Comment=Music player cmus-remote control
|
Comment=Music player cmus-remote control
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
Icon=cmus
|
Icon=cmus
|
||||||
|
MimeType=audio/mp3;audio/ogg;
|
||||||
|
|
Loading…
Reference in a new issue