Changeset 8655
- Timestamp:
- 01/18/08 04:33:34 (8 months ago)
- Files:
-
- spinoffs/prototype/trunk/test/unit/dom.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/test/unit/dom.html
r8654 r8655 92 92 } 93 93 94 #getStyle_test {95 margin-left: 2em;96 margin-right: 0.1em;97 font-size: 95%;98 height: 13ex;99 width: 50%;100 }101 102 94 /* for scroll test on really big screens */ 103 95 body { … … 198 190 <div><div></div> </div><span> </span> 199 191 </div> 200 201 <div id="getStyle_test">Testing getStyle</div>202 192 203 193 … … 1267 1257 assertEqual(0, $('op3').getStyle('opacity')); 1268 1258 1269 if( Prototype.Browser.IE) {1259 if(navigator.appVersion.match(/MSIE/)) { 1270 1260 assertEqual('alpha(opacity=30)', $('op1').getStyle('filter')); 1271 1261 assertEqual('progid:DXImageTransform.Microsoft.Blur(strength=10)alpha(opacity=30)', $('op2').getStyle('filter')); … … 1274 1264 assertEqual('alpha(opacity=0)', $('op3').getStyle('filter')); 1275 1265 assertEqual(0.3, $('op4-ie').getStyle('opacity')); 1276 1277 // make sure IE returns px values for non-px units1278 assert($('getStyle_test').getStyle('margin-left').include('px'));1279 1280 1266 } 1281 1267 // verify that value is still found when using camelized … … 1289 1275 // TODO: This test fails on IE because there seems to be no way 1290 1276 // to calculate this properly (clientWidth/Height returns 0) 1291 if(! Prototype.Browser.IE) {1277 if(!navigator.appVersion.match(/MSIE/)) { 1292 1278 assertEqual("14px", $('style_test_dimensions').getStyle('width')); 1293 1279 assertEqual("17px", $('style_test_dimensions').getStyle('height'));