Lines Matching refs:AttrValue
6 use style::attr::{AttrValue, LengthPercentageOrAuto, parse_length};
24 match AttrValue::from_double(value, 0.0) { in test_parse_double()
25 AttrValue::Double(_, num) => assert_eq!(num, 43250f64), in test_parse_double()
33 match AttrValue::from_double(value, 0.0) { in test_parse_double_negative_prefix()
34 AttrValue::Double(_, num) => assert_eq!(num, -5.6f64), in test_parse_double_negative_prefix()
42 match AttrValue::from_double(value, 0.0) { in test_parse_double_positive_prefix()
43 AttrValue::Double(_, num) => assert_eq!(num, 5.6f64), in test_parse_double_positive_prefix()
51 match AttrValue::from_limited_i32(value, 0) { in test_from_limited_i32_should_be_default_when_less_than_0()
52 AttrValue::Int(_, 0) => (), in test_from_limited_i32_should_be_default_when_less_than_0()
59 match AttrValue::from_limited_i32(String::from("1"), 0) { in test_from_limited_i32_should_parse_a_uint_when_value_is_0_or_greater()
60 AttrValue::Int(_, 1) => (), in test_from_limited_i32_should_parse_a_uint_when_value_is_0_or_greater()
67 match AttrValue::from_limited_i32(String::from("parsed-value"), 0) { in test_from_limited_i32_should_keep_parsed_value_when_not_an_int()
68 AttrValue::Int(p, 0) => { in test_from_limited_i32_should_keep_parsed_value_when_not_an_int()