@@ -20,12 +20,11 @@ function countCanvases() {
20
20
return d3 . selectAll ( 'canvas' ) . size ( ) ;
21
21
}
22
22
23
- jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
24
-
25
23
describe ( 'Test removal of gl contexts' , function ( ) {
26
24
var gd ;
27
25
28
26
beforeEach ( function ( ) {
27
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
29
28
gd = createGraphDiv ( ) ;
30
29
} ) ;
31
30
@@ -98,6 +97,7 @@ describe('Test gl plot side effects', function() {
98
97
var gd ;
99
98
100
99
beforeEach ( function ( ) {
100
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
101
101
gd = createGraphDiv ( ) ;
102
102
} ) ;
103
103
@@ -320,6 +320,7 @@ describe('Test gl2d plots', function() {
320
320
var mock = require ( '@mocks/gl2d_10.json' ) ;
321
321
322
322
beforeEach ( function ( ) {
323
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
323
324
gd = createGraphDiv ( ) ;
324
325
} ) ;
325
326
@@ -1274,9 +1275,19 @@ describe('Test gl2d plots', function() {
1274
1275
} ) ;
1275
1276
1276
1277
describe ( 'Test scattergl autorange:' , function ( ) {
1277
- afterEach ( destroyGraphDiv ) ;
1278
-
1279
1278
describe ( 'should return the same value as SVG scatter for ~small~ data' , function ( ) {
1279
+ var gd ;
1280
+
1281
+ beforeEach ( function ( ) {
1282
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
1283
+ gd = createGraphDiv ( ) ;
1284
+ } ) ;
1285
+
1286
+ afterEach ( function ( ) {
1287
+ Plotly . purge ( gd ) ;
1288
+ destroyGraphDiv ( ) ;
1289
+ } ) ;
1290
+
1280
1291
var specs = [
1281
1292
{ name : 'lines+markers' , fig : require ( '@mocks/gl2d_10.json' ) } ,
1282
1293
{ name : 'bubbles' , fig : require ( '@mocks/gl2d_12.json' ) } ,
@@ -1287,7 +1298,6 @@ describe('Test scattergl autorange:', function() {
1287
1298
1288
1299
specs . forEach ( function ( s ) {
1289
1300
it ( '@gl - case ' + s . name , function ( done ) {
1290
- var gd = createGraphDiv ( ) ;
1291
1301
var glRangeX ;
1292
1302
var glRangeY ;
1293
1303
@@ -1320,6 +1330,7 @@ describe('Test scattergl autorange:', function() {
1320
1330
var gd ;
1321
1331
1322
1332
beforeEach ( function ( ) {
1333
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 5000 ;
1323
1334
gd = createGraphDiv ( ) ;
1324
1335
// to avoid expansive draw calls (which could be problematic on CI)
1325
1336
spyOn ( ScatterGl , 'plot' ) . and . callFake ( function ( gd ) {
@@ -1328,6 +1339,11 @@ describe('Test scattergl autorange:', function() {
1328
1339
} ) ;
1329
1340
} ) ;
1330
1341
1342
+ afterEach ( function ( ) {
1343
+ Plotly . purge ( gd ) ;
1344
+ destroyGraphDiv ( ) ;
1345
+ } ) ;
1346
+
1331
1347
// threshold for 'fast' axis expansion routine
1332
1348
var N = 1e5 ;
1333
1349
var x = new Array ( N ) ;
0 commit comments