@@ -276,22 +276,22 @@ describe('ExtentSpec', function () {
276276
277277 it ( 'should intersect' , function ( ) {
278278 var proj = maptalks . projection . EPSG3857 ;
279- var ext1 = new maptalks . Extent ( - 170 , 80 , 170 , - 80 , proj ) ;
279+ var ext1 = new maptalks . Extent ( 170 , 80 , - 170 , - 80 , proj ) ;
280280 var ext2 = new maptalks . Extent ( - 180 , 85 , - 180 , 85 ) ;
281281 expect ( ext1 . intersects ( ext2 ) ) . to . be . ok ( ) ;
282- expect ( ext1 . intersects ( new maptalks . Extent ( - 150 , 10 , 160 , 20 ) ) ) . to . not . be . ok ( ) ;
282+ expect ( ext1 . intersects ( new maptalks . Extent ( 150 , 10 , - 160 , 20 ) ) ) . to . not . be . ok ( ) ;
283283
284284 } ) ;
285285
286286 it ( 'should combine' , function ( ) {
287287 var proj = maptalks . projection . EPSG3857 ;
288- var ext1 = new maptalks . Extent ( - 170 , 80 , 170 , - 50 , proj ) ;
289- var ext2 = new maptalks . Extent ( - 160 , 80 , 175 , - 40 , proj ) ;
288+ var ext1 = new maptalks . Extent ( - 170 , - 50 , 170 , 80 , proj ) ;
289+ var ext2 = new maptalks . Extent ( 175 , - 40 , - 160 , 80 , proj ) ;
290290 var combined = ext1 . combine ( ext2 ) ;
291291
292- expect ( combined . xmin ) . to . eql ( 170 ) ;
293- expect ( combined . ymin ) . to . approx ( 80 ) ;
294- expect ( combined . xmax ) . to . eql ( - 160 ) ;
292+ expect ( combined . xmin ) . to . eql ( 175 ) ;
293+ expect ( combined . ymin ) . to . approx ( - 50 ) ;
294+ expect ( combined . xmax ) . to . eql ( 170 ) ;
295295 //FIXME
296296 // expect(combined.ymax).to.eql(-10);
297297 } ) ;
0 commit comments