scour/unittests
Hurr Durr 3fc0877b7c Fix bug 603994, whereby a <style> stylesheet would not count as a reference towards gradients etc., if the stylesheet was a CDATA element surrounded by whitespace nodes.
Add unit tests for this.

Add some descriptions to the failure modes of some unit tests, which would fail without any message (if they failed, but right now they succeed! ;).
2010-07-11 16:16:45 -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
commonized-referenced-elements.svg Fix Bug 603988: do not commonize attributes if element is referenced elsewhere 2010-07-11 08:52:18 -07: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
group-creation.svg Implement the feature described in bug 598976: Create a <g> with the common attributes of a run of elements if there are 3 or more elements in the run. 2010-07-02 05:35:31 -04:00
group-no-creation.svg Implement the feature described in bug 598976: Create a <g> with the common attributes of a run of elements if there are 3 or more elements in the run. 2010-07-02 05:35:31 -04:00
groups-in-switch-with-id.svg Add unit tests for requiring a <g> in a <switch> if the original file has one. 2010-06-16 03:49:46 -04:00
groups-in-switch.svg Add unit tests for requiring a <g> in a <switch> if the original file has one. 2010-06-16 03:49:46 -04: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
overflow-marker.svg Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg 2010-07-11 11:18:26 -07:00
overflow-svg.svg Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg 2010-07-11 11:18:26 -07: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
style-cdata.svg Fix bug 603994, whereby a <style> stylesheet would not count as a reference towards gradients etc., if the stylesheet was a CDATA element surrounded by whitespace nodes. 2010-07-11 16:16:45 -04: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