mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: don't use deprecated argument in test declaration
Closes gh-2507
This commit is contained in:
@@ -116,7 +116,9 @@ test("css(String|Hash)", function() {
|
||||
"Make sure that a string z-index is returned from css('z-index') (#14432)." );
|
||||
});
|
||||
|
||||
test( "css() explicit and relative values", 29, function() {
|
||||
test( "css() explicit and relative values", function() {
|
||||
expect( 29 );
|
||||
|
||||
var $elem = jQuery("#nothiddendiv");
|
||||
|
||||
$elem.css({ "width": 1, "height": 1, "paddingLeft": "1px", "opacity": 1 });
|
||||
@@ -203,7 +205,9 @@ test( "css() explicit and relative values", 29, function() {
|
||||
equal( $elem.css("opacity"), "1", "'+=0.5' on opacity (params)" );
|
||||
});
|
||||
|
||||
test( "css() non-px relative values (gh-1711)", 17, function() {
|
||||
test( "css() non-px relative values (gh-1711)", function() {
|
||||
expect( 17 );
|
||||
|
||||
var cssCurrent,
|
||||
units = {},
|
||||
$child = jQuery( "#nothiddendivchild" ),
|
||||
@@ -903,7 +907,9 @@ test("certain css values of 'normal' should be convertable to a number, see #862
|
||||
|
||||
// only run this test in IE9
|
||||
if ( document.documentMode === 9 ) {
|
||||
test( ".css('filter') returns a string in IE9, see #12537", 1, function() {
|
||||
test( ".css('filter') returns a string in IE9, see #12537", function() {
|
||||
expect( 1 );
|
||||
|
||||
equal( jQuery("<div style='-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFF, endColorstr=#ECECEC)\";'></div>").css("filter"), "progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFF, endColorstr=#ECECEC)", "IE9 returns the correct value from css('filter')." );
|
||||
});
|
||||
}
|
||||
@@ -1111,7 +1117,9 @@ asyncTest( "Clearing a Cloned Element's Style Shouldn't Clear the Original Eleme
|
||||
window.setTimeout( start, 1000 );
|
||||
});
|
||||
|
||||
test( "show() after hide() should always set display to initial value (#14750)", 1, function() {
|
||||
test( "show() after hide() should always set display to initial value (#14750)", function() {
|
||||
expect( 1 );
|
||||
|
||||
var div = jQuery( "<div />" ),
|
||||
fixture = jQuery( "#qunit-fixture" );
|
||||
|
||||
@@ -1130,7 +1138,9 @@ test( "show() after hide() should always set display to initial value (#14750)",
|
||||
exist = "order" in style || "WebkitOrder" in style;
|
||||
|
||||
if ( exist ) {
|
||||
test( "Don't append px to CSS \"order\" value (#14049)", 1, function() {
|
||||
test( "Don't append px to CSS \"order\" value (#14049)", function() {
|
||||
expect( 1 );
|
||||
|
||||
var $elem = jQuery( "<div/>" );
|
||||
|
||||
$elem.css( "order", 2 );
|
||||
@@ -1139,7 +1149,9 @@ test( "show() after hide() should always set display to initial value (#14750)",
|
||||
}
|
||||
})();
|
||||
|
||||
test( "Do not throw on frame elements from css method (#15098)", 1, function() {
|
||||
test( "Do not throw on frame elements from css method (#15098)", function() {
|
||||
expect( 1 );
|
||||
|
||||
var frameWin, frameDoc,
|
||||
frameElement = document.createElement( "iframe" ),
|
||||
frameWrapDiv = document.createElement( "div" );
|
||||
|
||||
Reference in New Issue
Block a user