Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8655

Show
Ignore:
Timestamp:
01/18/08 04:33:34 (8 months ago)
Author:
andrew
Message:

Reverted accidental change to dom.html.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/test/unit/dom.html

    r8654 r8655  
    9292    } 
    9393     
    94     #getStyle_test { 
    95       margin-left: 2em; 
    96       margin-right: 0.1em; 
    97       font-size: 95%; 
    98       height: 13ex; 
    99       width: 50%; 
    100     } 
    101      
    10294    /* for scroll test on really big screens */ 
    10395    body { 
     
    198190<div><div></div> </div><span> </span> 
    199191</div> 
    200  
    201 <div id="getStyle_test">Testing getStyle</div> 
    202192 
    203193 
     
    12671257      assertEqual(0, $('op3').getStyle('opacity')); 
    12681258       
    1269       if(Prototype.Browser.IE) { 
     1259      if(navigator.appVersion.match(/MSIE/)) { 
    12701260        assertEqual('alpha(opacity=30)', $('op1').getStyle('filter')); 
    12711261        assertEqual('progid:DXImageTransform.Microsoft.Blur(strength=10)alpha(opacity=30)', $('op2').getStyle('filter')); 
     
    12741264        assertEqual('alpha(opacity=0)', $('op3').getStyle('filter')); 
    12751265        assertEqual(0.3, $('op4-ie').getStyle('opacity')); 
    1276          
    1277         // make sure IE returns px values for non-px units 
    1278         assert($('getStyle_test').getStyle('margin-left').include('px')); 
    1279          
    12801266      } 
    12811267      // verify that value is still found when using camelized 
     
    12891275      // TODO: This test fails on IE because there seems to be no way 
    12901276      // to calculate this properly (clientWidth/Height returns 0) 
    1291       if(!Prototype.Browser.IE) { 
     1277      if(!navigator.appVersion.match(/MSIE/)) { 
    12921278        assertEqual("14px", $('style_test_dimensions').getStyle('width')); 
    12931279        assertEqual("17px", $('style_test_dimensions').getStyle('height'));