Skip to content
Permalink
Browse files

Add test for empty css file check

  • Loading branch information...
GuillaumeGomez committed May 26, 2019
1 parent cfd754d commit 165a95b37151105c0822bc84d0939439f7b96b06
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/librustdoc/theme.rs
@@ -366,4 +366,10 @@ a {
get_differences(&other, &against, &mut ret);
assert_eq!(ret, vec![" Missing \"c\" rule".to_owned()]);
}

#[test]
fn check_empty_css() {
let events = load_css_events(&[]);
assert_eq!(events.len(), 0);
}
}

0 comments on commit 165a95b

Please sign in to comment.
You can’t perform that action at this time.