diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-05-05 17:40:55 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-05-05 18:53:53 +0200 |
commit | 953ba58b68e82ce140d34a8253c5ec7f96634b80 (patch) | |
tree | ba89b087dd9fa64b2dc4654c05dae73f2dcfba21 /tests | |
parent | 921c3892473ca49bba42ff0ab9b9feb3b913a91d (diff) | |
download | servo-953ba58b68e82ce140d34a8253c5ec7f96634b80.tar.gz servo-953ba58b68e82ce140d34a8253c5ec7f96634b80.zip |
style: Remove a useless unit test that no longer compiles.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/style/properties/serialization.rs | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/tests/unit/style/properties/serialization.rs b/tests/unit/style/properties/serialization.rs index e274d8a2a6a..e7b5689e05f 100644 --- a/tests/unit/style/properties/serialization.rs +++ b/tests/unit/style/properties/serialization.rs @@ -7,7 +7,7 @@ use style::computed_values::display::T as Display; use style::properties::{PropertyDeclaration, Importance}; use style::properties::declaration_block::PropertyDeclarationBlock; use style::properties::parse_property_declaration_list; -use style::values::{CustomIdent, RGBA}; +use style::values::RGBA; use style::values::specified::{BorderStyle, BorderSideWidth, Color}; use style::values::specified::{Length, LengthOrPercentage, LengthOrPercentageOrAuto}; use style::values::specified::NoCalcLength; @@ -890,31 +890,4 @@ mod shorthand_serialization { assert_eq!(shadow.to_css_string(), shadow_css); } } - - 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((CustomIdent("counter1".into()), Integer::new(1))); - properties.push((CustomIdent("counter2".into()), Integer::new(-4))); - - let counter_increment = CounterIncrement::new(properties); - let counter_increment_css = "counter1 1 counter2 -4"; - - assert_eq!(counter_increment.to_css_string(), counter_increment_css); - } - - #[test] - fn counter_increment_without_properties_should_serialize_correctly() { - let counter_increment = CounterIncrement::new(Vec::new()); - let counter_increment_css = "none"; - - assert_eq!(counter_increment.to_css_string(), counter_increment_css); - } - } } |