Convert computed_value::T to SpecifiedValue in serialization.rs

This commit is contained in:
Nazım Can Altınova 2017-01-07 16:53:41 +03:00
parent 96cf81ad5d
commit 533ac6bdb4

View file

@ -14,8 +14,8 @@ pub use style_traits::ToCss;
#[test] #[test]
fn property_declaration_block_should_serialize_correctly() { fn property_declaration_block_should_serialize_correctly() {
use style::properties::longhands::overflow_x::computed_value::T as OverflowXValue; use style::properties::longhands::overflow_x::SpecifiedValue as OverflowXValue;
use style::properties::longhands::overflow_y::computed_value::T as OverflowYContainer; use style::properties::longhands::overflow_y::SpecifiedValue as OverflowYContainer;
let declarations = vec![ let declarations = vec![
(PropertyDeclaration::Width( (PropertyDeclaration::Width(
@ -72,8 +72,8 @@ mod shorthand_serialization {
mod overflow { mod overflow {
pub use super::*; pub use super::*;
use style::properties::longhands::overflow_x::computed_value::T as OverflowXValue; use style::properties::longhands::overflow_x::SpecifiedValue as OverflowXValue;
use style::properties::longhands::overflow_y::computed_value::T as OverflowYContainer; use style::properties::longhands::overflow_y::SpecifiedValue as OverflowYContainer;
#[test] #[test]
fn equal_overflow_properties_should_serialize_to_single_value() { fn equal_overflow_properties_should_serialize_to_single_value() {
@ -418,8 +418,8 @@ mod shorthand_serialization {
} }
mod list_style { mod list_style {
use style::properties::longhands::list_style_position::computed_value::T as ListStylePosition; use style::properties::longhands::list_style_position::SpecifiedValue as ListStylePosition;
use style::properties::longhands::list_style_type::computed_value::T as ListStyleType; use style::properties::longhands::list_style_type::SpecifiedValue as ListStyleType;
use style::values::Either; use style::values::Either;
use super::*; use super::*;
@ -536,10 +536,10 @@ mod shorthand_serialization {
fn transition_should_serialize_all_available_properties() { fn transition_should_serialize_all_available_properties() {
use euclid::point::Point2D; use euclid::point::Point2D;
use style::properties::animated_properties::TransitionProperty; use style::properties::animated_properties::TransitionProperty;
use style::properties::longhands::transition_duration::computed_value::T as DurationContainer; use style::properties::longhands::transition_duration::SpecifiedValue as DurationContainer;
use style::properties::longhands::transition_property::computed_value::T as PropertyContainer; use style::properties::longhands::transition_property::SpecifiedValue as PropertyContainer;
use style::properties::longhands::transition_timing_function::computed_value::T as TimingContainer; use style::properties::longhands::transition_timing_function::SpecifiedValue as TimingContainer;
use style::properties::longhands::transition_timing_function::computed_value::TransitionTimingFunction; use style::properties::longhands::transition_timing_function::TransitionTimingFunction;
use style::values::specified::Time as TimeContainer; use style::values::specified::Time as TimeContainer;
let property_name = DeclaredValue::Value( let property_name = DeclaredValue::Value(
@ -594,8 +594,8 @@ mod shorthand_serialization {
#[test] #[test]
fn flex_flow_should_serialize_all_available_properties() { fn flex_flow_should_serialize_all_available_properties() {
use style::properties::longhands::flex_direction::computed_value::T as FlexDirection; use style::properties::longhands::flex_direction::SpecifiedValue as FlexDirection;
use style::properties::longhands::flex_wrap::computed_value::T as FlexWrap; use style::properties::longhands::flex_wrap::SpecifiedValue as FlexWrap;
let mut properties = Vec::new(); let mut properties = Vec::new();
@ -1018,7 +1018,7 @@ mod shorthand_serialization {
mod scroll_snap_type { mod scroll_snap_type {
pub use super::*; pub use super::*;
use style::properties::longhands::scroll_snap_type_x::computed_value::T as ScrollSnapTypeXValue; use style::properties::longhands::scroll_snap_type_x::SpecifiedValue as ScrollSnapTypeXValue;
#[test] #[test]
fn should_serialize_to_empty_string_if_sub_types_not_equal() { fn should_serialize_to_empty_string_if_sub_types_not_equal() {