chore: remove gtk4 dev-dependency bloating builds
This commit is contained in:
parent
702ea3ed5c
commit
7bb19f1b50
3 changed files with 1 additions and 72 deletions
|
|
@ -1,25 +1,7 @@
|
|||
use cosmic_freedesktop_icons::lookup;
|
||||
use gtk4::{IconLookupFlags, IconTheme, TextDirection};
|
||||
use speculoos::prelude::*;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[test]
|
||||
fn gtk_lookup() {
|
||||
gtk4::init().unwrap();
|
||||
let theme = IconTheme::new();
|
||||
|
||||
let x = theme.lookup_icon(
|
||||
"firefox",
|
||||
&[],
|
||||
24,
|
||||
1,
|
||||
TextDirection::None,
|
||||
IconLookupFlags::empty(),
|
||||
);
|
||||
|
||||
assert!(x.icon_name().is_some())
|
||||
}
|
||||
|
||||
// Linicon sometimes fails with theme that have unknown parents
|
||||
// This test only ensure we are running the correct function in the benchmarks
|
||||
// And results are identical.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue