Fixup style unit tests

This commit is contained in:
Emilio Cobos Álvarez 2017-03-27 04:14:02 +02:00
parent 46c6b4e1f3
commit 10ee812784
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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";