From 10ee812784ae3c7306209dbae215d2b253b96f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 27 Mar 2017 04:14:02 +0200 Subject: [PATCH] Fixup style unit tests --- components/style/properties/longhand/counters.mako.rs | 2 +- tests/unit/style/properties/serialization.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/style/properties/longhand/counters.mako.rs b/components/style/properties/longhand/counters.mako.rs index f87003c6da4..8e74d192ea1 100644 --- a/components/style/properties/longhand/counters.mako.rs +++ b/components/style/properties/longhand/counters.mako.rs @@ -251,7 +251,7 @@ use std::borrow::{Cow, ToOwned}; #[derive(Debug, Clone, PartialEq)] - pub struct SpecifiedValue(Vec<(String, specified::Integer)>); + pub struct SpecifiedValue(pub Vec<(String, specified::Integer)>); pub mod computed_value { use std::fmt; diff --git a/tests/unit/style/properties/serialization.rs b/tests/unit/style/properties/serialization.rs index 44cf18d8cd3..72296d9f98c 100644 --- a/tests/unit/style/properties/serialization.rs +++ b/tests/unit/style/properties/serialization.rs @@ -1173,13 +1173,14 @@ mod shorthand_serialization { mod counter_increment { pub use super::*; pub use style::properties::longhands::counter_increment::SpecifiedValue as CounterIncrement; + use style::values::specified::Integer; #[test] fn counter_increment_with_properties_should_serialize_correctly() { let mut properties = Vec::new(); - properties.push(("counter1".to_owned(), 1)); - properties.push(("counter2".to_owned(), -4)); + properties.push(("counter1".to_owned(), Integer::new(1))); + properties.push(("counter2".to_owned(), Integer::new(-4))); let counter_increment = CounterIncrement(properties); let counter_increment_css = "counter1 1 counter2 -4";