@@ -69,16 +69,6 @@ argv._.forEach(function(pattern) {
6969 throw new Error ( 'No mocks found with pattern ' + pattern ) ;
7070 }
7171
72- // gl2d have limited image-test support
73- if ( pattern === 'gl2d_*' ) {
74- if ( ! isInQueue ) {
75- console . log ( 'WARN: Running gl2d image tests in batch may lead to unwanted results\n' ) ;
76- }
77- console . log ( '\nSorting gl2d mocks to avoid gl-shader conflicts' ) ;
78- sortGl2dMockList ( mockList ) ;
79- console . log ( '' ) ;
80- }
81-
8272 allMockList = allMockList . concat ( mockList ) ;
8373} ) ;
8474
@@ -120,7 +110,7 @@ else {
120110function untestableFilter ( mockName ) {
121111 var cond = ! (
122112 mockName === 'font-wishlist' ||
123- mockName . indexOf ( 'gl2d_' ) !== - 1 ||
113+ // mockName.indexOf('gl2d_') !== -1 ||
124114 mockName . indexOf ( 'mapbox_' ) !== - 1
125115 ) ;
126116
@@ -129,34 +119,6 @@ function untestableFilter(mockName) {
129119 return cond ;
130120}
131121
132- /* gl2d pointcloud and other non-regl gl2d mock(s)
133- * must be tested first on in order to work;
134- * sort them here.
135- *
136- * gl-shader appears to conflict with regl.
137- * We suspect that the lone gl context on CircleCI is
138- * having issues with dealing with the two different
139- * program binding algorithm.
140- *
141- * The problem will be solved by switching all our
142- * WebGL-based trace types to regl.
143- *
144- * More info here:
145- * https://github.com/plotly/plotly.js/pull/1037
146- */
147- function sortGl2dMockList ( mockList ) {
148- var mockNames = [ 'gl2d_pointcloud-basic' , 'gl2d_heatmapgl' ] ;
149- var pos = 0 ;
150-
151- mockNames . forEach ( function ( m ) {
152- var ind = mockList . indexOf ( m ) ;
153- var tmp = mockList [ pos ] ;
154- mockList [ pos ] = m ;
155- mockList [ ind ] = tmp ;
156- pos ++ ;
157- } ) ;
158- }
159-
160122function runInBatch ( mockList ) {
161123 var running = 0 ;
162124
0 commit comments