diff options
Diffstat (limited to 'tests/unit/style/parsing/containment.rs')
-rw-r--r-- | tests/unit/style/parsing/containment.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/unit/style/parsing/containment.rs b/tests/unit/style/parsing/containment.rs deleted file mode 100644 index dbd02fd7067..00000000000 --- a/tests/unit/style/parsing/containment.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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 style_traits::ToCss; - -#[test] -fn contain_longhand_should_parse_correctly() { - use style::properties::longhands::contain; - use style::properties::longhands::contain::SpecifiedValue; - - let none = parse_longhand!(contain, "none"); - assert_eq!(none, SpecifiedValue::empty()); - - let strict = parse_longhand!(contain, "strict"); - assert_eq!(strict, contain::STRICT | contain::STRICT_BITS); - - let style_paint = parse_longhand!(contain, "style paint"); - assert_eq!(style_paint, contain::STYLE | contain::PAINT); - - assert_roundtrip_with_context!(contain::parse, "strict"); - assert_roundtrip_with_context!(contain::parse, "layout style paint"); - - // Assert that the `2px` is not consumed, which would trigger parsing failure in real use - assert_parser_exhausted!(contain::parse, "layout 2px", false); -} |