rem: test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function () { expect(4);  var $checkedtest = $("#checkedtest");  jQuery.css($checkedtest[0], "height"); ok( !! $(":radio:first", $checkedtest).attr("checked"), "Check first radio still checked." ); ok( ! $(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." ); ok( !! $(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." ); ok( ! $(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." ); 
add: test("css(String, Object)", function() { expect(19); ok( $('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible'); $('#foo').css('display', 'none'); ok( !$('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden'); $('#foo').css('display', 'block'); ok( $('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');  $('#floatTest').css('styleFloat', 'left'); ok( $('#floatTest').css('styleFloat') == 'left', 'Modified CSS float using "styleFloat": Assert float is left'); $('#floatTest').css('cssFloat', 'right'); ok( $('#floatTest').css('cssFloat') == 'right', 'Modified CSS float using "cssFloat": Assert float is right'); $('#floatTest').css('float', 'left'); ok( $('#floatTest').css('float') == 'left', 'Modified CSS float using "float": Assert float is left'); $('#floatTest').css('font-size', '20px'); ok( $('#floatTest').css('font-size') == '20px', 'Modified CSS font-size: Assert font-size is 20px');  $.each("0,0.25,0.5,0.75,1".split(','), function(i, n) { $('#foo').css('opacity', n); ok( $('#foo').css('opacity') == parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a String" ); $('#foo').css('opacity', parseFloat(n)); ok( $('#foo').css('opacity') == parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a Number" ); }); $('#foo').css('opacity', ''); ok( $('#foo').css('opacity') == '1', "Assert opacity is 1 when set to an empty String" );  if (jQuery.browser.msie) { $('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');"); } equals( $('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" ); 
context: test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function () {	expect(4);	var $checkedtest = $("#checkedtest");	// IE6 was clearing "checked" in jQuery.css(elem, "height");	jQuery.css($checkedtest[0], "height");	ok( !! $(":radio:first", $checkedtest).attr("checked"), "Check first radio still checked." );	ok( ! $(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." );	ok( !! $(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." );	ok( ! $(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/clean/test/unit/core.js