@@ -40,12 +40,20 @@ function runAll () {
40
40
* More info:
41
41
* https://github.com/plotly/plotly.js/issues/62
42
42
*
43
- * 40 test cases are removed:
43
+ * 41 test cases are removed:
44
44
* - font-wishlist (1 test case)
45
45
* - all gl2d (38)
46
- * - gl2d_bunny-hull (1)
46
+ * - gl3d_bunny-hull (1)
47
+ * - polar_scatter (1)
47
48
*/
48
- t . plan ( allMocks . length - 40 ) ;
49
+ var mocks = allMocks . filter ( function ( mock ) {
50
+ return ! (
51
+ mock === 'font-wishlist.json' ||
52
+ mock . indexOf ( 'gl2d' ) !== - 1 ||
53
+ mock === 'gl3d_bunny-hull.json' ||
54
+ mock === 'polar_scatter.json'
55
+ ) ;
56
+ } ) ;
49
57
50
58
var BASE_TIMEOUT = 500 ,
51
59
BATCH_SIZE = 5 ,
@@ -55,6 +63,8 @@ function runAll () {
55
63
setTimeout ( function ( ) {
56
64
testMock ( allMocks [ cnt ++ ] , t ) ;
57
65
} , BASE_TIMEOUT * Math . floor ( i / BATCH_SIZE ) * BATCH_SIZE ) ;
66
+ t . plan ( mocks . length ) ;
67
+
58
68
}
59
69
60
70
} ) ;
@@ -68,15 +78,6 @@ function runSingle (userFileName) {
68
78
}
69
79
70
80
function testMock ( fileName , t ) {
71
- if ( path . extname ( fileName ) !== '.json' ) return ;
72
- if ( fileName === 'font-wishlist.json' && ! userFileName ) return ;
73
-
74
- // TODO fix race condition in gl2d image generation
75
- if ( fileName . indexOf ( 'gl2d_' ) !== - 1 ) return ;
76
-
77
- // TODO fix run-to-run randomness
78
- if ( fileName === 'gl3d_bunny-hull.json' ) return ;
79
-
80
81
var figure = require ( path . join ( constants . pathToTestImageMocks , fileName ) ) ;
81
82
var bodyMock = {
82
83
figure : figure ,
0 commit comments