[librsvg: 2/7] Test that "transform: none" computes to an identity transform
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/7] Test that "transform: none" computes to an identity transform
- Date: Wed, 1 Sep 2021 00:59:51 +0000 (UTC)
commit 8afa001ba1b24baf2350de4b8925c2f5b6f8bb66
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Aug 31 17:48:57 2021 -0500
Test that "transform: none" computes to an identity transform
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/582>
src/transform.rs | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/transform.rs b/src/transform.rs
index 80bae8f6..40a7e57f 100644
--- a/src/transform.rs
+++ b/src/transform.rs
@@ -892,6 +892,14 @@ mod tests {
);
}
+ #[test]
+ fn none_transform_is_identity() {
+ assert_eq!(
+ parse_transform_prop("none").unwrap().to_transform(),
+ Transform::identity()
+ );
+ }
+
#[test]
fn test_parse_transform_property_matrix() {
let tp = TransformProperty::List(vec![TransformFunction::Matrix(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]