From 4603ec95813e2349baeb98cc76a6089241f01852 Mon Sep 17 00:00:00 2001 From: Ulrich Sossou Date: Mon, 18 May 2015 07:00:36 +0100 Subject: [PATCH] Replace empty values of stroke-dasharray in unit tests by 'none' --- test/unit/group.js | 2 +- test/unit/itext.js | 2 +- test/unit/path.js | 2 +- test/unit/path_group.js | 12 ++++++------ test/unit/rect.js | 2 +- test/unit/text.js | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/unit/group.js b/test/unit/group.js index ba963c8a..306a8edc 100644 --- a/test/unit/group.js +++ b/test/unit/group.js @@ -389,7 +389,7 @@ test('toObject without default values', function() { var group = makeGroupWith2Objects(); ok(typeof group.toSVG == 'function'); - var expectedSVG = '\n\n\n\n'; + var expectedSVG = '\n\n\n\n'; equal(group.toSVG(), expectedSVG); }); diff --git a/test/unit/itext.js b/test/unit/itext.js index ec687cc4..85d4147d 100644 --- a/test/unit/itext.js +++ b/test/unit/itext.js @@ -575,7 +575,7 @@ // because translate values differ if (!fabric.isLikelyNode) { - equal(iText.toSVG(), 'test foo bar-bazqux'); + equal(iText.toSVG(), 'test foo bar-bazqux'); } // TODO: more SVG tests here? diff --git a/test/unit/path.js b/test/unit/path.js index 74335d1b..f3ea408f 100644 --- a/test/unit/path.js +++ b/test/unit/path.js @@ -102,7 +102,7 @@ asyncTest('toSVG', function() { makePathObject(function(path) { ok(typeof path.toObject == 'function'); - deepEqual(path.toSVG(), '\n'); + deepEqual(path.toSVG(), '\n'); start(); }); }); diff --git a/test/unit/path_group.js b/test/unit/path_group.js index 11e9fe07..f42fc96e 100644 --- a/test/unit/path_group.js +++ b/test/unit/path_group.js @@ -30,14 +30,14 @@ 'paths': getPathObjects() }; - var REFERENCE_PATH_GROUP_SVG = '\n' + - '\n' + - '\n' + + var REFERENCE_PATH_GROUP_SVG = '\n' + + '\n' + + '\n' + '\n'; - var REFERENCE_PATH_GROUP_SVG_WITH_MATRIX = '\n' + - '\n' + - '\n' + + var REFERENCE_PATH_GROUP_SVG_WITH_MATRIX = '\n' + + '\n' + + '\n' + '\n'; function getPathElement(path) { diff --git a/test/unit/rect.js b/test/unit/rect.js index eaccefb2..58fd388f 100644 --- a/test/unit/rect.js +++ b/test/unit/rect.js @@ -141,7 +141,7 @@ var rect = new fabric.Rect({ width: 100, height: 100, rx: 20, ry: 30, strokeWidth: 0 }); var svg = rect.toSVG(); - equal(svg, '\n'); + equal(svg, '\n'); }); test('toObject without default values', function() { diff --git a/test/unit/text.js b/test/unit/text.js index c457de3e..9f8519e8 100644 --- a/test/unit/text.js +++ b/test/unit/text.js @@ -46,7 +46,7 @@ 'globalCompositeOperation': 'source-over' }; - var TEXT_SVG = '\t\n\t\tx\n\t\n'; + var TEXT_SVG = '\t\n\t\tx\n\t\n'; test('constructor', function() { ok(fabric.Text);