OpenLayers OpenLayers

Changeset 1333

Show
Ignore:
Timestamp:
08/22/06 14:56:12 (2 years ago)
Author:
crschmidt
Message:

A number of tests were not working as expected in IE. Specifically:

  • Layer-KaMap, Grid, and Map were all having commented out tests run by
    Test.AnotherWay.
  • Layer.html was adding an additional , after a list in an object creation,
    which IE doesn't allow.
  • When setting the href="" of an <a> element, IE does not then return
    the concatanation of the location+href via the DOM.
  • EventPane has mouse handling tests which work in IE, but not in FF.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/tests/test_Control_Permalink.html

    r847 r1333  
    2121        map.addControl(control); 
    2222        map.pan(5, 0); 
    23         t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); 
     23        if (/MSIE/.test(navigator.userAgent)) { 
     24            t.eq($('permalink').href, "?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); 
     25        } else { 
     26            t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); 
     27        } 
    2428    } 
    2529    function test_03_Control_Permalink_updateLinksBase (t) { 
  • branches/openlayers/2.0/tests/test_Layer.html

    r1302 r1333  
    100100                        maxExtent: maxExtent, 
    101101                        maxResolution: maxResolution, 
    102                         numZoomLevels: numZoomLevels, 
     102                        numZoomLevels: numZoomLevels 
    103103                        }; 
    104104 
  • branches/openlayers/2.0/tests/test_Layer_EventPane.html

    r1211 r1333  
    5757//         t.plan( 2 );     
    5858 
    59         t.plan(1); 
     59        if (document.createEventObject) { 
     60          t.plan(3); 
     61        } else { 
     62          t.plan(1); 
     63        } 
    6064        var map = new OpenLayers.Map('map'); 
    6165         
  • branches/openlayers/2.0/tests/test_Layer_Grid.html

    r1289 r1333  
    115115     *    -insertRow 
    116116     
    117     function test_07_Layer_Grid_moveTo(t) { 
    118     } 
    119  
    120     function test_08_Layer_Grid_insertColumn(t) { 
    121     } 
    122  
    123     function test_09_Layer_Grid_insertRow(t) { 
     117    function 07_Layer_Grid_moveTo(t) { 
     118    } 
     119 
     120    function 08_Layer_Grid_insertColumn(t) { 
     121    } 
     122 
     123    function 09_Layer_Grid_insertRow(t) { 
    124124    } 
    125125 
  • branches/openlayers/2.0/tests/test_Layer_KaMap.html

    r1289 r1333  
    108108     *    -insertRow 
    109109     
    110     function test_07_Layer_KaMap_moveTo(t) { 
     110    function 07_Layer_KaMap_moveTo(t) { 
    111111    } 
    112112 
    113     function test_08_Layer_KaMap_insertColumn(t) { 
     113    function 08_Layer_KaMap_insertColumn(t) { 
    114114    } 
    115115 
    116     function test_09_Layer_KaMap_insertRow(t) { 
     116    function 09_Layer_KaMap_insertRow(t) { 
    117117    } 
    118118 
  • branches/openlayers/2.0/tests/test_Map.html

    r1302 r1333  
    155155 *     Also, it won't work until we figure out the viewSize bug 
    156156 
    157     function test_08_Map_px_lonlat_translation (t) { 
     157    function 08_Map_px_lonlat_translation (t) { 
    158158        t.plan( 6 );     
    159159        map = new OpenLayers.Map($('map'));