Skip to content

Commit ef6efd7

Browse files
committed
Merge pull request #599 from n-riesco/fix-gl_plot_interact_test
test: fix bug in gl_plot_interact_test.js
2 parents 473d15b + 3c95db9 commit ef6efd7

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/jasmine/tests/gl_plot_interact_test.js

+6-9
Original file line numberDiff line numberDiff line change
@@ -548,16 +548,15 @@ describe('Test gl plot interactions', function() {
548548
});
549549

550550
describe('Test gl plot side effects', function() {
551-
describe('when present with rangeslider', function() {
552-
553-
var gd;
551+
var gd;
554552

555-
beforeEach(function() {
556-
gd = createGraphDiv();
557-
});
553+
beforeEach(function() {
554+
gd = createGraphDiv();
555+
});
558556

559-
afterEach(destroyGraphDiv);
557+
afterEach(destroyGraphDiv);
560558

559+
describe('when present with rangeslider', function() {
561560
it('should not draw the rangeslider', function(done) {
562561
var data = [{
563562
x: [1, 2, 3],
@@ -582,8 +581,6 @@ describe('Test gl plot side effects', function() {
582581
});
583582

584583
it('should be able to replot from a blank graph', function(done) {
585-
var gd = createGraphDiv();
586-
587584
function countCanvases(cnt) {
588585
var nodes = d3.selectAll('canvas');
589586
expect(nodes.size()).toEqual(cnt);

0 commit comments

Comments
 (0)