mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -22,27 +22,21 @@ fn test_cubic_bezier() {
|
|||
);
|
||||
|
||||
// p1x and p2x values must be in range [0, 1]
|
||||
assert!(
|
||||
parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(-1, 0, 0, 0"
|
||||
)
|
||||
.is_err()
|
||||
);
|
||||
assert!(
|
||||
parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(0, 0, -1, 0"
|
||||
)
|
||||
.is_err()
|
||||
);
|
||||
assert!(
|
||||
parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(-1, 0, -1, 0"
|
||||
)
|
||||
.is_err()
|
||||
);
|
||||
assert!(parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(-1, 0, 0, 0"
|
||||
)
|
||||
.is_err());
|
||||
assert!(parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(0, 0, -1, 0"
|
||||
)
|
||||
.is_err());
|
||||
assert!(parse(
|
||||
transition_timing_function::parse,
|
||||
"cubic-bezier(-1, 0, -1, 0"
|
||||
)
|
||||
.is_err());
|
||||
|
||||
assert!(parse(transition_timing_function::parse, "cubic-bezier(2, 0, 0, 0").is_err());
|
||||
assert!(parse(transition_timing_function::parse, "cubic-bezier(0, 0, 2, 0").is_err());
|
||||
|
|
|
@ -205,12 +205,10 @@ fn test_insert() {
|
|||
.unwrap()[0]
|
||||
.source_order
|
||||
);
|
||||
assert!(
|
||||
selector_map
|
||||
.class_hash
|
||||
.get(&Atom::from("intro"), QuirksMode::NoQuirks)
|
||||
.is_none()
|
||||
);
|
||||
assert!(selector_map
|
||||
.class_hash
|
||||
.get(&Atom::from("intro"), QuirksMode::NoQuirks)
|
||||
.is_none());
|
||||
}
|
||||
|
||||
fn mock_stylist() -> Stylist {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue