@@ -2,7 +2,7 @@ var Plotly = require('@lib');
22
33var createGraphDiv = require ( '../assets/create_graph_div' ) ;
44var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
5- var failTest = require ( '../assets/fail_test' ) ;
5+
66
77describe ( 'Plotly w/o WebGL support:' , function ( ) {
88 var gd ;
@@ -34,8 +34,7 @@ describe('Plotly w/o WebGL support:', function() {
3434 . then ( function ( ) {
3535 checkNoWebGLMsg ( false ) ;
3636 } )
37- . catch ( failTest )
38- . then ( done ) ;
37+ . then ( done , done . fail ) ;
3938 } ) ;
4039
4140 it ( 'gl2d subplots' , function ( done ) {
@@ -47,8 +46,7 @@ describe('Plotly w/o WebGL support:', function() {
4746 . then ( function ( ) {
4847 checkNoWebGLMsg ( false ) ;
4948 } )
50- . catch ( failTest )
51- . then ( done ) ;
49+ . then ( done , done . fail ) ;
5250 } ) ;
5351
5452 it ( 'scattergl subplots' , function ( done ) {
@@ -77,8 +75,7 @@ describe('Plotly w/o WebGL support:', function() {
7775 . then ( function ( ) {
7876 checkNoWebGLMsg ( false ) ;
7977 } )
80- . catch ( failTest )
81- . then ( done ) ;
78+ . then ( done , done . fail ) ;
8279 } ) ;
8380
8481 it ( 'scatterpolargl subplots' , function ( done ) {
@@ -90,8 +87,7 @@ describe('Plotly w/o WebGL support:', function() {
9087 . then ( function ( ) {
9188 checkNoWebGLMsg ( false ) ;
9289 } )
93- . catch ( failTest )
94- . then ( done ) ;
90+ . then ( done , done . fail ) ;
9591 } ) ;
9692
9793 it ( 'splom subplots' , function ( done ) {
@@ -103,8 +99,7 @@ describe('Plotly w/o WebGL support:', function() {
10399 . then ( function ( ) {
104100 checkNoWebGLMsg ( false ) ;
105101 } )
106- . catch ( failTest )
107- . then ( done ) ;
102+ . then ( done , done . fail ) ;
108103 } ) ;
109104
110105 it ( 'parcoords subplots' , function ( done ) {
@@ -116,7 +111,6 @@ describe('Plotly w/o WebGL support:', function() {
116111 . then ( function ( ) {
117112 checkNoWebGLMsg ( false ) ;
118113 } )
119- . catch ( failTest )
120- . then ( done ) ;
114+ . then ( done , done . fail ) ;
121115 } ) ;
122116} ) ;
0 commit comments