@@ -31,7 +31,7 @@ describe("Svg to Image", function () {
3131 ) ;
3232
3333 referenceImg . onload = function ( ) {
34- svg2image . renderSvg ( twoColorSvg , null ) . then ( function ( image ) {
34+ svg2image . renderSvg ( twoColorSvg ) . then ( function ( image ) {
3535 // This fails in Chrome & Safari, possibly due to a bug with same origin policy stuff
3636 try {
3737 expect ( image ) . toImageDiffEqual ( referenceImg ) ;
@@ -63,7 +63,7 @@ describe("Svg to Image", function () {
6363 ) ;
6464
6565 referenceImg . onload = function ( ) {
66- svg2image . renderSvg ( twoColorSvg , null ) . then ( function ( image ) {
66+ svg2image . renderSvg ( twoColorSvg ) . then ( function ( image ) {
6767 // This fails in Safari, possibly due to a bug with same origin policy stuff
6868 try {
6969 expect ( image ) . toImageDiffEqual ( referenceImg ) ;
@@ -91,15 +91,15 @@ describe("Svg to Image", function () {
9191 return new OldImage ( ) ;
9292 } ) ;
9393
94- svg2image . renderSvg ( "svg" , null ) . then ( null , done ) ;
94+ svg2image . renderSvg ( "svg" ) . then ( null , done ) ;
9595 imageSpy . onerror ( ) ;
9696 expect ( true ) . toBe ( true ) ; // work around warning from jasmine that no expectation is given
9797 } ) ;
9898
9999 it ( "should return an image without event listeners attached" , function ( done ) {
100100 var anSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"></svg>' ;
101101
102- svg2image . renderSvg ( anSvg , null ) . then ( function ( image ) {
102+ svg2image . renderSvg ( anSvg ) . then ( function ( image ) {
103103 expect ( image . onerror ) . toBeNull ( ) ;
104104 expect ( image . onload ) . toBeNull ( ) ;
105105 } ) . catch ( function ( err ) {
0 commit comments