Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1c76bc

Browse files
committed
sub imagelayer->heatmaplayer, maplayer->contourlayer in tests
1 parent da63ed4 commit a1c76bc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

test/jasmine/tests/range_slider_test.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ describe('Rangeslider visibility property', function() {
422422
});
423423

424424
it('should clear traces in range plot when needed', function(done) {
425-
426425
function count(query) {
427426
return d3.select(getRangeSlider()).selectAll(query).size();
428427
}
@@ -468,38 +467,38 @@ describe('Rangeslider visibility property', function() {
468467
}]);
469468
})
470469
.then(function() {
471-
expect(count('g.imagelayer > g.hm')).toEqual(1);
470+
expect(count('g.heatmaplayer > g.hm')).toEqual(1);
472471

473472
return Plotly.restyle(gd, 'visible', false);
474473
})
475474
.then(function() {
476-
expect(count('g.imagelayer > g.hm')).toEqual(0);
475+
expect(count('g.heatmaplayer > g.hm')).toEqual(0);
477476

478477
return Plotly.restyle(gd, {
479478
visible: true,
480479
type: 'contour'
481480
});
482481
})
483482
.then(function() {
484-
expect(count('g.maplayer > g.contour')).toEqual(1);
483+
expect(count('g.contourlayer > g.contour')).toEqual(1);
485484

486485
return Plotly.restyle(gd, 'type', 'heatmap');
487486
})
488487
.then(function() {
489-
expect(count('g.imagelayer > g.hm')).toEqual(1);
490-
expect(count('g.maplayer > g.contour')).toEqual(0);
488+
expect(count('g.heatmaplayer > g.hm')).toEqual(1);
489+
expect(count('g.contourlayer > g.contour')).toEqual(0);
491490

492491
return Plotly.restyle(gd, 'type', 'contour');
493492
})
494493
.then(function() {
495-
expect(count('g.imagelayer > g.hm')).toEqual(0);
496-
expect(count('g.maplayer > g.contour')).toEqual(1);
494+
expect(count('g.heatmaplayer > g.hm')).toEqual(0);
495+
expect(count('g.contourlayer > g.contour')).toEqual(1);
497496

498497
return Plotly.deleteTraces(gd, [0]);
499498
})
500499
.then(function() {
501-
expect(count('g.imagelayer > g.hm')).toEqual(0);
502-
expect(count('g.maplayer > g.contour')).toEqual(0);
500+
expect(count('g.heatmaplayer > g.hm')).toEqual(0);
501+
expect(count('g.contourlayer > g.contour')).toEqual(0);
503502
})
504503
.catch(failTest)
505504
.then(done);

0 commit comments

Comments
 (0)