style: Ensure that precomputed pseudo-element declarations are correctly sorted.

This commit is contained in:
Emilio Cobos Álvarez 2017-02-08 18:08:19 +01:00
parent 6fe9fd2269
commit db26ef9acb
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 23 additions and 21 deletions

View file

@ -112,11 +112,9 @@ fn test_insert() {
fn test_get_universal_rules() {
thread_state::initialize(thread_state::LAYOUT);
let map = get_mock_map(&["*|*", "#foo > *|*", ".klass", "#id"]);
let mut decls = vec![];
map.get_universal_rules(&mut decls,
CascadeLevel::UserNormal,
CascadeLevel::UserImportant);
let decls = map.get_universal_rules(CascadeLevel::UserNormal,
CascadeLevel::UserImportant);
assert_eq!(decls.len(), 1);
}