@@ -386,7 +386,7 @@ describe('Test mesh3d', function() {
386
386
. then ( done ) ;
387
387
} ) ;
388
388
389
- it ( '@gl mesh3d should be visible when the index arrays are not arrays - string case' , function ( done ) {
389
+ it ( '@gl mesh3d should be invisible when the index arrays are not arrays - string case' , function ( done ) {
390
390
Plotly . plot ( gd , [ {
391
391
x : [ 0 , 1 , 0.5 , 0.5 ] ,
392
392
y : [ 0 , 0.5 , 1 , 0.5 ] ,
@@ -397,19 +397,13 @@ describe('Test mesh3d', function() {
397
397
type : 'mesh3d'
398
398
} ] )
399
399
. then ( function ( ) {
400
- assertVisibility ( true , 'to be invisible' ) ;
401
- } )
402
- . then ( function ( ) {
403
- assertPositions ( 4 , 'to be OK positions' ) ;
404
- } )
405
- . then ( function ( ) {
406
- assertCells ( 3 , 'to be OK cells' ) ;
400
+ assertVisibility ( false , 'to be visible' ) ;
407
401
} )
408
402
. catch ( failTest )
409
403
. then ( done ) ;
410
404
} ) ;
411
405
412
- it ( '@gl mesh3d should be visible when the index arrays are not arrays - object case' , function ( done ) {
406
+ it ( '@gl mesh3d should be invisible when the index arrays are not arrays - object case' , function ( done ) {
413
407
Plotly . plot ( gd , [ {
414
408
x : [ 0 , 1 , 0.5 , 0.5 ] ,
415
409
y : [ 0 , 0.5 , 1 , 0.5 ] ,
@@ -420,19 +414,13 @@ describe('Test mesh3d', function() {
420
414
type : 'mesh3d'
421
415
} ] )
422
416
. then ( function ( ) {
423
- assertVisibility ( true , 'to be invisible' ) ;
424
- } )
425
- . then ( function ( ) {
426
- assertPositions ( 4 , 'to be OK positions' ) ;
427
- } )
428
- . then ( function ( ) {
429
- assertCells ( 3 , 'to be OK cells' ) ;
417
+ assertVisibility ( false , 'to be visible' ) ;
430
418
} )
431
419
. catch ( failTest )
432
420
. then ( done ) ;
433
421
} ) ;
434
422
435
- it ( '@gl mesh3d should be visible when the index arrays are not arrays - boolean case' , function ( done ) {
423
+ it ( '@gl mesh3d should be invisible when the index arrays are not arrays - boolean case' , function ( done ) {
436
424
Plotly . plot ( gd , [ {
437
425
x : [ 0 , 1 , 0.5 , 0.5 ] ,
438
426
y : [ 0 , 0.5 , 1 , 0.5 ] ,
@@ -443,19 +431,13 @@ describe('Test mesh3d', function() {
443
431
type : 'mesh3d'
444
432
} ] )
445
433
. then ( function ( ) {
446
- assertVisibility ( true , 'to be invisible' ) ;
447
- } )
448
- . then ( function ( ) {
449
- assertPositions ( 4 , 'to be OK positions' ) ;
450
- } )
451
- . then ( function ( ) {
452
- assertCells ( 3 , 'to be OK cells' ) ;
434
+ assertVisibility ( false , 'to be visible' ) ;
453
435
} )
454
436
. catch ( failTest )
455
437
. then ( done ) ;
456
438
} ) ;
457
439
458
- it ( '@gl mesh3d should be visible when the index arrays are not arrays - number case' , function ( done ) {
440
+ it ( '@gl mesh3d should be invisible when the index arrays are not arrays - number case' , function ( done ) {
459
441
Plotly . plot ( gd , [ {
460
442
x : [ 0 , 1 , 0.5 , 0.5 ] ,
461
443
y : [ 0 , 0.5 , 1 , 0.5 ] ,
@@ -466,13 +448,7 @@ describe('Test mesh3d', function() {
466
448
type : 'mesh3d'
467
449
} ] )
468
450
. then ( function ( ) {
469
- assertVisibility ( true , 'to be invisible' ) ;
470
- } )
471
- . then ( function ( ) {
472
- assertPositions ( 4 , 'to be OK positions' ) ;
473
- } )
474
- . then ( function ( ) {
475
- assertCells ( 3 , 'to be OK cells' ) ;
451
+ assertVisibility ( false , 'to be visible' ) ;
476
452
} )
477
453
. catch ( failTest )
478
454
. then ( done ) ;
0 commit comments