Bug 1459436: Remove a useless unit test that no longer compiles. r=emilio
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 05 May 2018 17:40:55 +0200
changeset 473170 9a2eac450781b026b42c44ca8f0f92bb0846b6e2
parent 473169 fa28f84b96b717664e205dd126d7e27c9844f6ba
child 473173 86d103a429eb2fbb450f05af51e2afe0c5d54bdc
child 473176 19214ffe89a807e3738e4c33e2029ada96ca0edc
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1459436
milestone61.0a1
first release with
nightly linux32
9a2eac450781 / 61.0a1 / 20180505220904 / files
nightly linux64
9a2eac450781 / 61.0a1 / 20180505220904 / files
nightly mac
9a2eac450781 / 61.0a1 / 20180505220904 / files
nightly win32
9a2eac450781 / 61.0a1 / 20180505220904 / files
nightly win64
9a2eac450781 / 61.0a1 / 20180505220904 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1459436: Remove a useless unit test that no longer compiles. r=emilio We have WPT and integration tests for the functionality in mozilla-central. MozReview-Commit-ID: L0vdF3tfT83
servo/tests/unit/style/properties/serialization.rs
--- a/servo/tests/unit/style/properties/serialization.rs
+++ b/servo/tests/unit/style/properties/serialization.rs
@@ -918,36 +918,9 @@ mod shorthand_serialization {
             let shadow_decl = BoxShadowList(vec![shadow_val]);
             properties.push(PropertyDeclaration::BoxShadow(shadow_decl));
             let shadow_css = "box-shadow: 1px 2px 3px 4px;";
             let shadow = parse(|c, e, i| Ok(parse_property_declaration_list(c, e, i)), shadow_css).unwrap();
 
             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);
-        }
-    }
 }