OpenLayers OpenLayers

Changeset 2122

Show
Ignore:
Timestamp:
01/02/07 18:57:02 (2 years ago)
Author:
euzuro
Message:

fix popup test in opera -- color gets converted from string to hex

Files:

Legend:

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

    r1949 r2122  
    6262        var content = "charlie"; 
    6363        var color = "red"; 
     64        var hexColor = "#ff0000"; 
    6465        var opacity = 0.5; 
    6566        var border = "1px solid"; 
     
    9091        t.eq(contentDiv.innerHTML, content, "correct content div content");               
    9192 
    92         t.eq(popup.div.style.backgroundColor, color, "good default popup.backgroundColor"); 
     93        var bColor = popup.div.style.backgroundColor; 
     94        var goodColor = ( (bColor == color) || (bColor == hexColor)); 
     95        t.ok(goodColor, "good default popup.backgroundColor"); 
    9396 
    9497        if (navigator.appName.indexOf("Microsoft") == -1) {