Lines Matching refs:parse

5 use parsing::parse;
13 assert_roundtrip_with_context!(clip::parse, "auto"); in test_clip()
14 assert_roundtrip_with_context!(clip::parse, "rect(1px, 2px, 3px, 4px)"); in test_clip()
15 assert_roundtrip_with_context!(clip::parse, "rect(1px, auto, auto, 4px)"); in test_clip()
16 assert_roundtrip_with_context!(clip::parse, "rect(auto, auto, auto, auto)"); in test_clip()
19 assert_roundtrip_with_context!(clip::parse, in test_clip()
22 assert_roundtrip_with_context!(clip::parse, in test_clip()
25 assert_roundtrip_with_context!(clip::parse, in test_clip()
28 assert_roundtrip_with_context!(clip::parse, in test_clip()
35 assert_parser_exhausted!(perspective_origin::parse, "1px 1px", true); in test_effects_parser_exhaustion()
36 assert_parser_exhausted!(transform_origin::parse, "1px 1px", true); in test_effects_parser_exhaustion()
38 assert_parser_exhausted!(perspective_origin::parse, "1px some-rubbish", false); in test_effects_parser_exhaustion()
39 assert_parser_exhausted!(transform_origin::parse, "1px some-rubbish", false); in test_effects_parser_exhaustion()
44 use parsing::parse; in test_parse_factor()
47 assert!(parse(filter::parse, "brightness(0)").is_ok()); in test_parse_factor()
48 assert!(parse(filter::parse, "brightness(55)").is_ok()); in test_parse_factor()
49 assert!(parse(filter::parse, "brightness(100)").is_ok()); in test_parse_factor()
51 assert!(parse(filter::parse, "contrast(0)").is_ok()); in test_parse_factor()
52 assert!(parse(filter::parse, "contrast(55)").is_ok()); in test_parse_factor()
53 assert!(parse(filter::parse, "contrast(100)").is_ok()); in test_parse_factor()
55 assert!(parse(filter::parse, "grayscale(0)").is_ok()); in test_parse_factor()
56 assert!(parse(filter::parse, "grayscale(55)").is_ok()); in test_parse_factor()
57 assert!(parse(filter::parse, "grayscale(100)").is_ok()); in test_parse_factor()
59 assert!(parse(filter::parse, "invert(0)").is_ok()); in test_parse_factor()
60 assert!(parse(filter::parse, "invert(55)").is_ok()); in test_parse_factor()
61 assert!(parse(filter::parse, "invert(100)").is_ok()); in test_parse_factor()
63 assert!(parse(filter::parse, "opacity(0)").is_ok()); in test_parse_factor()
64 assert!(parse(filter::parse, "opacity(55)").is_ok()); in test_parse_factor()
65 assert!(parse(filter::parse, "opacity(100)").is_ok()); in test_parse_factor()
67 assert!(parse(filter::parse, "sepia(0)").is_ok()); in test_parse_factor()
68 assert!(parse(filter::parse, "sepia(55)").is_ok()); in test_parse_factor()
69 assert!(parse(filter::parse, "sepia(100)").is_ok()); in test_parse_factor()
71 assert!(parse(filter::parse, "saturate(0)").is_ok()); in test_parse_factor()
72 assert!(parse(filter::parse, "saturate(55)").is_ok()); in test_parse_factor()
73 assert!(parse(filter::parse, "saturate(100)").is_ok()); in test_parse_factor()
76 assert!(parse(filter::parse, "brightness(-1)").is_err()); in test_parse_factor()
77 assert!(parse(filter::parse, "contrast(-1)").is_err()); in test_parse_factor()
78 assert!(parse(filter::parse, "grayscale(-1)").is_err()); in test_parse_factor()
79 assert!(parse(filter::parse, "invert(-1)").is_err()); in test_parse_factor()
80 assert!(parse(filter::parse, "opacity(-1)").is_err()); in test_parse_factor()
81 assert!(parse(filter::parse, "sepia(-1)").is_err()); in test_parse_factor()
82 assert!(parse(filter::parse, "saturate(-1)").is_err()); in test_parse_factor()
88 assert!(parse(box_shadow::parse, "1px 1px -1px").is_err());// for -ve values in blur_radius_should_not_accept_negavite_values()
89 assert!(parse(box_shadow::parse, "1px 1px 0").is_ok());// for zero in blur_radius_should_not_accept_negavite_values()
90 assert!(parse(box_shadow::parse, "1px 1px 1px").is_ok());// for +ve value in blur_radius_should_not_accept_negavite_values()