@@ -75,8 +75,8 @@ describe('Visible rangesliders', function() {
7575 expect ( + bg . getAttribute ( 'width' ) ) . toEqual ( expectedWidth ) ;
7676 expect ( + bg . getAttribute ( 'height' ) ) . toEqual ( 66 ) ;
7777
78- expect ( bg . getAttribute ( ' fill' ) ) . toBe ( 'rgb(250, 250, 250)' ) ;
79- expect ( bg . getAttribute ( ' stroke' ) ) . toBe ( 'rgb(0, 0, 0)' ) ;
78+ expect ( bg . style . fill ) . toBe ( 'rgb(250, 250, 250)' ) ;
79+ expect ( bg . style . stroke ) . toBe ( 'rgb(0, 0, 0)' ) ;
8080 expect ( + bg . getAttribute ( 'stroke-width' ) ) . toBe ( 2 ) ;
8181
8282 return Plotly . relayout ( gd , {
@@ -91,8 +91,8 @@ describe('Visible rangesliders', function() {
9191
9292 expect ( + bg . getAttribute ( 'height' ) ) . toEqual ( 32 ) ;
9393
94- expect ( bg . getAttribute ( ' fill' ) ) . toBe ( 'rgb(255, 255, 128)' ) ;
95- expect ( bg . getAttribute ( ' stroke' ) ) . toBe ( 'rgb(64, 64, 64)' ) ;
94+ expect ( bg . style . fill ) . toBe ( 'rgb(255, 255, 128)' ) ;
95+ expect ( bg . style . stroke ) . toBe ( 'rgb(64, 64, 64)' ) ;
9696 expect ( + bg . getAttribute ( 'stroke-width' ) ) . toBe ( 1 ) ;
9797 } )
9898 . then ( done , done . fail ) ;
@@ -366,8 +366,8 @@ describe('Visible rangesliders', function() {
366366 expect ( + maskMin . getAttribute ( 'width' ) ) . toEqual ( maskMinWidth ) ;
367367 expect ( + maskMax . getAttribute ( 'width' ) ) . toEqual ( maskMaxWidth ) ;
368368
369- expect ( bg . getAttribute ( ' fill' ) ) . toBe ( 'rgb(255, 0, 0)' ) ;
370- expect ( bg . getAttribute ( ' stroke' ) ) . toBe ( 'rgb(0, 0, 0)' ) ;
369+ expect ( bg . style . fill ) . toBe ( 'rgb(255, 0, 0)' ) ;
370+ expect ( bg . style . stroke ) . toBe ( 'rgb(0, 0, 0)' ) ;
371371 expect ( bg . getAttribute ( 'stroke-width' ) ) . toBe ( '2' ) ;
372372
373373 return Plotly . relayout ( gd , 'xaxis.rangeslider.bordercolor' , 'blue' ) ;
@@ -376,8 +376,8 @@ describe('Visible rangesliders', function() {
376376 expect ( + maskMin . getAttribute ( 'width' ) ) . toEqual ( maskMinWidth ) ;
377377 expect ( + maskMax . getAttribute ( 'width' ) ) . toEqual ( maskMaxWidth ) ;
378378
379- expect ( bg . getAttribute ( ' fill' ) ) . toBe ( 'rgb(255, 0, 0)' ) ;
380- expect ( bg . getAttribute ( ' stroke' ) ) . toBe ( 'rgb(0, 0, 255)' ) ;
379+ expect ( bg . style . fill ) . toBe ( 'rgb(255, 0, 0)' ) ;
380+ expect ( bg . style . stroke ) . toBe ( 'rgb(0, 0, 255)' ) ;
381381 expect ( bg . getAttribute ( 'stroke-width' ) ) . toBe ( '2' ) ;
382382
383383 return Plotly . relayout ( gd , 'xaxis.rangeslider.borderwidth' , 3 ) ;
@@ -386,8 +386,8 @@ describe('Visible rangesliders', function() {
386386 expect ( + maskMin . getAttribute ( 'width' ) ) . toEqual ( maskMinWidth ) ;
387387 expect ( + maskMax . getAttribute ( 'width' ) ) . toEqual ( maskMaxWidth ) ;
388388
389- expect ( bg . getAttribute ( ' fill' ) ) . toBe ( 'rgb(255, 0, 0)' ) ;
390- expect ( bg . getAttribute ( ' stroke' ) ) . toBe ( 'rgb(0, 0, 255)' ) ;
389+ expect ( bg . style . fill ) . toBe ( 'rgb(255, 0, 0)' ) ;
390+ expect ( bg . style . stroke ) . toBe ( 'rgb(0, 0, 255)' ) ;
391391 expect ( bg . getAttribute ( 'stroke-width' ) ) . toBe ( '3' ) ;
392392 } )
393393 . then ( done , done . fail ) ;
0 commit comments