mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 20:34:45 +00:00
Update parser.js
This commit is contained in:
parent
f8e6ae9461
commit
10666e9006
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue