Skip to content

Commit

Permalink
Add tets for feImage, clipPath, mask and pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Dec 9, 2023
1 parent e09a50a commit be38979
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/usvg/tests/files/preserve-id-fe-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions crates/usvg/tests/files/preserve-text-in-clip-path.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions crates/usvg/tests/files/preserve-text-in-mask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions crates/usvg/tests/files/preserve-text-in-pattern-expected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions crates/usvg/tests/files/preserve-text-in-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions crates/usvg/tests/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ fn preserve_id_filter() {
resave("preserve-id-filter");
}

// #[test]
// fn preserve_id_fe_image() {
// resave("preserve-id-fe-image");
// }

#[test]
fn generate_filter_id_function_v1() {
resave("generate-id-filter-function-v1");
Expand Down Expand Up @@ -133,6 +138,21 @@ fn preserve_text_on_path() {
resave_with_text("preserve-text-on-path");
}

// #[test]
// fn preserve_text_in_clip_path() {
// resave_with_text("preserve-text-in-clip-path");
// }

// #[test]
// fn preserve_text_in_mask() {
// resave_with_text("preserve-text-in-mask");
// }

#[test]
fn preserve_text_in_pattern() {
resave_with_text("preserve-text-in-pattern");
}

#[test]
fn preserve_text_simple_case() {
resave("preserve-text-simple-case");
Expand Down

0 comments on commit be38979

Please sign in to comment.