mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Move "is universal" logic from stylist.rs to selectors/parser.rs
This commit is contained in:
parent
390e688058
commit
685b9efed6
3 changed files with 16 additions and 15 deletions
|
@ -212,9 +212,9 @@ fn test_insert() {
|
|||
#[test]
|
||||
fn test_get_universal_rules() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
let (map, shared_lock) = get_mock_map(&["*|*", "#foo > *|*", ".klass", "#id"]);
|
||||
let (map, shared_lock) = get_mock_map(&["*|*", "#foo > *|*", "*|* > *|*", ".klass", "#id"]);
|
||||
|
||||
let decls = map.get_universal_rules(CascadeLevel::UserNormal);
|
||||
|
||||
assert_eq!(decls.len(), 1);
|
||||
assert_eq!(decls.len(), 1, "{:?}", decls);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue