@@ -341,12 +341,12 @@ describe('GridLayer', function () {
341
341
} ;
342
342
343
343
grid . on ( 'tileload tileunload tileerror tileloadstart' , function ( ev ) {
344
- // console.log(ev.type);
344
+ // console.log(ev.type);
345
345
counts [ ev . type ] ++ ;
346
346
} ) ;
347
- // grid.on('tileunload', function (ev) {
348
- // console.log(ev.type, ev.coords, counts);
349
- // });
347
+ // grid.on('tileunload', function (ev) {
348
+ // console.log(ev.type, ev.coords, counts);
349
+ // });
350
350
351
351
map . options . fadeAnimation = false ;
352
352
map . options . zoomAnimation = false ;
@@ -545,15 +545,15 @@ describe('GridLayer', function () {
545
545
// browsers due to CSS animations!
546
546
it . skipInPhantom ( "Loads 32, unloads 16 tiles zooming in 10-11" , function ( done ) {
547
547
548
- // grid.on('tileload tileunload tileloadstart load', logTiles);
548
+ // grid.on('tileload tileunload tileloadstart load', logTiles);
549
549
550
550
grid . on ( 'load' , function ( ) {
551
551
expect ( counts . tileloadstart ) . to . be ( 16 ) ;
552
552
expect ( counts . tileload ) . to . be ( 16 ) ;
553
553
expect ( counts . tileunload ) . to . be ( 0 ) ;
554
554
grid . off ( 'load' ) ;
555
555
556
- // grid.on('load', logTiles);
556
+ // grid.on('load', logTiles);
557
557
grid . on ( 'load' , function ( ) {
558
558
559
559
// We're one frame into the zoom animation, there are
@@ -618,19 +618,19 @@ describe('GridLayer', function () {
618
618
// browsers due to CSS animations!
619
619
it . skipInPhantom ( "Loads 32, unloads 16 tiles zooming out 11-10" , function ( done ) {
620
620
621
- // grid.on('tileload tileunload load', logTiles);
621
+ // grid.on('tileload tileunload load', logTiles);
622
622
623
623
grid . on ( 'load' , function ( ) {
624
624
expect ( counts . tileloadstart ) . to . be ( 16 ) ;
625
625
expect ( counts . tileload ) . to . be ( 16 ) ;
626
626
expect ( counts . tileunload ) . to . be ( 0 ) ;
627
627
grid . off ( 'load' ) ;
628
628
629
- // grid.on('load', logTiles);
629
+ // grid.on('load', logTiles);
630
630
grid . on ( 'load' , function ( ) {
631
631
632
632
grid . off ( 'load' ) ;
633
- // grid.on('load', logTiles);
633
+ // grid.on('load', logTiles);
634
634
635
635
// We're one frame into the zoom animation, there are
636
636
// 16 tiles for z11 plus 4 tiles for z10 covering the
@@ -717,9 +717,9 @@ describe('GridLayer', function () {
717
717
718
718
map . flyTo ( trd , 12 , { animate : true } ) ;
719
719
720
- // map.on('_frame', function () {
721
- // console.log('frame', counts);
722
- // });
720
+ // map.on('_frame', function () {
721
+ // console.log('frame', counts);
722
+ // });
723
723
724
724
runFrames ( 500 ) ;
725
725
} ) ;
@@ -756,12 +756,12 @@ describe('GridLayer', function () {
756
756
} ;
757
757
758
758
grid . on ( 'tileload tileunload tileerror tileloadstart' , function ( ev ) {
759
- // console.log(ev.type);
759
+ // console.log(ev.type);
760
760
counts [ ev . type ] ++ ;
761
761
} ) ;
762
- // grid.on('tileunload', function (ev) {
763
- // console.log(ev.type, ev.coords, counts);
764
- // });
762
+ // grid.on('tileunload', function (ev) {
763
+ // console.log(ev.type, ev.coords, counts);
764
+ // });
765
765
766
766
map . options . fadeAnimation = false ;
767
767
map . options . zoomAnimation = false ;
0 commit comments