OpenLayers OpenLayers

Changeset 1784

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

committing changes to testing code, as brought up from trunk r1781-r1783

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.2/tests/test_Layer_EventPane.html

    r1695 r1784  
    109109</head> 
    110110<body> 
    111   <div id="map"></div> 
     111  <div id="map" style="height:500px;width:500px"></div> 
    112112</body> 
    113113</html> 
  • branches/openlayers/2.2/tests/test_Popup.html

    r1695 r1784  
    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 
  • branches/openlayers/2.2/tests/test_Tile_Image.html

    r1695 r1784  
    128128</head> 
    129129<body> 
    130 <div id="map"></div> 
     130<div id="map" style="height:500px;width:500px"></div> 
    131131</body> 
    132132</html>