mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fixup style unit tests
This commit is contained in:
parent
46c6b4e1f3
commit
10ee812784
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue