OpenLayers OpenLayers

Changeset 1783

Show
Ignore:
Timestamp:
11/08/06 14:01:48 (2 years ago)
Author:
euzuro
Message:

ie and ff have some discrepancies in how they output formed html. in this case, ie was capitalizing everything and mixing the elements around. so we just compare straight on the dom. better this way anyways.

Files:

Legend:

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

    r1695 r1783  
    5353    function test_03_Popup_draw(t) { 
    5454     
    55         t.plan( 11 ); 
     55        t.plan( 17 ); 
    5656         
    5757        var id = "chicken"; 
     
    7979        t.eq(popup.div.style.width, w + "px", "width position of popup.div set correctly"); 
    8080        t.eq(popup.div.style.height, h + "px", "heightposition of popup.div set correctly"); 
    81         t.eq(popup.div.innerHTML, '<div class="olPopupContent" style="overflow: hidden; width: 200px; height: 200px; position: relative;" id="chicken_contentDiv">charlie</div>', "good default popup.contentHTML"); 
     81 
     82        var contentDiv = popup.div.childNodes[0]; 
     83         
     84        t.eq(contentDiv.className, "olPopupContent", "correct content div className"); 
     85        t.eq(contentDiv.id, "chicken_contentDiv", "correct content div id"); 
     86        t.eq(contentDiv.style.width, "200px", "correct content div width");   
     87        t.eq(contentDiv.style.height, "200px", "correct content div height"); 
     88        t.eq(contentDiv.style.position, "relative", "correct content div position"); 
     89        t.eq(contentDiv.style.overflow, "hidden", "correct content div overflow"); 
     90        t.eq(contentDiv.innerHTML, content, "correct content div content");               
     91 
    8292        t.eq(popup.div.style.backgroundColor, color, "good default popup.backgroundColor"); 
    8393