From 10666e9006af41d8224b53f2fff43667f44fbc7c Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Fri, 26 Sep 2014 14:03:11 +0200 Subject: [PATCH] Update parser.js --- test/unit/parser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/parser.js b/test/unit/parser.js index a1c71f88..897f9554 100644 --- a/test/unit/parser.js +++ b/test/unit/parser.js @@ -148,10 +148,11 @@ test('parseStyleAttribute with value normalization', function() { var element = fabric.document.createElement('path'); - element.setAttribute('style', 'fill:none'); + element.setAttribute('style', 'fill:none; stroke-dasharray: 2 0.4;'); var expectedObject = { - 'fill': '' + 'fill': '', + 'strokeDashArray': [2, 0.4] }; deepEqual(fabric.parseStyleAttribute(element), expectedObject); });