@@ -58,14 +58,6 @@ function mostOfDrag(x1, y1, x2, y2) {
58
58
mouseEvent ( 'mousemove' , x2 , y2 ) ;
59
59
}
60
60
61
- function purgeGraphDiv ( done ) {
62
- var gd = d3Select ( '.js-plotly-plot' ) . node ( ) ;
63
- if ( gd ) Plotly . purge ( gd ) ;
64
- destroyGraphDiv ( ) ;
65
-
66
- return delay ( 50 ) ( ) . then ( done ) ;
67
- }
68
-
69
61
function getAvgPixelByChannel ( id ) {
70
62
var canvas = d3Select ( id ) . node ( ) ;
71
63
@@ -371,12 +363,12 @@ describe('parcoords initialization tests', function() {
371
363
describe ( 'parcoords edge cases' , function ( ) {
372
364
var gd ;
373
365
beforeEach ( function ( ) {
374
- jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
366
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
375
367
376
368
gd = createGraphDiv ( ) ;
377
369
} ) ;
378
370
379
- afterEach ( purgeGraphDiv ) ;
371
+ afterEach ( destroyGraphDiv ) ;
380
372
381
373
it ( '@gl Works fine with one panel only' , function ( done ) {
382
374
var mockCopy = Lib . extendDeep ( { } , mock2 ) ;
@@ -644,8 +636,11 @@ describe('parcoords edge cases', function() {
644
636
645
637
describe ( 'parcoords Lifecycle methods' , function ( ) {
646
638
var gd ;
647
- beforeEach ( function ( ) { gd = createGraphDiv ( ) ; } ) ;
648
- afterEach ( purgeGraphDiv ) ;
639
+ beforeEach ( function ( ) {
640
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
641
+ gd = createGraphDiv ( ) ;
642
+ } ) ;
643
+ afterEach ( destroyGraphDiv ) ;
649
644
650
645
it ( 'Plotly.deleteTraces with one trace removes the plot' , function ( done ) {
651
646
var mockCopy = Lib . extendDeep ( { } , mock ) ;
@@ -904,7 +899,7 @@ describe('parcoords basic use', function() {
904
899
var gd ;
905
900
906
901
beforeEach ( function ( ) {
907
- jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
902
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
908
903
909
904
mockCopy = Lib . extendDeep ( { } , mock ) ;
910
905
mockCopy . data [ 0 ] . domain = {
@@ -915,7 +910,7 @@ describe('parcoords basic use', function() {
915
910
gd = createGraphDiv ( ) ;
916
911
} ) ;
917
912
918
- afterEach ( purgeGraphDiv ) ;
913
+ afterEach ( destroyGraphDiv ) ;
919
914
920
915
it ( '@gl should create three WebGL contexts per graph' , function ( done ) {
921
916
Plotly . react ( gd , mockCopy )
@@ -1220,10 +1215,11 @@ describe('parcoords react more attributes', function() {
1220
1215
var gd ;
1221
1216
1222
1217
beforeEach ( function ( ) {
1218
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
1223
1219
gd = createGraphDiv ( ) ;
1224
1220
} ) ;
1225
1221
1226
- afterEach ( purgeGraphDiv ) ;
1222
+ afterEach ( destroyGraphDiv ) ;
1227
1223
1228
1224
it ( '@gl should change various axis parameters' , function ( done ) {
1229
1225
Plotly . react ( gd , mock3 )
@@ -1365,22 +1361,21 @@ describe('parcoords constraint interactions - without defined axis ranges', func
1365
1361
var snapDelay = 100 ;
1366
1362
var noSnapDelay = 20 ;
1367
1363
beforeAll ( function ( ) {
1368
- jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
1369
-
1370
1364
initialSnapDuration = PC . bar . snapDuration ;
1371
1365
PC . bar . snapDuration = shortenedSnapDuration ;
1372
1366
} ) ;
1373
1367
1374
1368
afterAll ( function ( ) {
1375
- purgeGraphDiv ( ) ;
1369
+ destroyGraphDiv ( ) ;
1376
1370
PC . bar . snapDuration = initialSnapDuration ;
1377
1371
} ) ;
1378
1372
1379
1373
beforeEach ( function ( ) {
1374
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
1380
1375
gd = createGraphDiv ( ) ;
1381
1376
} ) ;
1382
1377
1383
- afterEach ( purgeGraphDiv ) ;
1378
+ afterEach ( destroyGraphDiv ) ;
1384
1379
1385
1380
function getDashArray ( index ) {
1386
1381
var highlight = document . querySelectorAll ( '.highlight' ) [ index ] ;
@@ -1651,22 +1646,21 @@ describe('parcoords constraint interactions - with defined axis ranges', functio
1651
1646
var shortenedSnapDuration = 20 ;
1652
1647
var noSnapDelay = 20 ;
1653
1648
beforeAll ( function ( ) {
1654
- jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
1655
-
1656
1649
initialSnapDuration = PC . bar . snapDuration ;
1657
1650
PC . bar . snapDuration = shortenedSnapDuration ;
1658
1651
} ) ;
1659
1652
1660
1653
afterAll ( function ( ) {
1661
- purgeGraphDiv ( ) ;
1654
+ destroyGraphDiv ( ) ;
1662
1655
PC . bar . snapDuration = initialSnapDuration ;
1663
1656
} ) ;
1664
1657
1665
1658
beforeEach ( function ( ) {
1659
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
1666
1660
gd = createGraphDiv ( ) ;
1667
1661
} ) ;
1668
1662
1669
- afterEach ( purgeGraphDiv ) ;
1663
+ afterEach ( destroyGraphDiv ) ;
1670
1664
1671
1665
it ( '@gl updates constraints above and below axis ranges' , function ( done ) {
1672
1666
var x = 295 ;
@@ -1740,15 +1734,16 @@ describe('parcoords constraint click interactions - with pre-defined constraint
1740
1734
} ) ;
1741
1735
1742
1736
afterAll ( function ( ) {
1743
- purgeGraphDiv ( ) ;
1737
+ destroyGraphDiv ( ) ;
1744
1738
PC . bar . snapDuration = initialSnapDuration ;
1745
1739
} ) ;
1746
1740
1747
1741
beforeEach ( function ( ) {
1742
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 15000 ;
1748
1743
gd = createGraphDiv ( ) ;
1749
1744
} ) ;
1750
1745
1751
- afterEach ( purgeGraphDiv ) ;
1746
+ afterEach ( destroyGraphDiv ) ;
1752
1747
1753
1748
it ( '@gl should not drop constraintrange on click' , function ( done ) {
1754
1749
Plotly . react ( gd , initialFigure ( ) )
0 commit comments