From 16cb51097f2681a1c859634a63b2915b18d52cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 4 Jun 2020 04:12:03 +0200 Subject: [PATCH] style: Fix some unit tests. We need to grow dependency by a pointer because of the parent chain for :is() / :where() unfortunately. --- tests/unit/style/size_of.rs | 2 +- tests/unit/style/stylist.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/style/size_of.rs b/tests/unit/style/size_of.rs index ed435345a283..7306cf059ef6 100644 --- a/tests/unit/style/size_of.rs +++ b/tests/unit/style/size_of.rs @@ -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, diff --git a/tests/unit/style/stylist.rs b/tests/unit/style/stylist.rs index 0d7511f05835..8836436c8be3 100644 --- a/tests/unit/style/stylist.rs +++ b/tests/unit/style/stylist.rs @@ -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()); }