From 3c95db9decaa00a48ab723f179d3bd8d6b04794c Mon Sep 17 00:00:00 2001 From: Nicolas Riesco Date: Thu, 2 Jun 2016 17:07:07 +0100 Subject: [PATCH] test: fix bug in gl_plot_interact_test.js --- test/jasmine/tests/gl_plot_interact_test.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/jasmine/tests/gl_plot_interact_test.js b/test/jasmine/tests/gl_plot_interact_test.js index 1b274f95e21..eb6b3fec10a 100644 --- a/test/jasmine/tests/gl_plot_interact_test.js +++ b/test/jasmine/tests/gl_plot_interact_test.js @@ -548,16 +548,15 @@ describe('Test gl plot interactions', function() { }); describe('Test gl plot side effects', function() { - describe('when present with rangeslider', function() { - - var gd; + var gd; - beforeEach(function() { - gd = createGraphDiv(); - }); + beforeEach(function() { + gd = createGraphDiv(); + }); - afterEach(destroyGraphDiv); + afterEach(destroyGraphDiv); + describe('when present with rangeslider', function() { it('should not draw the rangeslider', function(done) { var data = [{ x: [1, 2, 3], @@ -582,8 +581,6 @@ describe('Test gl plot side effects', function() { }); it('should be able to replot from a blank graph', function(done) { - var gd = createGraphDiv(); - function countCanvases(cnt) { var nodes = d3.selectAll('canvas'); expect(nodes.size()).toEqual(cnt);