@@ -724,8 +724,8 @@ describe('Core helper tests', function() {
724724
725725 document . body . removeChild ( div ) ;
726726 } ) ;
727-
728- it ( 'should leave styled height and width on canvas if explicitly set' , function ( ) {
727+
728+ it ( 'should leave styled height and width on canvas if explicitly set' , function ( ) {
729729 var chart = window . acquireChart ( { } , {
730730 canvas : {
731731 height : 200 ,
@@ -740,7 +740,7 @@ describe('Core helper tests', function() {
740740
741741 expect ( canvas . style . height ) . toBe ( '400px' ) ;
742742 expect ( canvas . style . width ) . toBe ( '400px' ) ;
743- } ) ;
743+ } ) ;
744744
745745 it ( 'Should get padding of parent as number (pixels) when defined as percent (returns incorrectly in IE11)' , function ( ) {
746746
@@ -752,23 +752,25 @@ describe('Core helper tests', function() {
752752
753753 // Inner DIV to have 10% padding of parent
754754 var innerDiv = document . createElement ( 'div' ) ;
755-
755+
756756 div . appendChild ( innerDiv ) ;
757757
758758 var canvas = document . createElement ( 'canvas' ) ;
759759 innerDiv . appendChild ( canvas ) ;
760760
761761 var container = canvas . parentNode ;
762762
763- //No padding
763+ // No padding
764764 expect ( helpers . calculatePadding ( container , 'padding-right' , container . clientWidth ) ) . toBe ( 0 ) ;
765765 expect ( helpers . getMaximumWidth ( canvas ) ) . toBe ( 300 ) ;
766766
767- innerDiv . style . padding = '10%' ; //test with percentage
767+ // test with percentage
768+ innerDiv . style . padding = '10%' ;
768769 expect ( helpers . calculatePadding ( container , 'padding-right' , container . clientWidth ) ) . toBe ( 30 ) ;
769770 expect ( helpers . getMaximumWidth ( canvas ) ) . toBe ( 240 ) ;
770771
771- innerDiv . style . padding = '10px' ; //test with pixels
772+ // test with pixels
773+ innerDiv . style . padding = '10px' ;
772774 expect ( helpers . calculatePadding ( container , 'padding-right' , container . clientWidth ) ) . toBe ( 10 ) ;
773775 expect ( helpers . getMaximumWidth ( canvas ) ) . toBe ( 280 ) ;
774776
0 commit comments