Skip to content

Commit 90c5f12

Browse files
authored
[svg2xml] Add tests to valid issue 24 (of upstream repo) (#32)
This validate the fix of StringIndexOutOfBoundsException previously thrown when doing SVG average gradient color computation.
1 parent e4ea051 commit 90c5f12

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ It contains the original `svg2xml` tool; it aims to improve it and to add the fo
2020
easy integration in JS programs
2121
- add [svg2js](#svg2js): convert an SVG file into a set of `mxGraph` JavaScript/TypeScript commands
2222

23-
**NOTE**: The main purpose of this repository is to provide the svg2js tool and to use it when developing [bpmn-visualization](https://https://github.com/process-analytics/bpmn-visualization-js).
23+
**NOTE**: The main purpose of this repository is to provide the `svg2js` tool and to use it when developing [bpmn-visualization](https://https://github.com/process-analytics/bpmn-visualization-js).
2424

2525
## Build
2626

src/test/java/com/mxgraph/svg2xml/Svg2XmlTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,11 @@ void convertToXml_files_from_two_folders_without_subfolders_files_given_ordered_
7878
);
7979
}
8080

81-
}
81+
@Test
82+
void issue_upstream_24() {
83+
Svg2Xml svg2Xml = newSvg2Xml();
84+
File destPath = destinationFolder("upstream_issue_24");
85+
svg2Xml.convertToXml(svgSourceFiles("upstream-issue-24/entry.svg"), destPath);
86+
}
87+
88+
}
Lines changed: 28 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)