rem: test("css(String|Hash)", function() { expect(19);  ok( $('#main').css("display") == 'none', 'Check for css property "display"');  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: 'right'}); ok( $('#floatTest').css('styleFloat') == 'right', 'Modified CSS float using "styleFloat": Assert float is right'); $('#floatTest').css({cssFloat: 'left'}); ok( $('#floatTest').css('cssFloat') == 'left', 'Modified CSS float using "cssFloat": Assert float is left'); $('#floatTest').css({'float': 'right'}); ok( $('#floatTest').css('float') == 'right', 'Modified CSS float using "float": Assert float is right'); $('#floatTest').css({'font-size': '30px'}); ok( $('#floatTest').css('font-size') == '30px', 'Modified CSS font-size: Assert font-size is 30px');  $.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" ); }); 
add: $.get('data/dashboard.xml', function(xml) { var titles = []; $('tab', xml).each(function() { titles.push($(this).attr('title')); }); equals( titles[0], 'Location', 'attr() in XML context: Check first title' ); equals( titles[1], 'Users', 'attr() in XML context: Check second title' ); start(); }); 
context: test("css(String|Hash)", function() {	expect(19);		ok( $('#main').css("display") == 'none', 'Check for css property "display"');		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: 'right'});	ok( $('#floatTest').css('styleFloat') == 'right', 'Modified CSS float using "styleFloat": Assert float is right');	$('#floatTest').css({cssFloat: 'left'});	ok( $('#floatTest').css('cssFloat') == 'left', 'Modified CSS float using "cssFloat": Assert float is left');	$('#floatTest').css({'float': 'right'});	ok( $('#floatTest').css('float') == 'right', 'Modified CSS float using "float": Assert float is right');	$('#floatTest').css({'font-size': '30px'});	ok( $('#floatTest').css('font-size') == '30px', 'Modified CSS font-size: Assert font-size is 30px');		$.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" );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/clean/test/unit/core.js