diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-07-29 18:10:04 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-07-30 20:46:31 +0300 |
commit | aabe94edb4880c75eeebc5b5b5d66a9ad17008fe (patch) | |
tree | 41f685d530ab14485218cdec7d9c021390f0aa39 /test/unit/css.js | |
parent | 360a4780339b7f412b75ad8a06dca7f39616f654 (diff) | |
download | jquery-aabe94edb4880c75eeebc5b5b5d66a9ad17008fe.tar.gz jquery-aabe94edb4880c75eeebc5b5b5d66a9ad17008fe.zip |
Tests: don't use deprecated argument in test declaration
Closes gh-2507
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index b4337a1ea..1ec7e8aab 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -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" ); |