Skip to main content

Bug Tracker

Side navigation

Ticket #2953: patch_testCss.txt
File patch_testCss.txt, 0.9 KB (added by lrbabe, May 29, 2008 01:27PM UTC)

patch for test/unit/core.js

Index: /home/lrbabe/workspace/jQuery/jquery/test/unit/core.js
===================================================================
--- /home/lrbabe/workspace/jQuery/jquery/test/unit/core.js	(revision 5704)
+++ /home/lrbabe/workspace/jQuery/jquery/test/unit/core.js	(working copy)
@@ -507,10 +507,12 @@
 });
 
 test("css(String, Object)", function() {
-	expect(21);
+	expect(23);
 	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');
+	ok( $('#foo').css('width') != '0px', 'Assert element width is not 0px' );
+	ok( $('#foo').css('height') != '0px', 'Assert element eight is not 0px' );
 	$('#foo').css('display', 'block');
 	ok( $('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');

Download in other formats:

Original Format