OpenLayers OpenLayers

Changeset 7308

Show
Ignore:
Timestamp:
06/05/08 11:45:03 (3 months ago)
Author:
tschaub
Message:

correcting the test count and not running the test for inline-block where alpha hack doesn't apply (closes #1520)

Files:

Legend:

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

    r7299 r7308  
    401401 
    402402    function test_Util_modifyAlphaImageDiv(t) { 
    403         t.plan( 20 ); 
     403        t.plan( 21 ); 
    404404 
    405405        var imageDiv = OpenLayers.Util.createAlphaImageDiv(); 
     
    485485        imageDiv.style.display = display; 
    486486        OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity); 
    487         t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly, if not 'none'"); 
     487        if(OpenLayers.Util.alphaHack()) { 
     488            t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly, if not 'none'"); 
     489        } else { 
     490            t.ok(true, "inline-block is not part of CSS2 and is not supported by Firefox 2"); 
     491        } 
    488492 
    489493