File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ describe('dom-to-react parser', function() {
130
130
131
131
132
132
it ( 'handles svg\'s with a viewBox' , function ( ) {
133
- var html = mocks . html . svg ;
133
+ var html = mocks . svg . simple ;
134
134
var reactElement = domToReact ( htmlToDOM ( html , { lowerCaseAttributeNames : false } ) ) ;
135
135
136
136
assert . deepEqual (
Original file line number Diff line number Diff line change 11
11
"img" : " <img src=\" http://stat.ic/img.jpg\" alt=\" Image\" />" ,
12
12
"void" : " <link/><meta/><img/><br/><hr/><input/>" ,
13
13
"comment" : " <!-- comment -->" ,
14
- "doctype" : " <!DOCTYPE html>" ,
15
- "svg" : " <svg viewBox=\" 0 0 512 512\" id=\" foo\" >Inner</svg>"
14
+ "doctype" : " <!DOCTYPE html>"
16
15
},
17
16
"svg" : {
17
+ "simple" : " <svg viewBox=\" 0 0 512 512\" id=\" foo\" >Inner</svg>" ,
18
18
"complex" : " <svg height=\" 400\" width=\" 450\" ><path id=\" lineAB\" d=\" M 100 350 l 150 -300\" stroke=\" red\" stroke-width=\" 3\" fill=\" none\" ></path><g stroke=\" black\" stroke-width=\" 3\" fill=\" black\" ><circle id=\" pointA\" cx=\" 100\" cy=\" 350\" r=\" 3\" ></circle></g><g font-size=\" 30\" font-family=\" sans-serif\" fill=\" black\" stroke=\" none\" text-anchor=\" middle\" ><text x=\" 100\" y=\" 350\" dx=\" -30\" >A</text></g>Your browser does not support inline SVG.</svg>"
19
19
}
20
20
}
You can’t perform that action at this time.
0 commit comments