scour/unittests
Cynthia Gauthier f4cca44faf Merge branch lp:~louis-simard/scour/rework. Summary of changes:
scour.py, scour.inkscape.py, scour.inx:
 * Add options --quiet, --enable-comment-stripping, --shorten-ids, --remove-metadata, --renderer-workaround.
scour.py:
 * Optimisations in time (so Scour runs faster) and space (so Scour allocates less memory, less often).
 * Change #E+# to #e#, #E-# to #e-#, 0.# to .# and -0.# into -.# in path/polygon/polyline data + lengths, if renderer workarounds are disabled. Use spaces instead of commas in path/polygon/polyline data. Use lower-case #rrggbb and #rgb instead of upper-case. All of this makes gzip work better, since the rest of SVG documents mostly has lower-case letters in tag names and spaces to separate XML attributes etc.
 * Fix a bug whereby an SVG document would become filled with black if all elements had the same fill color.
 * Fix a bug whereby a path's second command would not start at the right coordinates if the first command was a relative moveto 'm' with at least 1 implied lineto.
 * Fix a bug whereby a path's absolute lineto 'L' commands would not become the right relative lineto 'l' commands.
 * Allow the implicit linetos after a path's moveto 'M'/'m' to be converted into relative horizontal linetos 'h' and vertical 'v' too.
scour.inx:
 * Fix help typos. Make options more descriptive in the plugin option window. Add something about enable-group-collapsing requiring enable-id-stripping.
testscour.py:
 * Rework tests that relied on #E+#, #E-#, 0.# and -0.# so that they accept the changes to scour.py. Add unit tests for strip-xml-prolog, enable-comment-stripping and remove-metadata.
2010-06-15 20:58:57 -04:00
..
adobe.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
cdata.svg Added unit test for CDATA nodes 2009-08-05 22:53:51 -05:00
collapse-gradients-gradientUnits.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
collapse-gradients.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
collapse-same-path-points.svg Scour length values for most attributes. Fix removal of duplicate gradients again. Two more unittests 2009-08-03 12:23:41 -05:00
color-formats.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
comment-beside-xml-decl.svg Merge branch lp:~louis-simard/scour/rework. Summary of changes: 2010-06-15 20:58:57 -04:00
comments.svg Fix bug when DOCTYPE is present. Big performance improvement to makeWellFormed() function 2010-02-05 16:28:13 -06:00
consecutive-hlines.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
css-reference.svg Fix bug with polygon point parsing. Fix bug 368716: tiny CSS parser to find referenced elements in style element 2009-08-31 00:11:34 -05:00
doctype.svg Fix bug when DOCTYPE is present. Big performance improvement to makeWellFormed() function 2010-02-05 16:28:13 -06:00
dont-collapse-gradients.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
dont-convert-short-color-names.svg Added unittest for not converting short color names 2009-08-01 10:53:17 -05:00
duplicate-gradient-stops-pct.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
duplicate-gradient-stops.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
empty-g.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
empty-metadata.svg Prevent removal of metadata elements if they have only text nodes. Also added some unit tests. 2009-04-15 10:18:32 -05:00
empty-style.svg Fix Issue 479669: Handle empty styl elements 2009-11-09 21:27:26 -06:00
fill-none.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
font-styles.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
full-metadata.svg Merge branch lp:~louis-simard/scour/rework. Summary of changes: 2010-06-15 20:58:57 -04:00
gradient-default-attrs.svg Added inkscape extension files 2009-08-04 14:39:04 -05:00
groups-with-title-desc.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
ids-to-strip.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
important-groups-in-defs.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
inkscape.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
metadata-with-text.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
move-common-attributes-to-grandparent.svg Remove unused attributes from parent elements 2009-08-13 08:18:49 -05:00
move-common-attributes-to-parent.svg Fix removal of common attributes if parent has non-whitespace text nodes 2009-09-24 09:54:56 -05:00
nested-useless-groups.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
no-collapse-lines.svg Fix whitespace collapsing when it shouldn't on non-textual elements that have xml:space=preserve 2009-11-06 17:21:57 -06:00
path-abs-to-rel.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
path-bez-optimize.svg Add unit tests to reduce to shorthand curve path segments. Updated test script 2009-08-05 17:05:27 -05:00
path-elliptical-arc-parsing.svg Fix Bug 412754: Elliptical arc commands must have comma or whitespace separating 2009-08-12 23:41:09 -05:00
path-implicit-line.svg Fix Bug 519698: Do not collapse move commands together because they may have line segments 2010-03-27 11:41:19 -05:00
path-line-optimize.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
path-precision.svg Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests 2009-07-29 12:27:51 -05:00
path-quad-optimize.svg Add unit tests to reduce to shorthand curve path segments. Updated test script 2009-08-05 17:05:27 -05:00
path-simple-triangle.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
path-sn.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
path-truncate-zeros-calc.svg Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests 2009-07-29 12:27:51 -05:00
path-truncate-zeros.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
path-use-scientific-notation.svg Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests 2009-07-29 12:27:51 -05:00
path-with-closepath.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
polygon-coord-neg.svg Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
polygon-coord.svg Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
polygon.svg Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests 2009-07-29 12:27:51 -05:00
polyline-coord-neg.svg Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
polyline-coord.svg Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
quot-in-url.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
redundant-svg-namespace.svg Fix Bug 411062: typo of 'true'. Modify unit test to cover exercising the code. Update testscour.py for new indent_type option. 2009-08-09 15:04:50 -05:00
referenced-elements-1.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
referenced-font.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
refs-in-defs.svg Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
remove-duplicate-gradients.svg Prevent scour from trying to remove a duplicate gradient more than once 2009-08-01 11:59:54 -05:00
remove-unused-attributes-on-parent.svg Remove unused attributes from parent elements 2009-08-13 08:18:49 -05:00
scour-lengths.svg Remove unused attributes from parent elements 2009-08-13 08:18:49 -05:00
shorten-ids.svg Merge branch lp:~louis-simard/scour/rework. Summary of changes: 2010-06-15 20:58:57 -04:00
sodipodi.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
straight-curve.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
stroke-none.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
stroke-nowidth.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
stroke-transparent.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
unreferenced-font.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
unreferenced-linearGradient.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
unreferenced-pattern.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
unreferenced-radialGradient.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
utf8.svg Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
whitespace-important.svg Attempt to handle line endings in a cross-platform manner 2009-11-13 10:44:18 -06:00
whitespace-nested.svg Update release notes, add some misc unit tests I missed 2009-11-09 21:59:32 -06:00
xml-namespace-attrs.svg Fix Bug 436569: Get xlink:href prefix right in case of duplicate gradient 2009-09-27 19:53:34 -05:00
xml-ns-decl.svg Fix bug in remapping of namespace prefixes (was not actually remapping child elements of replaced elements 2009-08-12 10:04:40 -05:00
xml-well-formed.svg Fix prefixing namespace prefix declarations when not using the default namespace (XML serialization bug) 2009-08-12 09:49:22 -05:00