Added tests for 193 and 170.

Removed unused line of code from fx.
This commit is contained in:
Brandon Aaron 2006-10-17 15:34:19 +00:00
parent 688c724b1f
commit 6f7cd66959
3 changed files with 48 additions and 33 deletions

View file

@ -71,6 +71,7 @@
<option id="option3d" value="3">3</option>
</select>
</form>
<p id="floatTest">Float test.</div>
</div>
</dl>

View file

@ -493,8 +493,6 @@ jQuery.extend({
// Remember where we started, so that we can go back to it later
z.el.orig[prop] = this.cur();
var start = z.el.orig[prop];
// Begin the animation
z.custom(0, z.el.orig[prop]);

16
src/jquery/jquery.js vendored
View file

@ -534,6 +534,14 @@ jQuery.fn = jQuery.prototype = {
* 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('cssFloat') == 'right', 'Modified CSS float using "cssFloat": Assert float is right');
* $('#floatTest').css({'font-size': '30px'});
* ok( $('#floatTest').css('font-size') == '30px', 'Modified CSS font-size: Assert font-size is 30px');
*
* @name css
* @type jQuery
@ -555,6 +563,14 @@ jQuery.fn = jQuery.prototype = {
* 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('cssFloat') == 'left', 'Modified CSS float using "cssFloat": Assert float is left');
* $('#floatTest').css('font-size', '20px');
* ok( $('#floatTest').css('font-size') == '20px', 'Modified CSS font-size: Assert font-size is 20px');
*
* @name css
* @type jQuery