mirror of
https://github.com/servo/servo.git
synced 2025-09-13 16:38:20 +01:00
Use PropertyId instead of Atom for CSSStyleDeclaration::get_computed_style
This commit is contained in:
parent
fdc40592de
commit
58d452fa4e
9 changed files with 85 additions and 85 deletions
|
@ -101,7 +101,7 @@ fn test_insert() {
|
|||
let rules_list = get_mock_rules(&[".intro.foo", "#top"]);
|
||||
let mut selector_map = SelectorMap::new();
|
||||
selector_map.insert(rules_list[1][0].clone());
|
||||
assert_eq!(1, selector_map.id_hash.get(&atom!("top")).unwrap()[0].source_order);
|
||||
assert_eq!(1, selector_map.id_hash.get(&Atom::from("top")).unwrap()[0].source_order);
|
||||
selector_map.insert(rules_list[0][0].clone());
|
||||
assert_eq!(0, selector_map.class_hash.get(&Atom::from("intro")).unwrap()[0].source_order);
|
||||
assert!(selector_map.class_hash.get(&Atom::from("foo")).is_none());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue