OpenLayers OpenLayers

Changeset 6712

Show
Ignore:
Timestamp:
03/30/08 22:41:26 (5 months ago)
Author:
crschmidt
Message:

Firefox 2.0.0.13 changed behavior iwth regard to loading files relative to an
iframe included in a page from matching every other browser to matching IE.
Rather than try and guess what's going to happen with this in the future, at
the moment, just duplicate the data, in hopes of a more sane solution coming
along in the future for all our data loading needs.

Files:

Legend:

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

    r6711 r6712  
    66    var name = "GML Layer"; 
    77     
     8    // The actual path these files are read from differs:  
     9    // some browsers treat relative paths from within an iframe  
     10    // as relative to the parent, some treat them as relative to the child 
     11    // At this time: 
     12    //  * IE6 + IE7 
     13    //  * Firefox 2.0.0.13+ 
     14    // read them from relative to the iframe contents, rather than parent,  
     15    // so these files are in *two* places: one in the "Layer/" subdirectory, 
     16    // and one in the root. This majorly sucks, but it's a way to keep it  
     17    // working without hardcoding a version number into the tests. 
    818    var gml = "./owls.xml"; 
    919    var gml2 = "./mice.xml"; 
    1020 
    11     // if this test is running online, different rules apply 
    1221    var isMSIE = (navigator.userAgent.indexOf("MSIE") > -1); 
    13     if (isMSIE) { 
    14         gml = "." + gml; 
    15         gml2 = "." + gml2; 
    16     } 
    1722     
    1823    function test_01_Layer_GML_constructor(t) { 
  • trunk/openlayers/tests/Layer/test_GeoRSS.html

    r6711 r6712  
    99    var georss_txt = "./georss.txt"; 
    1010    var atom_xml   = "./atom-1.0.xml"; 
    11  
    12     // if this test is running online, different rules apply 
    13     if (isMSIE) { 
    14         georss_txt = "." + georss_txt; 
    15         atom_xml = "." + atom_xml; 
    16     } 
     11     
     12    // The actual path these files are read from differs:  
     13    // some browsers treat relative paths from within an iframe  
     14    // as relative to the parent, some treat them as relative to the child 
     15    // At this time: 
     16    //  * IE6 + IE7 
     17    //  * Firefox 2.0.0.13+ 
     18    // read them from relative to the iframe contents, rather than parent,  
     19    // so these files are in *two* places: one in the "Layer/" subdirectory, 
     20    // and one in the root. This majorly sucks, but it's a way to keep it  
     21    // working without hardcoding a version number into the tests. 
    1722 
    1823    function test_01_Layer_GeoRSS_constructor (t) { 
  • trunk/openlayers/tests/Layer/test_Text.html

    r6711 r6712  
    77    var layer;  
    88 
     9    // The actual path these files are read from differs:  
     10    // some browsers treat relative paths from within an iframe  
     11    // as relative to the parent, some treat them as relative to the child 
     12    // At this time: 
     13    //  * IE6 + IE7 
     14    //  * Firefox 2.0.0.13+ 
     15    // read them from relative to the iframe contents, rather than parent,  
     16    // so these files are in *two* places: one in the "Layer/" subdirectory, 
     17    // and one in the root. This majorly sucks, but it's a way to keep it  
     18    // working without hardcoding a version number into the tests. 
    919    var datafile  = "./data_Layer_Text_textfile.txt"; 
    1020    var datafile2 = "./data_Layer_Text_textfile_2.txt"; 
    1121    var datafile_overflow = "./data_Layer_Text_textfile_overflow.txt"; 
    12  
    13     // if this test is running in IE, different rules apply 
    14     if (isMSIE) { 
    15         datafile = "." + datafile; 
    16         datafile2 = "." + datafile2; 
    17         datafile_overflow = "." + datafile_overflow; 
    18     } 
    1922 
    2023    function test_01_Layer_Text_constructor (t) {