OpenLayers OpenLayers

Changeset 5468

Show
Ignore:
Timestamp:
12/17/07 08:35:07 (1 year ago)
Author:
crschmidt
Message:

Don't test reprojection in Opera, since we get different results, and
we still want this to b reported as a success, but log them to debug so that
people are aware the test is being skipped.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Layer/test_MapServer.html

    r5457 r5468  
    212212                       (window.location.host == "openlayers.org"); 
    213213         
    214         if(validkey) { 
     214        if (OpenLayers.Util.getBrowserName() == "opera") { 
     215            t.plan(1); 
     216            t.debug_print("Can't test google reprojection in Opera."); 
     217        } else if(validkey) { 
    215218            t.plan(5); 
    216219            var map = new OpenLayers.Map('map'); 
  • trunk/openlayers/tests/Layer/test_WMS.html

    r5401 r5468  
    279279                       (window.location.host == "localhost") || 
    280280                       (window.location.host == "openlayers.org"); 
    281          
    282         if(validkey) { 
     281        if (OpenLayers.Util.getBrowserName() == "opera") { 
     282            t.plan(1); 
     283            t.debug_print("Can't test google reprojection in Opera."); 
     284        } else if(validkey) { 
    283285            t.plan(5); 
    284286 
     
    291293            map.addLayer(wmslayer); 
    292294            map.setCenter(new OpenLayers.LonLat(0,0), 5); 
    293              
    294295            var tile = wmslayer.grid[0][0]; 
    295296            t.eq( tile.bounds.left, -22.5, "left side matches" );  
    296             t.eq( tile.bounds.right, -11.25, "top side matches" );  
     297            t.eq( tile.bounds.right, -11.25, "right side matches" );  
    297298            t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" );  
    298299            t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" );