Skip to content

Commit

Permalink
style: Fix some unit tests.
Browse files Browse the repository at this point in the history
We need to grow dependency by a pointer because of the parent chain for
:is() / :where() unfortunately.
  • Loading branch information
emilio committed Jun 4, 2020
1 parent 762abba commit 16cb510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/unit/style/size_of.rs
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/style/stylist.rs
Expand Up @@ -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());
}

Expand Down

0 comments on commit 16cb510

Please sign in to comment.