Skip to content

Commit 165a95b

Browse files
Add test for empty css file check
1 parent cfd754d commit 165a95b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/theme.rs

+6
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,10 @@ a {
366366
get_differences(&other, &against, &mut ret);
367367
assert_eq!(ret, vec![" Missing \"c\" rule".to_owned()]);
368368
}
369+
370+
#[test]
371+
fn check_empty_css() {
372+
let events = load_css_events(&[]);
373+
assert_eq!(events.len(), 0);
374+
}
369375
}

0 commit comments

Comments
 (0)