mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Fix some unit tests.
We need to grow dependency by a pointer because of the parent chain for :is() / :where() unfortunately.
This commit is contained in:
parent
762abbaf9f
commit
16cb51097f
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ use selectors::parser::{SelectorParseError, SelectorParseErrorKind};
|
|||
use style::invalidation::element::invalidation_map::Dependency;
|
||||
use style::properties;
|
||||
|
||||
size_of_test!(test_size_of_dependency, Dependency, 16);
|
||||
size_of_test!(test_size_of_dependency, Dependency, 24);
|
||||
|
||||
size_of_test!(
|
||||
test_size_of_property_declaration,
|
||||
|
|
|
@ -201,13 +201,13 @@ fn test_insert() {
|
|||
0,
|
||||
selector_map
|
||||
.class_hash
|
||||
.get(&Atom::from("foo"), QuirksMode::NoQuirks)
|
||||
.get(&Atom::from("intro"), QuirksMode::NoQuirks)
|
||||
.unwrap()[0]
|
||||
.source_order
|
||||
);
|
||||
assert!(selector_map
|
||||
.class_hash
|
||||
.get(&Atom::from("intro"), QuirksMode::NoQuirks)
|
||||
.get(&Atom::from("foo"), QuirksMode::NoQuirks)
|
||||
.is_none());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue