diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/style/Cargo.toml | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/animation.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/background.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/border.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/box_.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/column.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/effects.rs | 4 | ||||
-rw-r--r-- | tests/unit/style/parsing/inherited_text.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/outline.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/position.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/text_overflow.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/transition_duration.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/parsing/transition_timing_function.rs | 2 | ||||
-rw-r--r-- | tests/unit/style/properties/serialization.rs | 4 |
14 files changed, 16 insertions, 16 deletions
diff --git a/tests/unit/style/Cargo.toml b/tests/unit/style/Cargo.toml index 65937bbac7e..8243129365b 100644 --- a/tests/unit/style/Cargo.toml +++ b/tests/unit/style/Cargo.toml @@ -24,6 +24,6 @@ servo_atoms = {path = "../../../components/atoms"} servo_config = {path = "../../../components/config"} servo_url = {path = "../../../components/url"} size_of_test = {path = "../../../components/size_of_test"} -style = {path = "../../../components/style"} +style = {path = "../../../components/style", features = ["servo"]} style_traits = {path = "../../../components/style_traits"} std_test_override = { path = "../../../components/std_test_override" } diff --git a/tests/unit/style/parsing/animation.rs b/tests/unit/style/parsing/animation.rs index c4057398855..9b70529f9be 100644 --- a/tests/unit/style/parsing/animation.rs +++ b/tests/unit/style/parsing/animation.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use servo_atoms::Atom; use style::parser::Parse; use style::properties::longhands::animation_name; diff --git a/tests/unit/style/parsing/background.rs b/tests/unit/style/parsing/background.rs index a8483ddd0f8..5b1bab7ad55 100644 --- a/tests/unit/style/parsing/background.rs +++ b/tests/unit/style/parsing/background.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::properties::longhands::background_size; use style::properties::longhands::{ background_attachment, background_clip, background_color, background_image, diff --git a/tests/unit/style/parsing/border.rs b/tests/unit/style/parsing/border.rs index 332c75f4b05..1dbee87b301 100644 --- a/tests/unit/style/parsing/border.rs +++ b/tests/unit/style/parsing/border.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::parser::Parse; use style::properties::longhands::{border_image_outset, border_image_repeat, border_image_slice}; use style::properties::longhands::{border_image_source, border_image_width}; diff --git a/tests/unit/style/parsing/box_.rs b/tests/unit/style/parsing/box_.rs index 3e763723200..a266957b22b 100644 --- a/tests/unit/style/parsing/box_.rs +++ b/tests/unit/style/parsing/box_.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style_traits::ToCss; #[test] diff --git a/tests/unit/style/parsing/column.rs b/tests/unit/style/parsing/column.rs index 844d6217784..c3b85710fc9 100644 --- a/tests/unit/style/parsing/column.rs +++ b/tests/unit/style/parsing/column.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style_traits::ToCss; #[test] diff --git a/tests/unit/style/parsing/effects.rs b/tests/unit/style/parsing/effects.rs index 9e1836d6667..2fdc80e5e12 100644 --- a/tests/unit/style/parsing/effects.rs +++ b/tests/unit/style/parsing/effects.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::properties::longhands::{perspective_origin, transform_origin}; use style_traits::ToCss; @@ -49,7 +49,7 @@ fn test_effects_parser_exhaustion() { #[test] fn test_parse_factor() { - use parsing::parse; + use crate::parsing::parse; use style::properties::longhands::filter; assert!(parse(filter::parse, "brightness(0)").is_ok()); diff --git a/tests/unit/style/parsing/inherited_text.rs b/tests/unit/style/parsing/inherited_text.rs index b26c930cb63..21119b5181f 100644 --- a/tests/unit/style/parsing/inherited_text.rs +++ b/tests/unit/style/parsing/inherited_text.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::values::generics::text::Spacing; #[test] diff --git a/tests/unit/style/parsing/outline.rs b/tests/unit/style/parsing/outline.rs index 70123c8227d..d38f93986a7 100644 --- a/tests/unit/style/parsing/outline.rs +++ b/tests/unit/style/parsing/outline.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style_traits::ToCss; #[test] diff --git a/tests/unit/style/parsing/position.rs b/tests/unit/style/parsing/position.rs index d97e79cbc64..66f2bbd80c6 100644 --- a/tests/unit/style/parsing/position.rs +++ b/tests/unit/style/parsing/position.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::{parse, parse_entirely}; +use crate::parsing::{parse, parse_entirely}; use style::parser::Parse; use style::values::specified::position::*; use style_traits::ToCss; diff --git a/tests/unit/style/parsing/text_overflow.rs b/tests/unit/style/parsing/text_overflow.rs index d694351750f..838e5d765fa 100644 --- a/tests/unit/style/parsing/text_overflow.rs +++ b/tests/unit/style/parsing/text_overflow.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style_traits::ToCss; #[test] diff --git a/tests/unit/style/parsing/transition_duration.rs b/tests/unit/style/parsing/transition_duration.rs index 0915d8225f5..3308a03915b 100644 --- a/tests/unit/style/parsing/transition_duration.rs +++ b/tests/unit/style/parsing/transition_duration.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::properties::longhands::transition_duration; #[test] diff --git a/tests/unit/style/parsing/transition_timing_function.rs b/tests/unit/style/parsing/transition_timing_function.rs index 46af0a5f7c3..f488f20e13b 100644 --- a/tests/unit/style/parsing/transition_timing_function.rs +++ b/tests/unit/style/parsing/transition_timing_function.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use parsing::parse; +use crate::parsing::parse; use style::properties::longhands::transition_timing_function; use style_traits::ToCss; diff --git a/tests/unit/style/properties/serialization.rs b/tests/unit/style/properties/serialization.rs index 72d7798ba68..9983631e5cb 100644 --- a/tests/unit/style/properties/serialization.rs +++ b/tests/unit/style/properties/serialization.rs @@ -2,7 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use properties::{parse, parse_input}; +use crate::properties::{parse, parse_input}; +use crate::stylesheets::block_from; use style::computed_values::display::T as Display; use style::properties::declaration_block::PropertyDeclarationBlock; use style::properties::parse_property_declaration_list; @@ -13,7 +14,6 @@ use style::values::specified::{BorderSideWidth, BorderStyle, Color}; use style::values::specified::{Length, LengthOrPercentage, LengthOrPercentageOrAuto}; use style::values::RGBA; use style_traits::ToCss; -use stylesheets::block_from; trait ToCssString { fn to_css_string(&self) -> String; |