Skip to content

Commit

Permalink
Fixup style unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Mar 27, 2017
1 parent 46c6b4e commit 10ee812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/style/properties/longhand/counters.mako.rs
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/style/properties/serialization.rs
Expand Up @@ -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";
Expand Down

0 comments on commit 10ee812

Please sign in to comment.