From 433dcefd646edba35b015fc4f567077a79d1d8ee Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 28 Dec 2023 17:51:19 +0000 Subject: [PATCH 1/9] refactor(convertPaths): clean up plugin (#1913) --- plugins/convertPathData.js | 125 +++++++++++-------------------------- 1 file changed, 36 insertions(+), 89 deletions(-) diff --git a/plugins/convertPathData.js b/plugins/convertPathData.js index 0ee7824ea..e8d8350e1 100644 --- a/plugins/convertPathData.js +++ b/plugins/convertPathData.js @@ -15,25 +15,15 @@ exports.name = 'convertPathData'; exports.description = 'optimizes path data: writes in shorter form, applies transformations'; -/** - * @type {(data: number[]) => number[]} - */ +/** @type {(data: number[]) => number[]} */ let roundData; -/** - * @type {number | false} - */ +/** @type {number | false} */ let precision; -/** - * @type {number} - */ +/** @type {number} */ let error; -/** - * @type {number} - */ +/** @type {number} */ let arcThreshold; -/** - * @type {number} - */ +/** @type {number} */ let arcTolerance; /** @@ -393,16 +383,17 @@ function filters( params, { isSafeToUseZ, maybeHasStrokeAndLinecap, hasMarkerMid }, ) { - var stringify = data2Path.bind(null, params), - relSubpoint = [0, 0], - pathBase = [0, 0], - prev = {}; + const stringify = data2Path.bind(null, params); + const relSubpoint = [0, 0]; + const pathBase = [0, 0]; + /** @type {any} */ + let prev = {}; /** @type {Point | undefined} */ - let qControlPoint; + let prevQControlPoint; path = path.filter(function (item, index, path) { - const qPoint = qControlPoint; - qControlPoint = undefined; + const qControlPoint = prevQControlPoint; + prevQControlPoint = undefined; let command = item.command; let data = item.args; @@ -415,9 +406,8 @@ function filters( if (command === 's') { sdata = [0, 0].concat(data); - // @ts-ignore - var pdata = prev.args, - n = pdata.length; + const pdata = prev.args; + const n = pdata.length; // (-x, -y) of the prev tangent point relative to the current point sdata[0] = pdata[n - 2] - pdata[n - 4]; @@ -464,16 +454,11 @@ function filters( nextLonghand; if ( - // @ts-ignore (prev.command == 'c' && - // @ts-ignore isConvex(prev.args) && - // @ts-ignore isArcPrev(prev.args, circle)) || - // @ts-ignore (prev.command == 'a' && prev.sdata && isArcPrev(prev.sdata, circle)) ) { - // @ts-ignore arcCurves.unshift(prev); // @ts-ignore arc.base = prev.base; @@ -481,7 +466,6 @@ function filters( arc.args[5] = arc.coords[0] - arc.base[0]; // @ts-ignore arc.args[6] = arc.coords[1] - arc.base[1]; - // @ts-ignore var prevData = prev.command == 'a' ? prev.sdata : prev.args; var prevAngle = findArcAngle(prevData, { center: [ @@ -498,7 +482,7 @@ function filters( // check if next curves are fitting the arc for ( var j = index; - (next = path[++j]) && ~'cs'.indexOf(next.command); + (next = path[++j]) && 'cs'.includes(next.command); ) { var nextData = next.args; @@ -574,7 +558,6 @@ function filters( relSubpoint[0] += prevArc.args[5] - prev.args[prev.args.length - 2]; // @ts-ignore relSubpoint[1] += prevArc.args[6] - prev.args[prev.args.length - 1]; - // @ts-ignore prev.command = 'a'; // @ts-ignore prev.args = prevArc.args; @@ -588,11 +571,7 @@ function filters( item.sdata = sdata.slice(); // preserve curve data for future checks } else if (arcCurves.length - 1 - hasPrev > 0) { // filter out consumed next items - path.splice.apply( - path, - // @ts-ignore - [index + 1, arcCurves.length - 1 - hasPrev].concat(output), - ); + path.splice(index + 1, arcCurves.length - 1 - hasPrev, ...output); } if (!arc) return false; command = 'a'; @@ -679,9 +658,7 @@ function filters( data = data.slice(-2); } else if ( command === 't' && - // @ts-ignore prev.command !== 'q' && - // @ts-ignore prev.command !== 't' ) { command = 'l'; @@ -716,39 +693,29 @@ function filters( params.collapseRepeated && hasMarkerMid === false && (command === 'm' || command === 'h' || command === 'v') && - // @ts-ignore prev.command && - // @ts-ignore command == prev.command.toLowerCase() && ((command != 'h' && command != 'v') || - // @ts-ignore prev.args[0] >= 0 == data[0] >= 0) ) { - // @ts-ignore prev.args[0] += data[0]; if (command != 'h' && command != 'v') { - // @ts-ignore prev.args[1] += data[1]; } // @ts-ignore prev.coords = item.coords; - // @ts-ignore path[index] = prev; return false; } // convert curves into smooth shorthands - // @ts-ignore if (params.curveSmoothShorthands && prev.command) { // curveto if (command === 'c') { // c + c → c + s if ( - // @ts-ignore prev.command === 'c' && - // @ts-ignore Math.abs(data[0] - -(prev.args[2] - prev.args[4])) < error && - // @ts-ignore Math.abs(data[1] - -(prev.args[3] - prev.args[5])) < error ) { command = 's'; @@ -757,11 +724,8 @@ function filters( // s + c → s + s else if ( - // @ts-ignore prev.command === 's' && - // @ts-ignore Math.abs(data[0] - -(prev.args[0] - prev.args[2])) < error && - // @ts-ignore Math.abs(data[1] - -(prev.args[1] - prev.args[3])) < error ) { command = 's'; @@ -770,9 +734,7 @@ function filters( // [^cs] + c → [^cs] + s else if ( - // @ts-ignore prev.command !== 'c' && - // @ts-ignore prev.command !== 's' && Math.abs(data[0]) < error && Math.abs(data[1]) < error @@ -786,11 +748,8 @@ function filters( else if (command === 'q') { // q + q → q + t if ( - // @ts-ignore prev.command === 'q' && - // @ts-ignore Math.abs(data[0] - (prev.args[2] - prev.args[0])) < error && - // @ts-ignore Math.abs(data[1] - (prev.args[3] - prev.args[1])) < error ) { command = 't'; @@ -798,12 +757,13 @@ function filters( } // t + q → t + t - else if ( - // @ts-ignore - prev.command === 't' - ) { - // @ts-ignore - const predictedControlPoint = reflectPoint(qPoint, item.base); + else if (prev.command === 't') { + const predictedControlPoint = reflectPoint( + // @ts-ignore + qControlPoint, + // @ts-ignore + item.base, + ); const realControlPoint = [ // @ts-ignore data[0] + item.base[0], @@ -837,14 +797,12 @@ function filters( return i === 0; }) ) { - // @ts-ignore path[index] = prev; return false; } // a 25,25 -30 0,1 0,0 if (command === 'a' && data[5] === 0 && data[6] === 0) { - // @ts-ignore path[index] = prev; return false; } @@ -874,7 +832,6 @@ function filters( // z resets coordinates relSubpoint[0] = pathBase[0]; relSubpoint[1] = pathBase[1]; - // @ts-ignore if (prev.command === 'Z' || prev.command === 'z') return false; } if ( @@ -890,14 +847,14 @@ function filters( if (command === 'q') { // @ts-ignore - qControlPoint = [data[0] + item.base[0], data[1] + item.base[1]]; + prevQControlPoint = [data[0] + item.base[0], data[1] + item.base[1]]; } else if (command === 't') { - if (qPoint) { + if (qControlPoint) { // @ts-ignore - qControlPoint = reflectPoint(qPoint, item.base); + prevQControlPoint = reflectPoint(qControlPoint, item.base); } else { // @ts-ignore - qControlPoint = item.coords; + prevQControlPoint = item.coords; } } prev = item; @@ -971,8 +928,9 @@ function convertToMixed(path, params) { prev.command.charCodeAt(0) > 96 && absoluteDataStr.length == relativeDataStr.length - 1 && (data[0] < 0 || - // @ts-ignore - (/^0\./.test(data[0]) && prev.args[prev.args.length - 1] % 1)) + (Math.floor(data[0]) === 0 && + !Number.isInteger(data[0]) && + prev.args[prev.args.length - 1] % 1)) )) ) { // @ts-ignore @@ -981,7 +939,6 @@ function convertToMixed(path, params) { } prev = item; - return true; }); @@ -1098,7 +1055,6 @@ function round(data) { * * @type {(data: number[]) => boolean} */ - function isCurveStraightLine(data) { // Get line equation a·x + b·y + c = 0 coefficients a, b (c = 0) by start and end points. var i = data.length - 2, @@ -1125,7 +1081,6 @@ function isCurveStraightLine(data) { */ function calculateSagitta(data) { if (data[3] === 1) return undefined; - const [rx, ry] = data; if (Math.abs(rx - ry) > error) return undefined; const chord = Math.sqrt(data[5] ** 2 + data[6] ** 2); @@ -1138,7 +1093,6 @@ function calculateSagitta(data) { * * @type {(item: PathDataItem, data: number[]) => PathDataItem} */ - function makeLonghand(item, data) { switch (item.command) { case 's': @@ -1160,20 +1114,19 @@ function makeLonghand(item, data) { * * @type {(point1: Point, point2: Point) => number} */ - function getDistance(point1, point2) { - return Math.hypot(point1[0] - point2[0], point1[1] - point2[1]); + return Math.sqrt((point1[0] - point2[0]) ** 2 + (point1[1] - point2[1]) ** 2); } /** - * Reflects point across another point + * Reflects point across another point. * - * @param {Point} input + * @param {Point} controlPoint * @param {Point} base * @returns {Point} */ -function reflectPoint(input, base) { - return [2 * base[0] - input[0], 2 * base[1] - input[1]]; +function reflectPoint(controlPoint, base) { + return [2 * base[0] - controlPoint[0], 2 * base[1] - controlPoint[1]]; } /** @@ -1183,7 +1136,6 @@ function reflectPoint(input, base) { * * @type {(curve: number[], t: number) => Point} */ - function getCubicBezierPoint(curve, t) { var sqrT = t * t, cubT = sqrT * t, @@ -1201,7 +1153,6 @@ function getCubicBezierPoint(curve, t) { * * @type {(curve: number[]) => undefined | Circle} */ - function findCircle(curve) { var midPoint = getCubicBezierPoint(curve, 1 / 2), m1 = [midPoint[0] / 2, midPoint[1] / 2], @@ -1242,7 +1193,6 @@ function findCircle(curve) { * * @type {(curve: number[], circle: Circle) => boolean} */ - function isArc(curve, circle) { var tolerance = Math.min( arcThreshold * error, @@ -1264,7 +1214,6 @@ function isArc(curve, circle) { * * @type {(curve: number[], circle: Circle) => boolean} */ - function isArcPrev(curve, circle) { return isArc(curve, { center: [circle.center[0] + curve[4], circle.center[1] + curve[5]], @@ -1277,7 +1226,6 @@ function isArcPrev(curve, circle) { * @type {(curve: number[], relCircle: Circle) => number} */ - function findArcAngle(curve, relCircle) { var x1 = -relCircle.center[0], y1 = -relCircle.center[1], @@ -1294,7 +1242,6 @@ function findArcAngle(curve, relCircle) { * * @type {(params: InternalParams, pathData: PathDataItem[]) => string} */ - function data2Path(params, pathData) { return pathData.reduce(function (pathString, item) { var strData = ''; From db05c5782a02b3c137800cb04098bb1ef5b552bf Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 28 Dec 2023 14:06:05 -0500 Subject: [PATCH 2/9] chore: Use idiomatic Jest patterns to assert exceptions (#1909) --- lib/svgo-node.test.js | 61 +++++++++++++---------------------------- lib/svgo.test.js | 8 +++--- test/coa/_index.test.js | 30 ++++++++------------ 3 files changed, 34 insertions(+), 65 deletions(-) diff --git a/lib/svgo-node.test.js b/lib/svgo-node.test.js index 1b474e4af..2cf23dff0 100644 --- a/lib/svgo-node.test.js +++ b/lib/svgo-node.test.js @@ -156,56 +156,33 @@ describe('loadConfig', () => { }); test('fails when specified config does not exist', async () => { - try { - await loadConfig('{}'); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/Cannot find module/); - } + await expect(loadConfig('{}')).rejects.toThrow(/Cannot find module/); }); test('fails when exported config not an object', async () => { - try { - await loadConfig(path.join(fixtures, 'invalid-null.js')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/Invalid config file/); - } - try { - await loadConfig(path.join(fixtures, 'invalid-array.js')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/Invalid config file/); - } - try { - await loadConfig(path.join(fixtures, 'invalid-string.js')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/Invalid config file/); - } + await expect( + loadConfig(path.join(fixtures, 'invalid-null.js')), + ).rejects.toThrow(/Invalid config file/); + await expect( + loadConfig(path.join(fixtures, 'invalid-array.js')), + ).rejects.toThrow(/Invalid config file/); + await expect( + loadConfig(path.join(fixtures, 'invalid-string.js')), + ).rejects.toThrow(/Invalid config file/); }); test('handles runtime errors properly', async () => { - try { - await loadConfig(path.join(fixtures, 'invalid-runtime.js')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/plugins is not defined/); - } - try { - await loadConfig(path.join(fixtures, 'invalid-runtime.mjs')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/plugins is not defined/); - } + await expect( + loadConfig(path.join(fixtures, 'invalid-runtime.js')), + ).rejects.toThrow(/plugins is not defined/); + await expect( + loadConfig(path.join(fixtures, 'invalid-runtime.mjs')), + ).rejects.toThrow(/plugins is not defined/); }); test('handles MODULE_NOT_FOUND properly', async () => { - try { - await loadConfig(path.join(fixtures, 'module-not-found.js')); - expect.fail('Config is loaded successfully'); - } catch (error) { - expect(error.message).toMatch(/Cannot find module 'unknown-module'/); - } + await expect( + loadConfig(path.join(fixtures, 'module-not-found.js')), + ).rejects.toThrow(/Cannot find module 'unknown-module'/); }); }); diff --git a/lib/svgo.test.js b/lib/svgo.test.js index 68fb8d7ea..468a894ab 100644 --- a/lib/svgo.test.js +++ b/lib/svgo.test.js @@ -267,13 +267,13 @@ test('plugin precision should override preset precision', () => { }); test('provides informative error in result', () => { + expect.assertions(6); const svg = ` `; try { optimize(svg, { path: 'test.svg' }); - expect(true).toEqual(false); } catch (error) { expect(error.name).toEqual('SvgoParserError'); expect(error.message).toEqual('test.svg:2:33: Unquoted attribute value'); @@ -285,13 +285,13 @@ test('provides informative error in result', () => { }); test('provides code snippet in rendered error', () => { + expect.assertions(1); const svg = ` `; try { optimize(svg, { path: 'test.svg' }); - expect(true).toEqual(false); } catch (error) { expect(error.toString()) .toEqual(`SvgoParserError: test.svg:2:29: Unquoted attribute value @@ -306,6 +306,7 @@ test('provides code snippet in rendered error', () => { }); test('supports errors without path', () => { + expect.assertions(1); const svg = ` @@ -321,7 +322,6 @@ test('supports errors without path', () => { `; try { optimize(svg); - expect(true).toEqual(false); } catch (error) { expect(error.toString()) .toEqual(`SvgoParserError: `); const stylesheet = collectStylesheet(root); - expect(computeStyle(stylesheet, getElementById(root, 'class'))).toEqual({ - fill: { type: 'static', inherited: false, value: 'red' }, - }); - expect(computeStyle(stylesheet, getElementById(root, 'two-classes'))).toEqual( + expect(computeStyle(stylesheet, getElementById(root, 'class'))).toStrictEqual( { - fill: { type: 'static', inherited: false, value: 'green' }, - stroke: { type: 'static', inherited: false, value: 'black' }, + fill: { type: 'static', inherited: false, value: 'red' }, }, ); - expect(computeStyle(stylesheet, getElementById(root, 'attribute'))).toEqual({ + expect( + computeStyle(stylesheet, getElementById(root, 'two-classes')), + ).toStrictEqual({ + fill: { type: 'static', inherited: false, value: 'green' }, + stroke: { type: 'static', inherited: false, value: 'black' }, + }); + expect( + computeStyle(stylesheet, getElementById(root, 'attribute')), + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'purple' }, }); expect( computeStyle(stylesheet, getElementById(root, 'inline-style')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'grey' }, }); - expect(computeStyle(stylesheet, getElementById(root, 'inheritance'))).toEqual( - { - fill: { type: 'static', inherited: true, value: 'yellow' }, - }, - ); + expect( + computeStyle(stylesheet, getElementById(root, 'inheritance')), + ).toStrictEqual({ + fill: { type: 'static', inherited: true, value: 'yellow' }, + }); expect( computeStyle(stylesheet, getElementById(root, 'nested-inheritance')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: true, value: 'blue' }, }); }); @@ -107,12 +111,12 @@ it('prioritizes different kinds of styles', () => { const stylesheet = collectStylesheet(root); expect( computeStyle(stylesheet, getElementById(root, 'complex-selector')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'red' }, }); expect( computeStyle(stylesheet, getElementById(root, 'override-selector')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'blue' }, }); expect( @@ -120,12 +124,12 @@ it('prioritizes different kinds of styles', () => { stylesheet, getElementById(root, 'attribute-over-inheritance'), ), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'orange' }, }); expect( computeStyle(stylesheet, getElementById(root, 'style-rule-over-attribute')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'blue' }, }); expect( @@ -133,7 +137,7 @@ it('prioritizes different kinds of styles', () => { stylesheet, getElementById(root, 'inline-style-over-style-rule'), ), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'purple' }, }); }); @@ -153,7 +157,7 @@ it('prioritizes important styles', () => { const stylesheet = collectStylesheet(root); expect( computeStyle(stylesheet, getElementById(root, 'complex-selector')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'green' }, }); expect( @@ -161,7 +165,7 @@ it('prioritizes important styles', () => { stylesheet, getElementById(root, 'style-rule-over-inline-style'), ), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'green' }, }); expect( @@ -169,7 +173,7 @@ it('prioritizes important styles', () => { stylesheet, getElementById(root, 'inline-style-over-style-rule'), ), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'purple' }, }); }); @@ -195,23 +199,29 @@ it('treats at-rules and pseudo-classes as dynamic styles', () => { `); const stylesheet = collectStylesheet(root); - expect(computeStyle(stylesheet, getElementById(root, 'media-query'))).toEqual( + expect( + computeStyle(stylesheet, getElementById(root, 'media-query')), + ).toStrictEqual({ + fill: { type: 'dynamic', inherited: false }, + }); + expect(computeStyle(stylesheet, getElementById(root, 'hover'))).toStrictEqual( { fill: { type: 'dynamic', inherited: false }, }, ); - expect(computeStyle(stylesheet, getElementById(root, 'hover'))).toEqual({ - fill: { type: 'dynamic', inherited: false }, - }); - expect(computeStyle(stylesheet, getElementById(root, 'inherited'))).toEqual({ + expect( + computeStyle(stylesheet, getElementById(root, 'inherited')), + ).toStrictEqual({ fill: { type: 'dynamic', inherited: true }, }); expect( computeStyle(stylesheet, getElementById(root, 'inherited-overriden')), - ).toEqual({ + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'blue' }, }); - expect(computeStyle(stylesheet, getElementById(root, 'static'))).toEqual({ + expect( + computeStyle(stylesheet, getElementById(root, 'static')), + ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'black' }, }); }); @@ -234,17 +244,19 @@ it('considers - - + + diff --git a/test/plugins/prefixIds.02.svg b/test/plugins/prefixIds.02.svg.txt similarity index 78% rename from test/plugins/prefixIds.02.svg rename to test/plugins/prefixIds.02.svg.txt index fe22dad7e..9b83f6560 100644 --- a/test/plugins/prefixIds.02.svg +++ b/test/plugins/prefixIds.02.svg.txt @@ -12,10 +12,10 @@ - + - + diff --git a/test/plugins/prefixIds.03.svg b/test/plugins/prefixIds.03.svg.txt similarity index 80% rename from test/plugins/prefixIds.03.svg rename to test/plugins/prefixIds.03.svg.txt index b87b25ece..655672ae1 100644 --- a/test/plugins/prefixIds.03.svg +++ b/test/plugins/prefixIds.03.svg.txt @@ -5,5 +5,5 @@ @@@ - + diff --git a/test/plugins/prefixIds.04.svg b/test/plugins/prefixIds.04.svg.txt similarity index 94% rename from test/plugins/prefixIds.04.svg rename to test/plugins/prefixIds.04.svg.txt index d3d475597..b8f18c023 100644 --- a/test/plugins/prefixIds.04.svg +++ b/test/plugins/prefixIds.04.svg.txt @@ -15,7 +15,7 @@ diff --git a/test/plugins/prefixIds.05.svg b/test/plugins/prefixIds.05.svg.txt similarity index 73% rename from test/plugins/prefixIds.05.svg rename to test/plugins/prefixIds.05.svg.txt index d7805dd5d..8e263e09a 100644 --- a/test/plugins/prefixIds.05.svg +++ b/test/plugins/prefixIds.05.svg.txt @@ -22,20 +22,20 @@ - + - + - + - - - + + + diff --git a/test/plugins/prefixIds.06.svg b/test/plugins/prefixIds.06.svg.txt similarity index 51% rename from test/plugins/prefixIds.06.svg rename to test/plugins/prefixIds.06.svg.txt index 9bd4f7643..5b93b949a 100644 --- a/test/plugins/prefixIds.06.svg +++ b/test/plugins/prefixIds.06.svg.txt @@ -29,10 +29,10 @@ - - - - + + + + diff --git a/test/plugins/prefixIds.07.svg b/test/plugins/prefixIds.07.svg.txt similarity index 78% rename from test/plugins/prefixIds.07.svg rename to test/plugins/prefixIds.07.svg.txt index add8a8d18..00903c3c6 100644 --- a/test/plugins/prefixIds.07.svg +++ b/test/plugins/prefixIds.07.svg.txt @@ -16,9 +16,9 @@ - + diff --git a/test/plugins/prefixIds.08.svg b/test/plugins/prefixIds.08.svg.txt similarity index 77% rename from test/plugins/prefixIds.08.svg rename to test/plugins/prefixIds.08.svg.txt index 1008b6cd2..74d7b0078 100644 --- a/test/plugins/prefixIds.08.svg +++ b/test/plugins/prefixIds.08.svg.txt @@ -16,10 +16,10 @@ - + @@@ diff --git a/test/plugins/prefixIds.09.svg b/test/plugins/prefixIds.09.svg.txt similarity index 100% rename from test/plugins/prefixIds.09.svg rename to test/plugins/prefixIds.09.svg.txt diff --git a/test/plugins/prefixIds.10.svg b/test/plugins/prefixIds.10.svg.txt similarity index 53% rename from test/plugins/prefixIds.10.svg rename to test/plugins/prefixIds.10.svg.txt index 7b4ce3188..f9a9ffe9d 100644 --- a/test/plugins/prefixIds.10.svg +++ b/test/plugins/prefixIds.10.svg.txt @@ -8,8 +8,8 @@ @@@ - - - + + + diff --git a/test/plugins/prefixIds.11.svg b/test/plugins/prefixIds.11.svg.txt similarity index 63% rename from test/plugins/prefixIds.11.svg rename to test/plugins/prefixIds.11.svg.txt index aad0aabde..3c6bf3821 100644 --- a/test/plugins/prefixIds.11.svg +++ b/test/plugins/prefixIds.11.svg.txt @@ -14,8 +14,8 @@ prefixIds should correctly handle url()s in style attribute, including multiple - - + + - + diff --git a/test/plugins/prefixIds.12.svg b/test/plugins/prefixIds.12.svg.txt similarity index 90% rename from test/plugins/prefixIds.12.svg rename to test/plugins/prefixIds.12.svg.txt index fb38f1f6d..e1886858a 100644 --- a/test/plugins/prefixIds.12.svg +++ b/test/plugins/prefixIds.12.svg.txt @@ -15,6 +15,6 @@ into multiple nodes due to XML comments. diff --git a/test/plugins/removeAttributesBySelector.01.svg b/test/plugins/removeAttributesBySelector.01.svg.txt similarity index 100% rename from test/plugins/removeAttributesBySelector.01.svg rename to test/plugins/removeAttributesBySelector.01.svg.txt diff --git a/test/plugins/removeAttributesBySelector.02.svg b/test/plugins/removeAttributesBySelector.02.svg.txt similarity index 100% rename from test/plugins/removeAttributesBySelector.02.svg rename to test/plugins/removeAttributesBySelector.02.svg.txt diff --git a/test/plugins/removeAttributesBySelector.03.svg b/test/plugins/removeAttributesBySelector.03.svg.txt similarity index 100% rename from test/plugins/removeAttributesBySelector.03.svg rename to test/plugins/removeAttributesBySelector.03.svg.txt diff --git a/test/plugins/removeAttrs.01.svg b/test/plugins/removeAttrs.01.svg.txt similarity index 100% rename from test/plugins/removeAttrs.01.svg rename to test/plugins/removeAttrs.01.svg.txt diff --git a/test/plugins/removeAttrs.02.svg b/test/plugins/removeAttrs.02.svg.txt similarity index 100% rename from test/plugins/removeAttrs.02.svg rename to test/plugins/removeAttrs.02.svg.txt diff --git a/test/plugins/removeAttrs.03.svg b/test/plugins/removeAttrs.03.svg.txt similarity index 100% rename from test/plugins/removeAttrs.03.svg rename to test/plugins/removeAttrs.03.svg.txt diff --git a/test/plugins/removeAttrs.04.svg b/test/plugins/removeAttrs.04.svg.txt similarity index 100% rename from test/plugins/removeAttrs.04.svg rename to test/plugins/removeAttrs.04.svg.txt diff --git a/test/plugins/removeAttrs.05.svg b/test/plugins/removeAttrs.05.svg.txt similarity index 100% rename from test/plugins/removeAttrs.05.svg rename to test/plugins/removeAttrs.05.svg.txt diff --git a/test/plugins/removeAttrs.06.svg b/test/plugins/removeAttrs.06.svg.txt similarity index 100% rename from test/plugins/removeAttrs.06.svg rename to test/plugins/removeAttrs.06.svg.txt diff --git a/test/plugins/removeComments.01.svg b/test/plugins/removeComments.01.svg.txt similarity index 100% rename from test/plugins/removeComments.01.svg rename to test/plugins/removeComments.01.svg.txt diff --git a/test/plugins/removeComments.02.svg b/test/plugins/removeComments.02.svg.txt similarity index 100% rename from test/plugins/removeComments.02.svg rename to test/plugins/removeComments.02.svg.txt diff --git a/test/plugins/removeComments.03.svg b/test/plugins/removeComments.03.svg.txt similarity index 100% rename from test/plugins/removeComments.03.svg rename to test/plugins/removeComments.03.svg.txt diff --git a/test/plugins/removeDesc.01.svg b/test/plugins/removeDesc.01.svg.txt similarity index 100% rename from test/plugins/removeDesc.01.svg rename to test/plugins/removeDesc.01.svg.txt diff --git a/test/plugins/removeDimensions.01.svg b/test/plugins/removeDimensions.01.svg.txt similarity index 100% rename from test/plugins/removeDimensions.01.svg rename to test/plugins/removeDimensions.01.svg.txt diff --git a/test/plugins/removeDimensions.02.svg b/test/plugins/removeDimensions.02.svg.txt similarity index 100% rename from test/plugins/removeDimensions.02.svg rename to test/plugins/removeDimensions.02.svg.txt diff --git a/test/plugins/removeDimensions.03.svg b/test/plugins/removeDimensions.03.svg.txt similarity index 100% rename from test/plugins/removeDimensions.03.svg rename to test/plugins/removeDimensions.03.svg.txt diff --git a/test/plugins/removeDimensions.04.svg b/test/plugins/removeDimensions.04.svg.txt similarity index 100% rename from test/plugins/removeDimensions.04.svg rename to test/plugins/removeDimensions.04.svg.txt diff --git a/test/plugins/removeDimensions.05.svg b/test/plugins/removeDimensions.05.svg.txt similarity index 100% rename from test/plugins/removeDimensions.05.svg rename to test/plugins/removeDimensions.05.svg.txt diff --git a/test/plugins/removeDoctype.01.svg b/test/plugins/removeDoctype.01.svg.txt similarity index 100% rename from test/plugins/removeDoctype.01.svg rename to test/plugins/removeDoctype.01.svg.txt diff --git a/test/plugins/removeEditorsNSData.01.svg b/test/plugins/removeEditorsNSData.01.svg.txt similarity index 100% rename from test/plugins/removeEditorsNSData.01.svg rename to test/plugins/removeEditorsNSData.01.svg.txt diff --git a/test/plugins/removeEditorsNSData.02.svg b/test/plugins/removeEditorsNSData.02.svg.txt similarity index 100% rename from test/plugins/removeEditorsNSData.02.svg rename to test/plugins/removeEditorsNSData.02.svg.txt diff --git a/test/plugins/removeElementsByAttr.01.svg b/test/plugins/removeElementsByAttr.01.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.01.svg rename to test/plugins/removeElementsByAttr.01.svg.txt diff --git a/test/plugins/removeElementsByAttr.02.svg b/test/plugins/removeElementsByAttr.02.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.02.svg rename to test/plugins/removeElementsByAttr.02.svg.txt diff --git a/test/plugins/removeElementsByAttr.03.svg b/test/plugins/removeElementsByAttr.03.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.03.svg rename to test/plugins/removeElementsByAttr.03.svg.txt diff --git a/test/plugins/removeElementsByAttr.04.svg b/test/plugins/removeElementsByAttr.04.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.04.svg rename to test/plugins/removeElementsByAttr.04.svg.txt diff --git a/test/plugins/removeElementsByAttr.05.svg b/test/plugins/removeElementsByAttr.05.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.05.svg rename to test/plugins/removeElementsByAttr.05.svg.txt diff --git a/test/plugins/removeElementsByAttr.06.svg b/test/plugins/removeElementsByAttr.06.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.06.svg rename to test/plugins/removeElementsByAttr.06.svg.txt diff --git a/test/plugins/removeElementsByAttr.07.svg b/test/plugins/removeElementsByAttr.07.svg.txt similarity index 100% rename from test/plugins/removeElementsByAttr.07.svg rename to test/plugins/removeElementsByAttr.07.svg.txt diff --git a/test/plugins/removeEmptyAttrs.01.svg b/test/plugins/removeEmptyAttrs.01.svg.txt similarity index 100% rename from test/plugins/removeEmptyAttrs.01.svg rename to test/plugins/removeEmptyAttrs.01.svg.txt diff --git a/test/plugins/removeEmptyAttrs.02.svg b/test/plugins/removeEmptyAttrs.02.svg.txt similarity index 100% rename from test/plugins/removeEmptyAttrs.02.svg rename to test/plugins/removeEmptyAttrs.02.svg.txt diff --git a/test/plugins/removeEmptyContainers.01.svg b/test/plugins/removeEmptyContainers.01.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.01.svg rename to test/plugins/removeEmptyContainers.01.svg.txt diff --git a/test/plugins/removeEmptyContainers.02.svg b/test/plugins/removeEmptyContainers.02.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.02.svg rename to test/plugins/removeEmptyContainers.02.svg.txt diff --git a/test/plugins/removeEmptyContainers.03.svg b/test/plugins/removeEmptyContainers.03.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.03.svg rename to test/plugins/removeEmptyContainers.03.svg.txt diff --git a/test/plugins/removeEmptyContainers.04.svg b/test/plugins/removeEmptyContainers.04.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.04.svg rename to test/plugins/removeEmptyContainers.04.svg.txt diff --git a/test/plugins/removeEmptyContainers.05.svg b/test/plugins/removeEmptyContainers.05.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.05.svg rename to test/plugins/removeEmptyContainers.05.svg.txt diff --git a/test/plugins/removeEmptyContainers.06.svg b/test/plugins/removeEmptyContainers.06.svg.txt similarity index 100% rename from test/plugins/removeEmptyContainers.06.svg rename to test/plugins/removeEmptyContainers.06.svg.txt diff --git a/test/plugins/removeEmptyText.01.svg b/test/plugins/removeEmptyText.01.svg.txt similarity index 100% rename from test/plugins/removeEmptyText.01.svg rename to test/plugins/removeEmptyText.01.svg.txt diff --git a/test/plugins/removeEmptyText.02.svg b/test/plugins/removeEmptyText.02.svg.txt similarity index 100% rename from test/plugins/removeEmptyText.02.svg rename to test/plugins/removeEmptyText.02.svg.txt diff --git a/test/plugins/removeEmptyText.03.svg b/test/plugins/removeEmptyText.03.svg.txt similarity index 100% rename from test/plugins/removeEmptyText.03.svg rename to test/plugins/removeEmptyText.03.svg.txt diff --git a/test/plugins/removeHiddenElems.01.svg b/test/plugins/removeHiddenElems.01.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.01.svg rename to test/plugins/removeHiddenElems.01.svg.txt diff --git a/test/plugins/removeHiddenElems.02.svg b/test/plugins/removeHiddenElems.02.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.02.svg rename to test/plugins/removeHiddenElems.02.svg.txt diff --git a/test/plugins/removeHiddenElems.03.svg b/test/plugins/removeHiddenElems.03.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.03.svg rename to test/plugins/removeHiddenElems.03.svg.txt diff --git a/test/plugins/removeHiddenElems.04.svg b/test/plugins/removeHiddenElems.04.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.04.svg rename to test/plugins/removeHiddenElems.04.svg.txt diff --git a/test/plugins/removeHiddenElems.05.svg b/test/plugins/removeHiddenElems.05.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.05.svg rename to test/plugins/removeHiddenElems.05.svg.txt diff --git a/test/plugins/removeHiddenElems.06.svg b/test/plugins/removeHiddenElems.06.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.06.svg rename to test/plugins/removeHiddenElems.06.svg.txt diff --git a/test/plugins/removeHiddenElems.07.svg b/test/plugins/removeHiddenElems.07.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.07.svg rename to test/plugins/removeHiddenElems.07.svg.txt diff --git a/test/plugins/removeHiddenElems.08.svg b/test/plugins/removeHiddenElems.08.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.08.svg rename to test/plugins/removeHiddenElems.08.svg.txt diff --git a/test/plugins/removeHiddenElems.09.svg b/test/plugins/removeHiddenElems.09.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.09.svg rename to test/plugins/removeHiddenElems.09.svg.txt diff --git a/test/plugins/removeHiddenElems.10.svg b/test/plugins/removeHiddenElems.10.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.10.svg rename to test/plugins/removeHiddenElems.10.svg.txt diff --git a/test/plugins/removeHiddenElems.11.svg b/test/plugins/removeHiddenElems.11.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.11.svg rename to test/plugins/removeHiddenElems.11.svg.txt diff --git a/test/plugins/removeHiddenElems.12.svg b/test/plugins/removeHiddenElems.12.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.12.svg rename to test/plugins/removeHiddenElems.12.svg.txt diff --git a/test/plugins/removeHiddenElems.13.svg b/test/plugins/removeHiddenElems.13.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.13.svg rename to test/plugins/removeHiddenElems.13.svg.txt diff --git a/test/plugins/removeHiddenElems.14.svg b/test/plugins/removeHiddenElems.14.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.14.svg rename to test/plugins/removeHiddenElems.14.svg.txt diff --git a/test/plugins/removeHiddenElems.15.svg b/test/plugins/removeHiddenElems.15.svg.txt similarity index 100% rename from test/plugins/removeHiddenElems.15.svg rename to test/plugins/removeHiddenElems.15.svg.txt diff --git a/test/plugins/removeMetadata.01.svg b/test/plugins/removeMetadata.01.svg.txt similarity index 100% rename from test/plugins/removeMetadata.01.svg rename to test/plugins/removeMetadata.01.svg.txt diff --git a/test/plugins/removeNonInheritableGroupAttrs.01.svg b/test/plugins/removeNonInheritableGroupAttrs.01.svg.txt similarity index 100% rename from test/plugins/removeNonInheritableGroupAttrs.01.svg rename to test/plugins/removeNonInheritableGroupAttrs.01.svg.txt diff --git a/test/plugins/removeNonInheritableGroupAttrs.02.svg b/test/plugins/removeNonInheritableGroupAttrs.02.svg.txt similarity index 100% rename from test/plugins/removeNonInheritableGroupAttrs.02.svg rename to test/plugins/removeNonInheritableGroupAttrs.02.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.01.svg b/test/plugins/removeOffCanvasPaths.01.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.01.svg rename to test/plugins/removeOffCanvasPaths.01.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.02.svg b/test/plugins/removeOffCanvasPaths.02.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.02.svg rename to test/plugins/removeOffCanvasPaths.02.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.03.svg b/test/plugins/removeOffCanvasPaths.03.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.03.svg rename to test/plugins/removeOffCanvasPaths.03.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.04.svg b/test/plugins/removeOffCanvasPaths.04.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.04.svg rename to test/plugins/removeOffCanvasPaths.04.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.05.svg b/test/plugins/removeOffCanvasPaths.05.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.05.svg rename to test/plugins/removeOffCanvasPaths.05.svg.txt diff --git a/test/plugins/removeOffCanvasPaths.06.svg b/test/plugins/removeOffCanvasPaths.06.svg.txt similarity index 100% rename from test/plugins/removeOffCanvasPaths.06.svg rename to test/plugins/removeOffCanvasPaths.06.svg.txt diff --git a/test/plugins/removeRasterImages.01.svg b/test/plugins/removeRasterImages.01.svg.txt similarity index 100% rename from test/plugins/removeRasterImages.01.svg rename to test/plugins/removeRasterImages.01.svg.txt diff --git a/test/plugins/removeRasterImages.02.svg b/test/plugins/removeRasterImages.02.svg.txt similarity index 100% rename from test/plugins/removeRasterImages.02.svg rename to test/plugins/removeRasterImages.02.svg.txt diff --git a/test/plugins/removeScriptElement.01.svg b/test/plugins/removeScriptElement.01.svg.txt similarity index 100% rename from test/plugins/removeScriptElement.01.svg rename to test/plugins/removeScriptElement.01.svg.txt diff --git a/test/plugins/removeScriptElement.02.svg b/test/plugins/removeScriptElement.02.svg.txt similarity index 100% rename from test/plugins/removeScriptElement.02.svg rename to test/plugins/removeScriptElement.02.svg.txt diff --git a/test/plugins/removeScriptElement.03.svg b/test/plugins/removeScriptElement.03.svg.txt similarity index 100% rename from test/plugins/removeScriptElement.03.svg rename to test/plugins/removeScriptElement.03.svg.txt diff --git a/test/plugins/removeScriptElement.04.svg b/test/plugins/removeScriptElement.04.svg.txt similarity index 100% rename from test/plugins/removeScriptElement.04.svg rename to test/plugins/removeScriptElement.04.svg.txt diff --git a/test/plugins/removeScriptElement.05.svg b/test/plugins/removeScriptElement.05.svg.txt similarity index 100% rename from test/plugins/removeScriptElement.05.svg rename to test/plugins/removeScriptElement.05.svg.txt diff --git a/test/plugins/removeStyleElement.01.svg b/test/plugins/removeStyleElement.01.svg.txt similarity index 100% rename from test/plugins/removeStyleElement.01.svg rename to test/plugins/removeStyleElement.01.svg.txt diff --git a/test/plugins/removeTitle.01.svg b/test/plugins/removeTitle.01.svg.txt similarity index 100% rename from test/plugins/removeTitle.01.svg rename to test/plugins/removeTitle.01.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.01.svg b/test/plugins/removeUnknownsAndDefaults.01.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.01.svg rename to test/plugins/removeUnknownsAndDefaults.01.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.02.svg b/test/plugins/removeUnknownsAndDefaults.02.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.02.svg rename to test/plugins/removeUnknownsAndDefaults.02.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.03.svg b/test/plugins/removeUnknownsAndDefaults.03.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.03.svg rename to test/plugins/removeUnknownsAndDefaults.03.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.04.svg b/test/plugins/removeUnknownsAndDefaults.04.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.04.svg rename to test/plugins/removeUnknownsAndDefaults.04.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.05.svg b/test/plugins/removeUnknownsAndDefaults.05.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.05.svg rename to test/plugins/removeUnknownsAndDefaults.05.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.06.svg b/test/plugins/removeUnknownsAndDefaults.06.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.06.svg rename to test/plugins/removeUnknownsAndDefaults.06.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.07.svg b/test/plugins/removeUnknownsAndDefaults.07.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.07.svg rename to test/plugins/removeUnknownsAndDefaults.07.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.08.svg b/test/plugins/removeUnknownsAndDefaults.08.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.08.svg rename to test/plugins/removeUnknownsAndDefaults.08.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.09.svg b/test/plugins/removeUnknownsAndDefaults.09.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.09.svg rename to test/plugins/removeUnknownsAndDefaults.09.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.10.svg b/test/plugins/removeUnknownsAndDefaults.10.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.10.svg rename to test/plugins/removeUnknownsAndDefaults.10.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.11.svg b/test/plugins/removeUnknownsAndDefaults.11.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.11.svg rename to test/plugins/removeUnknownsAndDefaults.11.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.12.svg b/test/plugins/removeUnknownsAndDefaults.12.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.12.svg rename to test/plugins/removeUnknownsAndDefaults.12.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.13.svg b/test/plugins/removeUnknownsAndDefaults.13.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.13.svg rename to test/plugins/removeUnknownsAndDefaults.13.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.14.svg b/test/plugins/removeUnknownsAndDefaults.14.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.14.svg rename to test/plugins/removeUnknownsAndDefaults.14.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.15.svg b/test/plugins/removeUnknownsAndDefaults.15.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.15.svg rename to test/plugins/removeUnknownsAndDefaults.15.svg.txt diff --git a/test/plugins/removeUnknownsAndDefaults.16.svg b/test/plugins/removeUnknownsAndDefaults.16.svg.txt similarity index 100% rename from test/plugins/removeUnknownsAndDefaults.16.svg rename to test/plugins/removeUnknownsAndDefaults.16.svg.txt diff --git a/test/plugins/removeUnusedNS.01.svg b/test/plugins/removeUnusedNS.01.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.01.svg rename to test/plugins/removeUnusedNS.01.svg.txt diff --git a/test/plugins/removeUnusedNS.02.svg b/test/plugins/removeUnusedNS.02.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.02.svg rename to test/plugins/removeUnusedNS.02.svg.txt diff --git a/test/plugins/removeUnusedNS.03.svg b/test/plugins/removeUnusedNS.03.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.03.svg rename to test/plugins/removeUnusedNS.03.svg.txt diff --git a/test/plugins/removeUnusedNS.04.svg b/test/plugins/removeUnusedNS.04.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.04.svg rename to test/plugins/removeUnusedNS.04.svg.txt diff --git a/test/plugins/removeUnusedNS.05.svg b/test/plugins/removeUnusedNS.05.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.05.svg rename to test/plugins/removeUnusedNS.05.svg.txt diff --git a/test/plugins/removeUnusedNS.06.svg b/test/plugins/removeUnusedNS.06.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.06.svg rename to test/plugins/removeUnusedNS.06.svg.txt diff --git a/test/plugins/removeUnusedNS.07.svg b/test/plugins/removeUnusedNS.07.svg.txt similarity index 100% rename from test/plugins/removeUnusedNS.07.svg rename to test/plugins/removeUnusedNS.07.svg.txt diff --git a/test/plugins/removeUselessDefs.01.svg b/test/plugins/removeUselessDefs.01.svg.txt similarity index 100% rename from test/plugins/removeUselessDefs.01.svg rename to test/plugins/removeUselessDefs.01.svg.txt diff --git a/test/plugins/removeUselessDefs.02.svg b/test/plugins/removeUselessDefs.02.svg.txt similarity index 100% rename from test/plugins/removeUselessDefs.02.svg rename to test/plugins/removeUselessDefs.02.svg.txt diff --git a/test/plugins/removeUselessDefs.03.svg b/test/plugins/removeUselessDefs.03.svg.txt similarity index 100% rename from test/plugins/removeUselessDefs.03.svg rename to test/plugins/removeUselessDefs.03.svg.txt diff --git a/test/plugins/removeUselessDefs.04.svg b/test/plugins/removeUselessDefs.04.svg.txt similarity index 100% rename from test/plugins/removeUselessDefs.04.svg rename to test/plugins/removeUselessDefs.04.svg.txt diff --git a/test/plugins/removeUselessDefs.05.svg b/test/plugins/removeUselessDefs.05.svg.txt similarity index 100% rename from test/plugins/removeUselessDefs.05.svg rename to test/plugins/removeUselessDefs.05.svg.txt diff --git a/test/plugins/removeUselessStrokeAndFill.01.svg b/test/plugins/removeUselessStrokeAndFill.01.svg.txt similarity index 100% rename from test/plugins/removeUselessStrokeAndFill.01.svg rename to test/plugins/removeUselessStrokeAndFill.01.svg.txt diff --git a/test/plugins/removeUselessStrokeAndFill.02.svg b/test/plugins/removeUselessStrokeAndFill.02.svg.txt similarity index 100% rename from test/plugins/removeUselessStrokeAndFill.02.svg rename to test/plugins/removeUselessStrokeAndFill.02.svg.txt diff --git a/test/plugins/removeUselessStrokeAndFill.03.svg b/test/plugins/removeUselessStrokeAndFill.03.svg.txt similarity index 100% rename from test/plugins/removeUselessStrokeAndFill.03.svg rename to test/plugins/removeUselessStrokeAndFill.03.svg.txt diff --git a/test/plugins/removeUselessStrokeAndFill.04.svg b/test/plugins/removeUselessStrokeAndFill.04.svg.txt similarity index 100% rename from test/plugins/removeUselessStrokeAndFill.04.svg rename to test/plugins/removeUselessStrokeAndFill.04.svg.txt diff --git a/test/plugins/removeUselessStrokeAndFill.05.svg b/test/plugins/removeUselessStrokeAndFill.05.svg.txt similarity index 100% rename from test/plugins/removeUselessStrokeAndFill.05.svg rename to test/plugins/removeUselessStrokeAndFill.05.svg.txt diff --git a/test/plugins/removeViewBox.01.svg b/test/plugins/removeViewBox.01.svg.txt similarity index 100% rename from test/plugins/removeViewBox.01.svg rename to test/plugins/removeViewBox.01.svg.txt diff --git a/test/plugins/removeViewBox.02.svg b/test/plugins/removeViewBox.02.svg.txt similarity index 100% rename from test/plugins/removeViewBox.02.svg rename to test/plugins/removeViewBox.02.svg.txt diff --git a/test/plugins/removeViewBox.03.svg b/test/plugins/removeViewBox.03.svg.txt similarity index 100% rename from test/plugins/removeViewBox.03.svg rename to test/plugins/removeViewBox.03.svg.txt diff --git a/test/plugins/removeViewBox.04.svg b/test/plugins/removeViewBox.04.svg.txt similarity index 100% rename from test/plugins/removeViewBox.04.svg rename to test/plugins/removeViewBox.04.svg.txt diff --git a/test/plugins/removeViewBox.05.svg b/test/plugins/removeViewBox.05.svg.txt similarity index 100% rename from test/plugins/removeViewBox.05.svg rename to test/plugins/removeViewBox.05.svg.txt diff --git a/test/plugins/removeXMLNS.01.svg b/test/plugins/removeXMLNS.01.svg.txt similarity index 100% rename from test/plugins/removeXMLNS.01.svg rename to test/plugins/removeXMLNS.01.svg.txt diff --git a/test/plugins/removeXMLProcInst.01.svg b/test/plugins/removeXMLProcInst.01.svg.txt similarity index 100% rename from test/plugins/removeXMLProcInst.01.svg rename to test/plugins/removeXMLProcInst.01.svg.txt diff --git a/test/plugins/removeXMLProcInst.02.svg b/test/plugins/removeXMLProcInst.02.svg.txt similarity index 100% rename from test/plugins/removeXMLProcInst.02.svg rename to test/plugins/removeXMLProcInst.02.svg.txt diff --git a/test/plugins/removeXlink.01.svg b/test/plugins/removeXlink.01.svg.txt similarity index 100% rename from test/plugins/removeXlink.01.svg rename to test/plugins/removeXlink.01.svg.txt diff --git a/test/plugins/removeXlink.02.svg b/test/plugins/removeXlink.02.svg.txt similarity index 100% rename from test/plugins/removeXlink.02.svg rename to test/plugins/removeXlink.02.svg.txt diff --git a/test/plugins/removeXlink.03.svg b/test/plugins/removeXlink.03.svg.txt similarity index 100% rename from test/plugins/removeXlink.03.svg rename to test/plugins/removeXlink.03.svg.txt diff --git a/test/plugins/removeXlink.04.svg b/test/plugins/removeXlink.04.svg.txt similarity index 100% rename from test/plugins/removeXlink.04.svg rename to test/plugins/removeXlink.04.svg.txt diff --git a/test/plugins/reusePaths.01.svg b/test/plugins/reusePaths.01.svg.txt similarity index 100% rename from test/plugins/reusePaths.01.svg rename to test/plugins/reusePaths.01.svg.txt diff --git a/test/plugins/reusePaths.02.svg b/test/plugins/reusePaths.02.svg.txt similarity index 100% rename from test/plugins/reusePaths.02.svg rename to test/plugins/reusePaths.02.svg.txt diff --git a/test/plugins/reusePaths.03.svg b/test/plugins/reusePaths.03.svg.txt similarity index 100% rename from test/plugins/reusePaths.03.svg rename to test/plugins/reusePaths.03.svg.txt diff --git a/test/plugins/reusePaths.04.svg b/test/plugins/reusePaths.04.svg.txt similarity index 100% rename from test/plugins/reusePaths.04.svg rename to test/plugins/reusePaths.04.svg.txt diff --git a/test/plugins/reusePaths.05.svg b/test/plugins/reusePaths.05.svg.txt similarity index 100% rename from test/plugins/reusePaths.05.svg rename to test/plugins/reusePaths.05.svg.txt diff --git a/test/plugins/reusePaths.06.svg b/test/plugins/reusePaths.06.svg.txt similarity index 100% rename from test/plugins/reusePaths.06.svg rename to test/plugins/reusePaths.06.svg.txt diff --git a/test/plugins/sortAttrs.01.svg b/test/plugins/sortAttrs.01.svg.txt similarity index 100% rename from test/plugins/sortAttrs.01.svg rename to test/plugins/sortAttrs.01.svg.txt diff --git a/test/plugins/sortAttrs.02.svg b/test/plugins/sortAttrs.02.svg.txt similarity index 100% rename from test/plugins/sortAttrs.02.svg rename to test/plugins/sortAttrs.02.svg.txt diff --git a/test/plugins/sortAttrs.03.svg b/test/plugins/sortAttrs.03.svg.txt similarity index 100% rename from test/plugins/sortAttrs.03.svg rename to test/plugins/sortAttrs.03.svg.txt diff --git a/test/plugins/sortAttrs.04.svg b/test/plugins/sortAttrs.04.svg.txt similarity index 100% rename from test/plugins/sortAttrs.04.svg rename to test/plugins/sortAttrs.04.svg.txt diff --git a/test/plugins/sortDefsChildren.01.svg b/test/plugins/sortDefsChildren.01.svg.txt similarity index 100% rename from test/plugins/sortDefsChildren.01.svg rename to test/plugins/sortDefsChildren.01.svg.txt