mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove the serialization tests
This commit is contained in:
parent
4253d6390a
commit
a864300a57
1 changed files with 0 additions and 51 deletions
|
@ -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;");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue