Update parser.js

This commit is contained in:
Andrea Bogazzi 2014-09-26 14:03:11 +02:00
parent f8e6ae9461
commit 10666e9006

View file

@ -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);
});