1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Fix and update cleanupListOfValues tests

This commit is contained in:
GreLI
2018-09-16 20:58:12 +03:00
parent e7bdce66ed
commit ed75e56bde
2 changed files with 9 additions and 1 deletions

View File

@ -125,7 +125,7 @@ exports.fn = function(item, params) {
// if attribute value is "new"(only enable-background). // if attribute value is "new"(only enable-background).
else if (matchNew) { else if (matchNew) {
roundedListArr.push('new'); roundedListArr.push('new');
} else { } else if (elem) {
roundedListArr.push(elem); roundedListArr.push(elem);
} }

View File

@ -1,6 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<polygon stroke-dasharray="200.22222 200.22522" points="413.74712,290.95212 290.75632 , 343.89942 183.40744 ,263.8582523 199.05334, 130.871345 322.04442,77.92533 429.39122,157.96555 "/> <polygon stroke-dasharray="200.22222 200.22522" points="413.74712,290.95212 290.75632 , 343.89942 183.40744 ,263.8582523 199.05334, 130.871345 322.04442,77.92533 429.39122,157.96555 "/>
test test
<g fill="none" stroke-dasharray="8, 8" stroke-width="3">
<path d="M83 250c69-18 140-40 197-84 33-23 48-62 62-99 2-6 3-12 7-16"/>
<path stroke-dasharray="none" stroke-linejoin="round" d="M83 250c29-34 57-72 97-94 33-13 69-10 104-11 22 1 45 2 65 13"/>
</g>
</svg> </svg>
@@@ @@@
@ -8,4 +12,8 @@
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<polygon stroke-dasharray="200.222 200.225" points="413.747 290.952 290.756 343.899 183.407 263.858 199.053 130.871 322.044 77.925 429.391 157.966"/> <polygon stroke-dasharray="200.222 200.225" points="413.747 290.952 290.756 343.899 183.407 263.858 199.053 130.871 322.044 77.925 429.391 157.966"/>
test test
<g fill="none" stroke-dasharray="8 8" stroke-width="3">
<path d="M83 250c69-18 140-40 197-84 33-23 48-62 62-99 2-6 3-12 7-16"/>
<path stroke-dasharray="none" stroke-linejoin="round" d="M83 250c29-34 57-72 97-94 33-13 69-10 104-11 22 1 45 2 65 13"/>
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 467 B

After

Width:  |  Height:  |  Size: 1.0 KiB