Remove the serialization tests

This commit is contained in:
tamamu 2017-04-10 20:09:33 +09:00
parent 4253d6390a
commit a864300a57

View file

@ -1246,55 +1246,4 @@ mod shorthand_serialization {
assert_eq!(counter_increment.to_css_string(), counter_increment_css);
}
}
#[test]
fn place_content_serialize_all_available_properties() {
use style::properties::longhands::align_content::SpecifiedValue as AlignContent;
use style::properties::longhands::justify_content::SpecifiedValue as JustifyContent;
let mut properties = Vec::new();
let align = AlignContent::stretch;
let justify = JustifyContent::center;
properties.push(PropertyDeclaration::AlignContent(align));
properties.push(PropertyDeclaration::JustifyContent(justify));
let serialization = shorthand_properties_to_string(properties);
assert_eq!(serialization, "place-content: stretch center;");
}
#[test]
fn place_self_serialize_all_available_properties() {
use style::properties::longhands::align_self::SpecifiedValue as AlignSelf;
use style::properties::longhands::justify_self::SpecifiedValue as JustifySelf;
let mut properties = Vec::new();
let align = AlignSelf::auto;
let justify = JustifySelf::baseline;
properties.push(PropertyDeclaration::AlignSelf(align));
properties.push(PropertyDeclaration::JustifySelf(justify));
let serialization = shorthand_properties_to_string(properties);
assert_eq!(serialization, "place-self: auto baseline;");
}
#[test]
fn place_items_serialize_all_available_properties() {
use style::properties::longhands::align_items::SpecifiedValue as AlignItems;
use style::properties::longhands::justify_items::SpecifiedValue as JustifyItems;
let mut properties = Vec::new();
let align = AlignItems::flex_start;
let justify = JustifyItems::baseline;
properties.push(PropertyDeclaration::AlignItems(align));
properties.push(PropertyDeclaration::JustifyItems(justify));
let serialization = shorthand_properties_to_string(properties);
assert_eq!(serialization, "place-items: flex-start baseline;");
}
}